From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Grandegger Date: Fri, 20 Apr 2007 18:36:11 +0200 Subject: [U-Boot-Users] Testing todays u-boot-fdt In-Reply-To: <4627F709.8060502@cideas.com> References: <20070419155158.29E1A352658@atlas.denx.de> <4627F709.8060502@cideas.com> Message-ID: <4628EBFB.60802@grandegger.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jerry, Jerry Van Baren wrote: [...] > Hi wd, > > I found the technique in u-boot and thought BOARDLIBS was the approved > method. Looks like it is a NAND thing. > > $ grep -r BOARDLIBS * > board/prodrive/pdnb3/config.mk:BOARDLIBS = $(obj)cpu/ixp/npe/libnpe.a > board/nc650/config.mk:BOARDLIBS = $(obj)drivers/nand/libnand.a > board/ixdp425/config.mk:BOARDLIBS = $(obj)cpu/ixp/npe/libnpe.a > board/mpc8360emds/config.mk:BOARDLIBS = libfdt/libfdt.a > doc/README.nand:specific config.mk file should also have "BOARDLIBS = > doc/README.nand:necessary, but the config.mk should have "BOARDLIBS = > include/configs/delta.h:/* Use the new NAND code. (BOARDLIBS = > drivers/nand/libnand.a required) */ > include/configs/zylonite.h:/* Use the new NAND code. (BOARDLIBS = > drivers/nand/libnand.a required) */ > Makefile:LIBS += $(BOARDLIBS) > > Not a problem, I'll revert back to wg's Makefile change. In U-Boot, it's common practice to use "ugly" ifdef's in the source files mainly to reduce compile time as shown in the attached patch. Wolfgang. -------------- next part -------------- A non-text attachment was scrubbed... Name: u-boot-libfdt.patch Type: text/x-patch Size: 3175 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20070420/bcdb32d7/attachment.bin