Commit 714a5621c2df0b1cfce525b9add071fc9bfd726b
Committed by
Tom Rini
1 parent
1ace402239
Exists in
v2017.01-smarct4x
and in
48 other branches
sandbox: Build a device tree file for sandbox
Add support for building a device tree for sandbox's CONFIG_OF_HOSTFILE option to make it easier to use device tree with sandbox. This adjusts the Makefile to build a u-boot.dtb file which can be passed to sandbox U-Boot with: ./u-boot -d u-boot.dtb Signed-off-by: Simon Glass <sjg@chromium.org>
Showing 5 changed files with 35 additions and 0 deletions Side-by-side Diff
Makefile
... | ... | @@ -708,6 +708,7 @@ |
708 | 708 | ALL-$(CONFIG_SPL_FRAMEWORK) += u-boot.img |
709 | 709 | ALL-$(CONFIG_TPL) += tpl/u-boot-tpl.bin |
710 | 710 | ALL-$(CONFIG_OF_SEPARATE) += u-boot.dtb u-boot-dtb.bin |
711 | +ALL-$(CONFIG_OF_HOSTFILE) += u-boot.dtb | |
711 | 712 | ifneq ($(CONFIG_SPL_TARGET),) |
712 | 713 | ALL-$(CONFIG_SPL) += $(CONFIG_SPL_TARGET:"%"=%) |
713 | 714 | endif |
arch/sandbox/config.mk
arch/sandbox/dts/Makefile
arch/sandbox/dts/sandbox.dts
1 | +/dts-v1/; | |
2 | + | |
3 | +/ { | |
4 | + triangle { | |
5 | + compatible = "demo-shape"; | |
6 | + colour = "cyan"; | |
7 | + sides = <3>; | |
8 | + character = <83>; | |
9 | + }; | |
10 | + square { | |
11 | + compatible = "demo-shape"; | |
12 | + colour = "blue"; | |
13 | + sides = <4>; | |
14 | + }; | |
15 | + hexagon { | |
16 | + compatible = "demo-simple"; | |
17 | + colour = "white"; | |
18 | + sides = <6>; | |
19 | + }; | |
20 | +}; |