From: Wolfgang Denk Date: Sun, 09 Aug 2009 22:38:25 +0200 Subject: [U-Boot] [PATCH 2/2] Support for the Calao TNY-A9260/TNY-A9G20 boards In-Reply-To: <1249641457-16887-2-git-send-email-albin.tonnerre@free-electrons.com> References: <20090805195843.GF13346@game.jcrosoft.org> <1249641457-16887-1-git-send-email-albin.tonnerre@free-electrons.com> <1249641457-16887-2-git-send-email-albin.tonnerre@free-electrons.com> Message-ID: <20090809203825.B9613833DBD2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Albin Tonnerre, In message <1249641457-16887-2-git-send-email-albin.tonnerre@free-electrons.com> you wrote: > The Calao TNY-A9260 and TNY-9G20 are boards manufactured and sold by > Calao Systems . Their components are very > similar to the AT91SAM9260EK board, so their configuration is based on > the configuration of this board. There are however some differences: > different clocks, no LCD, no ethernet. They also can use SPI EEPROM to > store the environment. ... > --- a/Makefile > +++ b/Makefile > @@ -2838,6 +2838,25 @@ at91sam9g45ekes_config : unconfig > pm9263_config : unconfig > @$(MKCONFIG) $(@:_config=) arm arm926ejs pm9263 ronetix at91 > > +tny_a9g20_nandflash_config \ > +tny_a9g20_eeprom_config \ > +tny_a9g20_config \ > +tny_a9260_nandflash_config \ > +tny_a9260_eeprom_config \ > +tny_a9260_config : unconfig > + @mkdir -p $(obj)include > + @if [ "$(findstring _nandflash,$@)" ] ; then \ > + echo "#define CONFIG_ENV_IS_IN_NAND" >>$(obj)include/config.h ; \ > + else \ > + echo "#define CONFIG_ENV_IS_IN_EEPROM" >>$(obj)include/config.h ; \ > + fi; > + @if [ "$(findstring _a9g20,$@)" ] ; then \ > + echo "#define CONFIG_TNY_A9G20" >>$(obj)include/config.h ; \ > + else \ > + echo "#define CONFIG_TNY_A9260" >>$(obj)include/config.h ; \ > + fi; > + @$(MKCONFIG) -a tny_a9260 arm arm926ejs tny_a9260 calao at91 Please do not add such scripting to the top level Makefile. Perform it in your board config file instead. For an example, please see http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/65499 Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A father doesn't destroy his children. -- Lt. Carolyn Palamas, "Who Mourns for Adonais?", stardate 3468.1.