summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-10 10:52:49 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-10 10:53:34 +0200
commit4830c5375683e8a88cb3e8a887dd91e5d4274e07 (patch)
tree42f4c6533f6bf512d5dd19a8a3ea27f882cd3bc1 /target
parent80927381105b7e9b92f69be100f8bacab36c5760 (diff)
genimage: add better support
Diffstat (limited to 'target')
-rw-r--r--target/config/Config.in.rootfs5
-rw-r--r--target/config/Config.in.tools29
-rw-r--r--target/x86_64/qemu-x86_64/genimage.cfg15
3 files changed, 29 insertions, 20 deletions
diff --git a/target/config/Config.in.rootfs b/target/config/Config.in.rootfs
index 442130c01..ae98afba3 100644
--- a/target/config/Config.in.rootfs
+++ b/target/config/Config.in.rootfs
@@ -152,8 +152,9 @@ config ADK_TARGET_ROOTFS_ARCHIVE
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
+ select ADK_KERNEL_EXT4_FS
+ select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
+ select ADK_HOST_BUILD_GENIMAGE
help
Create a complete disk image for the target with genimage.
diff --git a/target/config/Config.in.tools b/target/config/Config.in.tools
index 36c3f6dbf..5f8f7002e 100644
--- a/target/config/Config.in.tools
+++ b/target/config/Config.in.tools
@@ -27,10 +27,6 @@ config ADK_HOST_BUILD_FLEX
bool
default y
-config ADK_HOST_BUILD_GENIMAGE
- bool
- default y
-
config ADK_HOST_BUILD_M4
bool
default y
@@ -112,6 +108,31 @@ config ADK_HOST_BUILD_XZ
default n
# optional, but can be provided by host
+config ADK_HOST_BUILD_DOSFSTOOLS
+ bool
+ default n
+
+config ADK_HOST_BUILD_E2FSPROGS
+ bool
+ default n
+
+config ADK_HOST_BUILD_MKE2IMG
+ bool
+ default n
+
+config ADK_HOST_BUILD_MTOOLS
+ bool
+ default n
+
+config ADK_HOST_BUILD_GENIMAGE
+ bool
+ select ADK_HOST_BUILD_MKE2IMG
+ select ADK_HOST_BUILD_MTOOLS
+ select ADK_HOST_BUILD_GENEXT2FS
+ select ADK_HOST_BUILD_E2FSPROGS
+ select ADK_HOST_BUILD_DOSFSTOOLS
+ default n
+
config ADK_HOST_NEED_CCACHE
bool
default n
diff --git a/target/x86_64/qemu-x86_64/genimage.cfg b/target/x86_64/qemu-x86_64/genimage.cfg
index a958d560d..9f2d3ec72 100644
--- a/target/x86_64/qemu-x86_64/genimage.cfg
+++ b/target/x86_64/qemu-x86_64/genimage.cfg
@@ -3,22 +3,9 @@ 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"
+ image = "rootfs.ext"
}
}