diff options
Diffstat (limited to 'target')
-rw-r--r-- | target/config/Config.in.rootfs | 7 | ||||
-rw-r--r-- | target/x86_64/Makefile | 3 | ||||
-rw-r--r-- | target/x86_64/qemu-x86_64/genimage.cfg | 25 |
3 files changed, 35 insertions, 0 deletions
diff --git a/target/config/Config.in.rootfs b/target/config/Config.in.rootfs index 0c8cdfcfa..442130c01 100644 --- a/target/config/Config.in.rootfs +++ b/target/config/Config.in.rootfs @@ -150,6 +150,13 @@ config ADK_TARGET_ROOTFS_ARCHIVE help Use this option if your root filesystem is ext2/ext3/ext4/xfs. +config ADK_TARGET_ROOTFS_GENIMAGE + bool "Create a disk image for the target" + select ADK_KERNEL_EXT2_FS if ADK_TARGET_QEMU || ADK_TARGET_VBOX + select ADK_TARGET_QEMU_WITH_BLOCK + help + Create a complete disk image for the target with genimage. + endchoice choice diff --git a/target/x86_64/Makefile b/target/x86_64/Makefile index 8fa5b0ddf..cd6530c91 100644 --- a/target/x86_64/Makefile +++ b/target/x86_64/Makefile @@ -108,6 +108,9 @@ endif ifeq (${ADK_TARGET_FS},iso) imageinstall: ${FW_DIR}/${ROOTFSISO} 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 diff --git a/target/x86_64/qemu-x86_64/genimage.cfg b/target/x86_64/qemu-x86_64/genimage.cfg new file mode 100644 index 000000000..a958d560d --- /dev/null +++ b/target/x86_64/qemu-x86_64/genimage.cfg @@ -0,0 +1,25 @@ +image disk.img { + + hdimage { + } + + partition boot { + in-partition-table = "no" + image = "boot.img" + offset = 0 + size = 512 + } + + partition grub { + in-partition-table = "no" + image = "grub.img" + offset = 512 + } + + partition root { + partition-type = 0x83 + image = "rootfs.ext2" + } + +} + |