Browse Source

mips: add genimage targets in arch Makefile

Waldemar Brodkorb 7 years ago
parent
commit
4e4d842354
1 changed files with 13 additions and 0 deletions
  1. 13 0
      target/mips/Makefile

+ 13 - 0
target/mips/Makefile

@@ -77,6 +77,16 @@ targethelp:
 	@echo 'then install kernel and filesystem via:'
 	@echo 'adkinstall -n -a ${ROOTFSTARBALL}'
 endif
+ifeq ($(ADK_TARGET_FS),genimage)
+targethelp:
+	@echo "The disk image is: $(FW_DIR)/disk.img"
+ifeq ($(ADK_TARGET_QEMU),y)
+	@echo 'qemu-system-${ADK_TARGET_CPU_ARCH} ${QEMU_ARGS} $(FW_DIR)/disk.img'
+else
+	@echo "Use following command to install it on SD card:"
+	@echo 'sudo dd if=$(FW_DIR)/disk.img of=/dev/sdX bs=2048k'
+endif
+endif
 
 # image creation and kernel install
 kernel-strip:
@@ -102,6 +112,9 @@ endif
 ifeq ($(ADK_TARGET_FS),initramfspiggyback)
 imageinstall: createinitramfs targethelp
 endif
+ifeq (${ADK_TARGET_FS},genimage)
+imageinstall: ${FW_DIR}/${GENIMAGE} targethelp
+endif
 ifeq ($(ADK_TARGET_FS),nfsroot)
 imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
 endif