summaryrefslogtreecommitdiff
path: root/src/mainboard/sifive/hifive-unmatched/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/sifive/hifive-unmatched/Makefile.inc')
-rw-r--r--src/mainboard/sifive/hifive-unmatched/Makefile.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mainboard/sifive/hifive-unmatched/Makefile.inc b/src/mainboard/sifive/hifive-unmatched/Makefile.inc
new file mode 100644
index 0000000000..0463be5de4
--- /dev/null
+++ b/src/mainboard/sifive/hifive-unmatched/Makefile.inc
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+bootblock-y += romstage.c
+bootblock-y += cbfs_spi.c
+
+ramstage-y += cbfs_spi.c
+ramstage-y += fixup_fdt.c
+
+DTB=$(obj)/hifive-unmatched.dtb
+DTS=src/mainboard/sifive/hifive-unmatched/hifive-unmatched-a00.dts
+$(DTB): $(DTS)
+ dtc -I dts -O dtb -o $(DTB) $(DTS)
+
+cbfs-files-y += fallback/DTB
+fallback/DTB-file := $(DTB)
+fallback/DTB-type := raw