summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2018-05-11 12:53:50 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-07-30 18:47:46 +0000
commit448f5abaf05564a4fa56b482f1f63daf3cf66509 (patch)
tree1938d4996e50ccfe02e2f1252ddd16d21ca547d3 /src
parent5cdaa3305ec928f07fb8e55531d7082aeaecbeb9 (diff)
mb/cavium/cn8100_sff_evb: Compile devicetree for Linux
Compile the linux devicetree using dtc and add it to CBFS. Change-Id: I8a98ed7b128f65a6e0109963dbabca91563a315c Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/26229 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/cavium/cn8100_sff_evb/Makefile.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/cavium/cn8100_sff_evb/Makefile.inc b/src/mainboard/cavium/cn8100_sff_evb/Makefile.inc
index 97a03c4d28..be35511cff 100644
--- a/src/mainboard/cavium/cn8100_sff_evb/Makefile.inc
+++ b/src/mainboard/cavium/cn8100_sff_evb/Makefile.inc
@@ -25,3 +25,14 @@ ramstage-y += memlayout.ld
ramstage-y += bdk_devicetree.c
verstage-y += memlayout.ld
+
+MB_DIR = src/mainboard/$(MAINBOARDDIR)
+
+LINUX_DTB = sff8104-linux.dtb
+build/$(LINUX_DTB):
+ # FIXME: why isn't this producing the correct size DTB?
+ dtc -p 4096 -I dts -O dtb -o build/$(LINUX_DTB) -i $(MB_DIR) $(MB_DIR)/$(patsubst %.dtb,%.dts,$(LINUX_DTB))
+
+cbfs-files-y += $(LINUX_DTB)
+$(LINUX_DTB)-file := build/$(LINUX_DTB)
+$(LINUX_DTB)-type := raw