summaryrefslogtreecommitdiff
path: root/target/aarch64
diff options
context:
space:
mode:
Diffstat (limited to 'target/aarch64')
-rw-r--r--target/aarch64/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/aarch64/Makefile b/target/aarch64/Makefile
index c96264c39..ad4c30b31 100644
--- a/target/aarch64/Makefile
+++ b/target/aarch64/Makefile
@@ -56,7 +56,12 @@ endif
endif
kernel-strip:
+ifeq ($(ADK_TARGET_KERNEL_GIT_REPO_NAME),rpi)
+ @echo adding DT trailer to kernel $(MAKE_TRACE)
+ PATH='$(HOST_PATH)' perl $(LINUX_DIR)/scripts/mkknlimg $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) $(MAKE_TRACE)
+else
@cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
+endif
kernel-install: kernel-strip
@cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)