Automatically build the device tree if DEV_TREE_SEPARATE is set
PATCH 1/1 Automatically build the device tree if DEV_TREE_SEPARATE is set
This change makes the u-boot "all" target build the separate device tree if DEV_TREE_SEPARATE is set. This use of DEV_TREE_SEPARATE is consistent with the one other use in the u-boot build system. It's at least expedient and perhaps necessary to build the device tree this way since it's difficult to know the value of $(obj) when invoking make.
--- Makefile | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
Makefile +4 -0
@@ -371,6 +371,10 @@ $(obj)u-boot.dtb: $(obj)u-boot $(MAKE) -C dts binary mv $(obj)dts/dt.dtb $@ +ifdef DEV_TREE_SEPARATE +all: $(obj)u-boot.dtb +endif + $(obj)u-boot-dtb.bin: $(obj)u-boot.bin $(obj)u-boot.dtb cat $^ >$@
Signature · 1 line
1.7.3.1
PATCH 1/1 Automatically build the device tree if DEV_TREE_SEPARATE is set
Quoted 5 lines · On Tuesday 08 November 2011 04:15:32 Gabe Black wrote:
This change makes the u-boot "all" target build the separate device tree if
DEV_TREE_SEPARATEis set. This use ofDEV_TREE_SEPARATEis consistent with the one other use in the u-boot build system. It's at least expedient and perhaps necessary to build the device tree this way since it's difficult to know the value of $(obj) when invoking make.
i don't see anyone else using DEV_TREE_SEPARATE. we already have CONFIG_OF_SEPARATE which causes the .dtb to be generated.
Simon: any idea what's up ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111108/803f5111/attachment.pgp
PATCH 1/1 Automatically build the device tree if DEV_TREE_SEPARATE is set
Hi Mike,
Quoted 7 lines · Mike Frysinger
Quoted 5 lines · On Tuesday 08 November 2011 04:15:32 Gabe Black wrote:
This change makes the u-boot "all" target build the separate device tree if
DEV_TREE_SEPARATEis set. This use ofDEV_TREE_SEPARATEis consistent with the one other use in the u-boot build system. It's at least expedient and perhaps necessary to build the device tree this way since it's difficult to know the value of $(obj) when invoking make.
Quoted 6 lines
i don't see anyone else using
DEV_TREE_SEPARATE. ?we already haveCONFIG_OF_SEPARATEwhich causes the .dtb to be generated.Simon: any idea what's up ?
-mike
Yes, in the Chromium tree I put .dtb generation in the Makefile, since it was planned for upstream. It was removed in this change:
https://gerrit.chromium.org/gerrit/#change,4267
So if we ignore that one, I don't think Gabe's change in this email is necessary upstream, but we may need to consider a way to have CONFIG_OF_SEPARATE not build a dtb. Let's see how we go.
Regards,
Simon