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>
This commit is contained in:
Patrick Rudolph 2018-05-11 12:53:50 +02:00 committed by Patrick Georgi
parent 5cdaa3305e
commit 448f5abaf0
1 changed files with 11 additions and 0 deletions

View File

@ -25,3 +25,14 @@ ramstage-y += memlayout.ld
ramstage-y += bdk_devicetree.c ramstage-y += bdk_devicetree.c
verstage-y += memlayout.ld 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