diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2022-12-08 12:02:03 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2022-12-15 15:30:15 +0100 |
commit | 767514154be31670df3f072c44537af64993a6a4 (patch) | |
tree | 0f6b657272cefbe5e3bfa31bde711de6fad001d2 /target/aarch64/Makefile | |
parent | 63896d07d312a57fa4033b0826fd3317816b500d (diff) |
add support for rockpi4-plus
Diffstat (limited to 'target/aarch64/Makefile')
-rw-r--r-- | target/aarch64/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/aarch64/Makefile b/target/aarch64/Makefile index b470e2975..0106bd609 100644 --- a/target/aarch64/Makefile +++ b/target/aarch64/Makefile @@ -24,6 +24,10 @@ ifeq ($(ADK_TARGET_BOARD_BCM28XX),y) @echo "Use following command to install it on SD card:" @echo "sudo ./scripts/install.sh $(ADK_TARGET_SYSTEM) /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" endif +ifeq ($(ADK_TARGET_SYSTEM_ROCKPI4_PLUS),y) + @echo "Use following command to install it on SD card:" + @echo "sudo ./scripts/install.sh $(ADK_TARGET_SYSTEM) /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" +endif ifeq ($(ADK_TARGET_QEMU),y) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' @echo "Use following command to create a QEMU Image:" @@ -54,6 +58,12 @@ ifeq ($(ADK_TARGET_QEMU),y) @echo 'qemu-system-${ADK_TARGET_CPU_ARCH} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL)' endif endif +ifeq ($(ADK_TARGET_FS),genimage) +targethelp: + @echo "The disk image is: $(FW_DIR)/sdcard.img" + @echo "Use following command to install it on SD card:" + @echo 'sudo dd if=$(FW_DIR)/sdcard.img of=/dev/sdX bs=2048k' +endif kernel-strip: @cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) @@ -74,6 +84,13 @@ ifeq ($(ADK_TARGET_BOARD_BCM28XX),y) break; \ done endif +ifeq ($(ADK_TARGET_SYSTEM_ROCKPI4_PLUS),y) + ${KERNEL_MAKE} rockchip/rk3399-rock-pi-4c-plus.dtb $(MAKE_TRACE) +endif + for x in $(LINUX_DIR)/arch/arm64/boot/dts/*/*.dtb; do \ + [[ -e "$$x" ]] && cp $(LINUX_DIR)/arch/arm64/boot/dts/*/*.dtb $(FW_DIR); \ + break; \ + done # filesystem specific targets ifeq ($(ADK_TARGET_FS),archive) @@ -88,3 +105,6 @@ endif ifeq ($(ADK_TARGET_FS),initramfspiggyback) imageinstall: createinitramfs targethelp endif +ifeq ($(ADK_TARGET_FS),genimage) +imageinstall: dtb-install $(FW_DIR)/$(GENIMAGE) targethelp +endif |