Skip to content

Commit

Permalink
devicetree: Add Makefile to build dtb binaries
Browse files Browse the repository at this point in the history
Add a simple Makefile to build external/devicetree/*.dtb.

Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
rarbab authored and stewartsmith committed Feb 19, 2019
1 parent 50d1a08 commit 9f9dd8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions external/devicetree/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.dtb
10 changes: 10 additions & 0 deletions external/devicetree/Makefile
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 9f9dd8d

Please sign in to comment.