summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/dts/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-02-26 15:59:14 -0700
committerTom Rini <trini@ti.com>2014-03-04 12:15:28 -0500
commit714a5621c2df0b1cfce525b9add071fc9bfd726b (patch)
tree74046d9f8bc03378d7d4daf67df27189b7df705b /arch/sandbox/dts/Makefile
parent1ace4022394eacbdae12e7275c445699f8ad4833 (diff)
downloadtalos-obmc-uboot-714a5621c2df0b1cfce525b9add071fc9bfd726b.tar.gz
talos-obmc-uboot-714a5621c2df0b1cfce525b9add071fc9bfd726b.zip
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>
Diffstat (limited to 'arch/sandbox/dts/Makefile')
-rw-r--r--arch/sandbox/dts/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sandbox/dts/Makefile b/arch/sandbox/dts/Makefile
new file mode 100644
index 0000000000..a4c980b235
--- /dev/null
+++ b/arch/sandbox/dts/Makefile
@@ -0,0 +1,11 @@
+dtb-$(CONFIG_SANDBOX) += sandbox.dtb
+
+targets += $(dtb-y)
+
+DTC_FLAGS += -R 4 -p 0x1000
+
+PHONY += dtbs
+dtbs: $(addprefix $(obj)/, $(dtb-y))
+ @:
+
+clean-files := *.dtb
OpenPOWER on IntegriCloud