summaryrefslogtreecommitdiff
path: root/target/sh/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-12-11 07:27:49 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-12-13 05:47:44 +0100
commit3aa598104ca4c6f8de67b228ced3e680fbcab677 (patch)
treea737c19928f8d853b97e5d655353a547df822fef /target/sh/Makefile
parent9ce0683145795cdb3d35f0cd764e4765cc127f13 (diff)
sh2-nommu/j2: add better support and add required patches from musl-cross-make
Diffstat (limited to 'target/sh/Makefile')
-rw-r--r--target/sh/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/target/sh/Makefile b/target/sh/Makefile
index 70df270be..58823b38d 100644
--- a/target/sh/Makefile
+++ b/target/sh/Makefile
@@ -67,6 +67,12 @@ endif
kernel-install: kernel-strip
@cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/${TARGET_KERNEL}
+dtb-install:
+ifeq ($(ADK_TARGET_SYSTEM_NUMATO_MIMASV2),y)
+ PATH='$(HOST_PATH)' dtc -O dtb -o $(FW_DIR)/dt.dtb \
+ $(LINUX_DIR)/arch/sh/boot/dts/j2_mimas_v2.dts
+endif
+
# filesystem specific targets
ifeq ($(ADK_TARGET_FS),archive)
imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
@@ -78,5 +84,5 @@ ifeq ($(ADK_TARGET_FS),initramfsarchive)
imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
endif
ifeq ($(ADK_TARGET_FS),initramfspiggyback)
-imageinstall: createinitramfs targethelp
+imageinstall: dtb-install createinitramfs targethelp
endif