diff options
author | Valentin Popa <valentin.popa@intel.com> | 2013-09-27 15:34:24 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-14 16:55:27 +0100 |
commit | f11cb8dd2899ce7c95ed1a829d5f0ec40d7137c2 (patch) | |
tree | f594cf4370033dab1c9207e1c39046716ad3f564 /meta/classes/image.bbclass | |
parent | 6a6735cb98d529c8c5376aedb5c951339f54fe96 (diff) | |
download | poky-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.bbclass | 12 |
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 | |||
90 | do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot" | 90 | do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot" |
91 | do_rootfs[recrdeptask] += "do_packagedata" | 91 | do_rootfs[recrdeptask] += "do_packagedata" |
92 | 92 | ||
93 | IMAGE_TYPE_live = '${@base_contains("IMAGE_FSTYPES", "live", "live", "empty", d)}' | 93 | def 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 | |||
102 | IMAGE_TYPE_live = "${@build_live(d)}" | ||
103 | |||
94 | inherit image-${IMAGE_TYPE_live} | 104 | inherit image-${IMAGE_TYPE_live} |
95 | IMAGE_TYPE_vmdk = '${@base_contains("IMAGE_FSTYPES", "vmdk", "vmdk", "empty", d)}' | 105 | IMAGE_TYPE_vmdk = '${@base_contains("IMAGE_FSTYPES", "vmdk", "vmdk", "empty", d)}' |
96 | inherit image-${IMAGE_TYPE_vmdk} | 106 | inherit image-${IMAGE_TYPE_vmdk} |