[PATCH v2 01/14] Makefile: Add OF_UPSTREAM Makefile for RISC-V

Hal Feng hal.feng at starfivetech.com
Mon Oct 28 02:58:34 CET 2024


This makes RISC-V DT buildable with OF_UPSTREAM.

Signed-off-by: Hal Feng <hal.feng at starfivetech.com>
---
 dts/upstream/src/riscv/Makefile | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 dts/upstream/src/riscv/Makefile

diff --git a/dts/upstream/src/riscv/Makefile b/dts/upstream/src/riscv/Makefile
new file mode 100644
index 0000000000..e00b3190da
--- /dev/null
+++ b/dts/upstream/src/riscv/Makefile
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: GPL-2.0+
+
+include $(srctree)/scripts/Makefile.dts
+
+targets += $(dtb-y)
+
+# Add any required device tree compiler flags here
+DTC_FLAGS += -R 4 -p 0x1000
+
+PHONY += dtbs
+dtbs: $(addprefix $(obj)/, $(dtb-y))
+	@:
+
+clean-files := */*.dtb */*.dtbo
-- 
2.43.2



More information about the U-Boot mailing list