diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-12-05 06:54:40 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-08 10:31:30 +0000 |
commit | 1bf8d703f4c9f13a89a496e12a3b1675342127b9 (patch) | |
tree | 25f243b8626043345ebec593aa895b1e99a94711 /meta/classes | |
parent | 4ee082f60c4a3736ecd125aacd7fa490b5041966 (diff) | |
download | poky-1bf8d703f4c9f13a89a496e12a3b1675342127b9.tar.gz |
image.bbclass: inherit image_types_uboot when needed
Fixed:
MACHINE = "qemuarm"
IMAGE_FSTYPES += "ext3.bz2.u-boot"
[snip]
No IMAGE_CMD defined for IMAGE_FSTYPES entry 'ext3.bz2.u-boot' - possibly invalid type name or missing support class
[snip]
This is because image_types_uboot is not inherited, inherit it when
needed will fix the problem.
(From OE-Core rev: 742a22ab7fd333e99d8701220d5a1db28347b1af)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image.bbclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 6111f6d266..b10272a415 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -144,6 +144,15 @@ inherit ${IMAGE_TYPE_live} | |||
144 | IMAGE_TYPE_vm = '${@bb.utils.contains_any("IMAGE_FSTYPES", ["vmdk", "vdi", "qcow2", "hdddirect"], "image-vm", "", d)}' | 144 | IMAGE_TYPE_vm = '${@bb.utils.contains_any("IMAGE_FSTYPES", ["vmdk", "vdi", "qcow2", "hdddirect"], "image-vm", "", d)}' |
145 | inherit ${IMAGE_TYPE_vm} | 145 | inherit ${IMAGE_TYPE_vm} |
146 | 146 | ||
147 | def build_uboot(d): | ||
148 | if 'u-boot' in (d.getVar('IMAGE_FSTYPES', True) or ''): | ||
149 | return "image_types_uboot" | ||
150 | else: | ||
151 | return "" | ||
152 | |||
153 | IMAGE_TYPE_uboot = "${@build_uboot(d)}" | ||
154 | inherit ${IMAGE_TYPE_uboot} | ||
155 | |||
147 | python () { | 156 | python () { |
148 | deps = " " + imagetypes_getdepends(d) | 157 | deps = " " + imagetypes_getdepends(d) |
149 | d.appendVarFlag('do_rootfs', 'depends', deps) | 158 | d.appendVarFlag('do_rootfs', 'depends', deps) |