[oe-commits] Ulf Samuelsson : Allow easier naming for at91sam9m10g45ek

git version control git at git.openembedded.org
Sat Aug 22 14:56:03 UTC 2009


Module: openembedded.git
Branch: ulf/linux-2.6.30.2
Commit: 366e2fbce65b6e8dbab6c5d4d3ff9b8bc8bf53df
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=366e2fbce65b6e8dbab6c5d4d3ff9b8bc8bf53df

Author: Ulf Samuelsson <ulf.samuelsson at atmel.com>
Date:   Sat Aug 22 16:15:40 2009 +0200

Allow easier naming for at91sam9m10g45ek

The at91sam9m10g45ek name in u-boot is non-natural.
This patch allows the board to be configured via:

make 	at91sam9m10ek_config
make    at91samg45ek_config
as well as the previous
make    at91sam9m10g45ek_config

---

 ...t-2009.08-rc2-018-sam9m10ek_and_sam9g45ek.patch |   62 ++++++++++++++++++++
 1 files changed, 62 insertions(+), 0 deletions(-)

diff --git a/recipes/u-boot/u-boot-2009.08-rc2/u-boot-2009.08-rc2-018-sam9m10ek_and_sam9g45ek.patch b/recipes/u-boot/u-boot-2009.08-rc2/u-boot-2009.08-rc2-018-sam9m10ek_and_sam9g45ek.patch
new file mode 100644
index 0000000..2351e72
--- /dev/null
+++ b/recipes/u-boot/u-boot-2009.08-rc2/u-boot-2009.08-rc2-018-sam9m10ek_and_sam9g45ek.patch
@@ -0,0 +1,62 @@
+diff -urN u-boot-2009.08-rc2-0rig/Makefile u-boot-2009.08-rc2/Makefile
+--- u-boot-2009.08-rc2-0rig/Makefile	2009-08-20 11:06:24.000000000 +0200
++++ u-boot-2009.08-rc2/Makefile	2009-08-20 11:22:18.000000000 +0200
+@@ -2838,28 +2838,51 @@
+ pm9261_config	:	unconfig
+ 	@$(MKCONFIG) $(@:_config=) arm arm926ejs pm9261 ronetix at91
+ 
++at91sam9g45ek_nandflash_config \
++at91sam9g45ek_dataflash_config \
++at91sam9g45ek_dataflash_cs0_config \
++at91sam9g45ek_eeprom_config \
++at91sam9g45ek_config \
++at91sam9m10ek_nandflash_config \
++at91sam9m10ek_dataflash_config \
++at91sam9m10ek_dataflash_cs0_config \
++at91sam9m10ek_eeprom_config \
++at91sam9m10ek_config \
+ at91sam9m10g45ek_nandflash_config \
+ at91sam9m10g45ek_dataflash_config \
+ at91sam9m10g45ek_dataflash_cs0_config \
+ at91sam9m10g45ek_config \
++at91sam9m10g45ek_eeprom_config \
+ at91sam9g45ekes_nandflash_config \
+ at91sam9g45ekes_dataflash_config \
+ at91sam9g45ekes_dataflash_cs0_config \
++at91sam9g45ekes_eeprom_config	\
+ at91sam9g45ekes_config	:	unconfig
+ 	@mkdir -p $(obj)include
+-		@if [ "$(findstring 9m10,$@)" ] ; then \
+-		echo "#define CONFIG_AT91SAM9M10G45EK 1"	>>$(obj)include/config.h ; \
+-		$(XECHO) "... 9M10G45 Variant" ; \
+-	else \
+-		echo "#define CONFIG_AT91SAM9G45EKES 1"	>>$(obj)include/config.h ; \
++	@if [ "$(findstring 9m10g45ek,$@)" ] ; then \
++		echo "#define CONFIG_AT91SAM9M10G45EK 1"	>>$(obj)include/config.h ; \
++		$(XECHO) "... AT91SAM9M10G45EK Variant" ; \
++	elif [ "$(findstring 9m10ek,$@)" ] ; then \
++		echo "#define CONFIG_AT91SAM9M10G45EK 1"	>>$(obj)include/config.h ; \
++		echo "#define CONFIG_AT91SAM9M10EK 1"		>>$(obj)include/config.h ; \
++		$(XECHO) "... AT91SAM9M10EK Variant" ; \
++	elif [ "$(findstring 9m10ek,$@)" ] ; then \
++		echo "#define CONFIG_AT91SAM9M10G45EK 1"	>>$(obj)include/config.h ; \
++		echo "#define CONFIG_AT91SAM9G45EK 1"		>>$(obj)include/config.h ; \
++		$(XECHO) "... AT91SAM9G45EK Variant" ; \
++	elif [ "$(findstring 9m10g45ek,$@)" ] ; then \
++		echo "#define CONFIG_AT91SAM9G45EKES 1"		>>$(obj)include/config.h ; \
++		$(XECHO) "... AT91SAM9G45EKES Variant" ; \
+ 	fi;
+-
+ 	@if [ "$(findstring _nandflash,$@)" ] ; then \
+ 		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
+ 		$(XECHO) "... with environment variable in NAND FLASH" ; \
+-	else \
++	elif [ "$(findstring _dataflash,$@)" ] ; then \
+ 		echo "#define CONFIG_ATMEL_SPI 1"	>>$(obj)include/config.h ; \
+ 		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
++	elif [ "$(findstring _eeprom,$@)" ] ; then \
++		echo "#define CONFIG_ATMEL_EEPROM 1"		>>$(obj)include/config.h ; \
++		$(XECHO) "... with environment variable in SPI EEPROM (not yet supported)" ; \
+ 	fi;
+ 	@$(MKCONFIG) -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
+ 





More information about the Openembedded-commits mailing list