From 4e4d842354a34da9c1c9031a6cbc06ec51ff8113 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 23 Feb 2017 03:08:14 +0100 Subject: mips: add genimage targets in arch Makefile --- target/mips/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'target/mips') 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 -- cgit v1.2.3