[U-Boot-Users] Testing todays u-boot-fdt

Wolfgang Grandegger wg at grandegger.com
Fri Apr 20 18:36:11 CEST 2007


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 


More information about the U-Boot mailing list