diff options
author | Samuli Piippo <samuli.piippo@digia.com> | 2013-07-03 10:34:34 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2013-07-08 15:27:57 +0300 |
commit | 79e70fa7c3d503a7a9fb48c52eaa72ac3ab55c72 (patch) | |
tree | 83fee074573dd4e8c4ca8b269d38f5d42d38f3ee /classes/image-hdd.bbclass | |
parent | 8d0f933439c9d5c54285faaffce58f22c41b5dd1 (diff) | |
download | meta-boot2qt-79e70fa7c3d503a7a9fb48c52eaa72ac3ab55c72.tar.gz |
Add emulator config files
- build for x86, similar to qemu
- use direct disk image type for virtualbox
Change-Id: I4fa29d3efc9c3f0e1dd1cede405bb2efa9cff133
Reviewed-by: Samuli Piippo <samuli.piippo@digia.com>
Diffstat (limited to 'classes/image-hdd.bbclass')
-rw-r--r-- | classes/image-hdd.bbclass | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/classes/image-hdd.bbclass b/classes/image-hdd.bbclass new file mode 100644 index 0000000..fc76234 --- /dev/null +++ b/classes/image-hdd.bbclass | |||
@@ -0,0 +1,22 @@ | |||
1 | # need to define the dependency and the ROOTFS for directdisk | ||
2 | do_bootdirectdisk[depends] += "${PN}:do_rootfs" | ||
3 | ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3" | ||
4 | |||
5 | SYSLINUX_ROOT = "root=/dev/hda2 " | ||
6 | SYSLINUX_PROMPT = "0" | ||
7 | SYSLINUX_TIMEOUT = "1" | ||
8 | SYSLINUX_LABELS = "boot" | ||
9 | LABELS_append = " ${SYSLINUX_LABELS} " | ||
10 | |||
11 | inherit image_types boot-directdisk | ||
12 | |||
13 | create_hdd_image () { | ||
14 | ln -s ${IMAGE_NAME}.hdddirect ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hdd | ||
15 | } | ||
16 | |||
17 | python do_hddimg() { | ||
18 | bb.build.exec_func('create_hdd_image', d) | ||
19 | } | ||
20 | |||
21 | addtask hddimg after do_bootdirectdisk before do_build | ||
22 | do_hddimg[nostamp] = "1" | ||