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

Stephen Warren swarren at nvidia.com
Thu Oct 13 23:13:24 CEST 2011


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

-- 
nvpublic



More information about the U-Boot mailing list