summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorValentin Popa <valentin.popa@intel.com>2013-09-27 15:34:24 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-14 16:55:27 +0100
commitf11cb8dd2899ce7c95ed1a829d5f0ec40d7137c2 (patch)
treef594cf4370033dab1c9207e1c39046716ad3f564 /meta/classes/image.bbclass
parent6a6735cb98d529c8c5376aedb5c951339f54fe96 (diff)
downloadpoky-f11cb8dd2899ce7c95ed1a829d5f0ec40d7137c2.tar.gz
image types: split live into iso and hddimg
Changes to split live into iso and hddimg without adding a new image type class. This patch has only a visible effect on HOB and solves part 2 of #3197 [YOCTO #3197] (From OE-Core rev: f05ae5f57d9d1bd839fae0e3f353d4e0e303a183) Signed-off-by: Valentin Popa <valentin.popa@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass12
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 7650594f8c..422a8261bd 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -90,7 +90,17 @@ do_rootfs[depends] += "makedevs-native:do_populate_sysroot virtual/fakeroot-nati
90do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot" 90do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot"
91do_rootfs[recrdeptask] += "do_packagedata" 91do_rootfs[recrdeptask] += "do_packagedata"
92 92
93IMAGE_TYPE_live = '${@base_contains("IMAGE_FSTYPES", "live", "live", "empty", d)}' 93def build_live(d):
94 if base_contains("IMAGE_FSTYPES", "live", "live", "0", d) == "0": # live is not set but hob might set iso or hddimg
95 d.setVar('NOISO', base_contains('IMAGE_FSTYPES', "iso", "0", "1", d))
96 d.setVar('NOHDD', base_contains('IMAGE_FSTYPES', "hddimg", "0", "1", d))
97 if d.getVar('NOISO', True) == "0" or d.getVar('NOHDD', True) == "0":
98 return "live"
99 return "empty"
100 return "live"
101
102IMAGE_TYPE_live = "${@build_live(d)}"
103
94inherit image-${IMAGE_TYPE_live} 104inherit image-${IMAGE_TYPE_live}
95IMAGE_TYPE_vmdk = '${@base_contains("IMAGE_FSTYPES", "vmdk", "vmdk", "empty", d)}' 105IMAGE_TYPE_vmdk = '${@base_contains("IMAGE_FSTYPES", "vmdk", "vmdk", "empty", d)}'
96inherit image-${IMAGE_TYPE_vmdk} 106inherit image-${IMAGE_TYPE_vmdk}