
Wolfgang Denk wrote:
In message 46276E94.6090204@smiths-aerospace.com you wrote:
LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \ "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi) LIBS += common/libcommon.a +LIBS += libfdt/libfdt.a LIBS += $(BOARDLIBS)
LIBS := $(addprefix $(obj),$(LIBS))
Ahh, that is not a bug, you fixed the wrong file. You need to add libfdt/libfdt.a to your board's BOARDLIBS in your board's config file (see line after your addition - been there, did the same thing ;-). There is no point building libfdt.a if it isn't used.
That's not the way things are done in U-Boot. Please fix this so that all U-Boot libraries are handled in the same way.
Best regards,
Wolfgang Denk
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.
Best regards, gvb