[U-Boot-Users] Testing todays u-boot-fdt
wg at grandegger.com
Thu Apr 19 15:42:53 CEST 2007
Jerry Van Baren wrote:
> Wolfgang Grandegger wrote:
>> Hi Jerry,
>> I gave the fdtlib of your git://cideas.us/pub/scm/u-boot/u-boot-fdt.git
>> a try on my Icecube board. I got it built with the attached patch.
>> libfdt was actually not made and the second hunk fixes a warning
>> (=bug?). Then I was able to read and list a blob in memory:
>> diff --git a/Makefile b/Makefile
>> index 9a27bc2..94cda54 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -219,6 +219,7 @@ LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then
>> echo \
>> 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.
Ah, I was already wondering why it did work on your side. Nevertheless,
touching two places to use the library is cumbersome. But adding ifdef's
to the source code is also not nice.
More information about the U-Boot