
Dear Wolfgang,
Wolfgang Denk wrote:
Dear Eric Benard,
In message 1249816414-18989-1-git-send-email-eric@eukrea.com you wrote:
CPUAT91 is built around Atmel's AT91RM9200 and has up to 16MB of NOR flash, up to 128MB of SDRAM, and includes a Micrel KS8721 PHY in RMII mode.
...
meesc \ diff --git a/Makefile b/Makefile index 54c0b67..2386cdc 100644 --- a/Makefile +++ b/Makefile @@ -2674,6 +2674,19 @@ at91rm9200ek_config : unconfig cmc_pu2_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
+cpuat91_ram_config \ +cpuat91_config : unconfig
- @mkdir -p $(obj)include
- @if [ "$(findstring _ram_,$@)" ] ; then \
echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \
echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \
$(XECHO) "... CPUAT91 configured for RAM" ; \
- else \
echo "#define CONFIG_BOOTDELAY 1" >>$(obj)include/config.h ; \
$(XECHO) "... CPUAT91 configured for Flash" ;\
- fi;
- @$(MKCONFIG) -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200
csb637_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
Please do not add such scripting to the top level Makefile. Perform it in your board config file instead.
Not sure if this is 'standard' for at91, but I saw something similar in
http://git.denx.de/?p=u-boot/u-boot-arm.git;a=blobdiff;f=Makefile;h=c9d315ae...
Best regards
Dirk