summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-02-23 03:08:14 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-02-23 03:09:28 +0100
commit4e4d842354a34da9c1c9031a6cbc06ec51ff8113 (patch)
treeadbd30772151ddca6d82abd78b03b05e85d6d5ad
parent07017fea19ec1c1a2e770a496e8c0315be8675db (diff)
mips: add genimage targets in arch Makefile
-rw-r--r--target/mips/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/mips/Makefile b/target/mips/Makefile
index cc39db1bd..bb30049f1 100644
--- a/target/mips/Makefile
+++ b/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