summaryrefslogtreecommitdiff
path: root/target/x86_64
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-05 21:59:15 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-05 21:59:15 +0200
commit3e337374f35eaf153f8ced25cc466d896a8a0a4d (patch)
tree6778dbcc9125156258203b01e27a4ff56d195a58 /target/x86_64
parent857e9176a37ec642e007ea33c142ee3fb87bbf85 (diff)
add some basic genimage support
Diffstat (limited to 'target/x86_64')
-rw-r--r--target/x86_64/Makefile3
-rw-r--r--target/x86_64/qemu-x86_64/genimage.cfg25
2 files changed, 28 insertions, 0 deletions
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"
+ }
+
+}
+