From mboxrd@z Thu Jan 1 00:00:00 1970 From: Murray.Jensen at csiro.au Date: Thu, 14 Jul 2005 17:20:13 +1000 Subject: [U-Boot-Users] [PATCH] sinclude board specific make fragment In-Reply-To: Your message of "Thu, 30 Jun 2005 17:11:43 +0200" <20050630151143.7ACA0353A0E@atlas.denx.de> Message-ID: <1756.1121325613@gerd> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.