[U-Boot] [PATCH v3 2/6] fdt: Add support for embedded device tree (CONFIG_OF_EMBED)

Simon Glass sjg at chromium.org
Thu Oct 13 23:22:48 CEST 2011


Hi Stephen,

On Thu, Oct 13, 2011 at 2:13 PM, Stephen Warren <swarren at nvidia.com> wrote:
> Simon Glass wrote at Tuesday, October 11, 2011 4:26 PM:
>> This new option allows U-Boot to embed a binary device tree into its image
>> to allow run-time control of peripherals. This device tree is for U-Boot's
>> own use and is not necessarily the same one as is passed to the kernel.
> ...
>> diff --git a/dts/Makefile b/dts/Makefile
> ...
>> +$(DT_BIN): $(TOPDIR)/board/$(VENDOR)/dts/$(DEVICE_TREE).dts
>> +     cat $< | $(CPP) -P $(DTS_CPPFLAGS) - >$@.tmp
>
> Couldn't that just be:
>
>        $(CPP) -P $(DTS_CPPFLAGS) $< >$@.tmp
>
>> +     $(DTC) -R 4 -p 0x1000 -O dtb -o ${DT_BIN} $@.tmp
>> +     rm $@.tmp

I did have that originally, but got this warning:

armv7a-cros-linux-gnueabi-gcc.real: warning:
/home/sjg/trunk/src/third_party/u-boot/files/board/nvidia/dts/seaboard.dts:
linker input file unused because linking not done

so I fell back to doing as I have done. I think it might be because
gcc normally assumes that anything it cannot understand must be a link
script.

Regards,
Simon

>
> --
> nvpublic
>
>


More information about the U-Boot mailing list