summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste DURAND <baptiste.durand@gmail.com>2015-06-04 11:15:17 +0200
committerBaptiste DURAND <baptiste.durand@gmail.com>2015-06-04 11:18:58 +0200
commit893c7c6eeafe37aea14cf37eea37211840b968e5 (patch)
tree05b3e40d242ca94a9f90895596a80fc61d8cdcd4
parent4064a68dbcb2e9002d910654524f27c2ee9291ed (diff)
downloadmeta-tizen-sandbox/durandba1/devel-common.tar.gz
meta-tizen-sandbox/durandba1/devel-common.tar.bz2
meta-tizen-sandbox/durandba1/devel-common.zip
Add new image type bootdirectsandbox/durandba1/devel-common
Signed-off-by: Baptiste DURAND <baptiste.durand@gmail.com>
-rw-r--r--meta-tizen-common-base/classes/image-bootdirect.bbclass31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-tizen-common-base/classes/image-bootdirect.bbclass b/meta-tizen-common-base/classes/image-bootdirect.bbclass
new file mode 100644
index 00000000..a54183f2
--- /dev/null
+++ b/meta-tizen-common-base/classes/image-bootdirect.bbclass
@@ -0,0 +1,31 @@
+
+#NOISO = "1"
+
+SYSLINUX_ROOT ?= "root=/dev/sda2"
+SYSLINUX_PROMPT ?= "0"
+SYSLINUX_TIMEOUT ?= "10"
+SYSLINUX_LABELS = "boot"
+LABELS_append = " ${SYSLINUX_LABELS} "
+
+# need to define the dependency and the ROOTFS for directdisk
+do_bootdirectdisk[depends] += "${PN}:do_rootfs"
+ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3"
+
+# creating VMDK relies on having a live hddimg so ensure we
+# inherit it here.
+#inherit image-live
+inherit boot-directdisk
+
+IMAGE_TYPEDEP_bootdirect = "ext3"
+IMAGE_TYPES_MASKED += "bootdirect"
+
+
+python do_bootdirectimg() {
+ # bb.build.exec_func('create_vmdk_image', d)
+ return 0
+}
+
+addtask do_bootdirectimg after do_bootdirectdisk before do_build
+
+##do_vmdkimg[depends] += "qemu-native:do_populate_sysroot"
+