[Skiboot] [PATCH 6/6] devicetree: Add Makefile to build dtb binaries
Reza Arbab
arbab at linux.ibm.com
Thu Feb 14 08:42:38 AEDT 2019
Add a simple Makefile to build external/devicetree/*.dtb.
Signed-off-by: Reza Arbab <arbab at linux.ibm.com>
---
external/devicetree/.gitignore | 1 +
external/devicetree/Makefile | 10 ++++++++++
2 files changed, 11 insertions(+)
create mode 100644 external/devicetree/.gitignore
create mode 100644 external/devicetree/Makefile
diff --git a/external/devicetree/.gitignore b/external/devicetree/.gitignore
new file mode 100644
index 000000000000..b60ed208c779
--- /dev/null
+++ b/external/devicetree/.gitignore
@@ -0,0 +1 @@
+*.dtb
diff --git a/external/devicetree/Makefile b/external/devicetree/Makefile
new file mode 100644
index 000000000000..5a136f49999a
--- /dev/null
+++ b/external/devicetree/Makefile
@@ -0,0 +1,10 @@
+DTC=/usr/bin/dtc
+OUT=p9-simics.dtb
+
+all: $(OUT)
+
+%.dtb: %.dts
+ $(DTC) -I dts -O dtb $< -o $@
+
+clean:
+ $(RM) $(OUT)
--
1.8.3.1
More information about the Skiboot
mailing list