[U-Boot] [PATCH v5] Add support for Eukrea CPUAT91 SBC

Dirk Behme dirk.behme at googlemail.com
Sun Aug 9 23:11:54 CEST 2009


Dear Wolfgang,

Wolfgang Denk wrote:
> Dear Eric Benard,
> 
> In message <1249816414-18989-1-git-send-email-eric at 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=c9d315ae98f2272659b88405cd2b94265f3bbfc3;hp=54c0b67499510f83fa642b9684ad95ce832de1b9;hb=f8ea12cf9be98508096dc4102a6ef40cb484fdd3;hpb=c6b5600aee06a13e556837c3065f7f8721d56ec9

Best regards

Dirk


More information about the U-Boot mailing list