[U-Boot-Users] [PATCH] sinclude board specific make fragment

Murray.Jensen at csiro.au Murray.Jensen at csiro.au
Thu Jul 14 09:20:13 CEST 2005


On Thu, 30 Jun 2005 17:11:43 +0200, Wolfgang Denk writes:
>> >Actually the board specific "config.mk" files  might  be  romved  one
>> >day.
>> 
>> Umm.. this would be very bad. Why would you want to do that?
>
>Why not? All we use it for is to  define  TEXT_BASE  in  a  way  that
>"make" can conveniently pick it up. There may be other ways to do the
>same  without  needing  a  separate  file  for  it  -  logically this
>information belongs to the board config file.

TEXT_BASE is not the only thing being defined in the board specific
config.mk file (at least for me) ... other things I do in there are:

1. append to PLATFORM_CPPFLAGS to add a -I options for the compiler;
2. set OBJCFLAGS so I can remove sections from the ELF => BIN copy;
3. set LDSCRIPT based on the board revision;
4. set CROSS_COMPILE based on board revision;
5. add to the ALL variable so other binary images are built, not just
   the u-boot.bin image - i.e. a binary image of the boot page required
   for the MPC8560 processor.

I think removing the board specific "config.mk" file would be a serious
mistake. Cheers!
								Murray...
-- 
Murray Jensen, CSIRO Manufacturing & Infra. Tech.      Phone: +61 3 9662 7763
Locked Bag No. 9, Preston, Vic, 3072, Australia.         Fax: +61 3 9662 7853
Internet: Murray.Jensen at csiro.au

To the extent permitted by law, CSIRO does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained or
that the communication is free of errors, virus, interception or interference.

The information contained in this e-mail may be confidential or privileged.
Any unauthorised use or disclosure is prohibited. If you have received this
e-mail in error, please delete it immediately and notify Murray Jensen on
+61 3 9662 7763. Thank you.





More information about the U-Boot mailing list