diff options
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" | ||