summaryrefslogtreecommitdiff
path: root/meta/packages/images
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-05-24 12:05:01 +0100
committerJoshua Lock <josh@linux.intel.com>2010-05-24 12:05:25 +0100
commit9f23e3e49119c4529aee1f4879a59c2482b9292c (patch)
treec3b29ef7889ef91d0af14bee564bf944c9f5d2b4 /meta/packages/images
parent6bf1f8c76e0d69ed64c5f0bb9e9b24215c32dfbe (diff)
downloadopenembedded-core-9f23e3e49119c4529aee1f4879a59c2482b9292c.tar.gz
openembedded-core-9f23e3e49119c4529aee1f4879a59c2482b9292c.tar.bz2
openembedded-core-9f23e3e49119c4529aee1f4879a59c2482b9292c.tar.xz
openembedded-core-9f23e3e49119c4529aee1f4879a59c2482b9292c.zip
Update directdisk images to use common inc files
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/packages/images')
-rw-r--r--meta/packages/images/poky-image-directdisk.inc8
-rw-r--r--meta/packages/images/poky-image-minimal-directdisk.bb11
-rw-r--r--meta/packages/images/poky-image-sato-directdisk.bb11
3 files changed, 12 insertions, 18 deletions
diff --git a/meta/packages/images/poky-image-directdisk.inc b/meta/packages/images/poky-image-directdisk.inc
new file mode 100644
index 000000000..64144b9ab
--- /dev/null
+++ b/meta/packages/images/poky-image-directdisk.inc
@@ -0,0 +1,8 @@
+inherit boot-directdisk
+
+do_bootdirectdisk_prepend () {
+ import bb
+ fstypes = bb.data.getVar('IMAGE_FSTYPES', d, True)
+ if 'ext3' not in fstypes:
+ bb.msg.fatal(bb.msg.domain.Build, "ext3 not in IMAGE_FSTYPES")
+} \ No newline at end of file
diff --git a/meta/packages/images/poky-image-minimal-directdisk.bb b/meta/packages/images/poky-image-minimal-directdisk.bb
index 0623a6b18..e06846460 100644
--- a/meta/packages/images/poky-image-minimal-directdisk.bb
+++ b/meta/packages/images/poky-image-minimal-directdisk.bb
@@ -1,13 +1,6 @@
-DESCRIPTION = "Minimal Bootable Direct Disk Image"
-
-inherit boot-directdisk
+require poky-image-directdisk.inc
-do_bootdirectdisk_prepend () {
- import bb
- fstypes = bb.data.getVar('IMAGE_FSTYPES', d, True)
- if 'ext3' not in fstypes:
- bb.msg.fatal(bb.msg.domain.Build, "ext3 not in IMAGE_FSTYPES")
-}
+DESCRIPTION = "Minimal Bootable Direct Disk Image"
ROOTFS = "${DEPLOY_DIR_IMAGE}/poky-image-minimal-${MACHINE}.ext3"
diff --git a/meta/packages/images/poky-image-sato-directdisk.bb b/meta/packages/images/poky-image-sato-directdisk.bb
index f24d938ad..eac3b589b 100644
--- a/meta/packages/images/poky-image-sato-directdisk.bb
+++ b/meta/packages/images/poky-image-sato-directdisk.bb
@@ -1,13 +1,6 @@
-DESCRIPTION = "Sato Direct Disk Image"
-
-inherit boot-directdisk
+require poky-image-directdisk.inc
-do_bootdirectdisk_prepend () {
- import bb
- fstypes = bb.data.getVar('IMAGE_FSTYPES', d, True)
- if 'ext3' not in fstypes:
- bb.msg.fatal(bb.msg.domain.Build, "ext3 not in IMAGE_FSTYPES")
-}
+DESCRIPTION = "Sato Direct Disk Image"
ROOTFS = "${DEPLOY_DIR_IMAGE}/poky-image-sato-${MACHINE}.ext3"