From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Thu, 19 Apr 2007 19:11:05 -0400 Subject: [U-Boot-Users] Testing todays u-boot-fdt In-Reply-To: <20070419155158.29E1A352658@atlas.denx.de> References: <20070419155158.29E1A352658@atlas.denx.de> Message-ID: <4627F709.8060502@cideas.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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