summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-07-21 18:06:34 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-05 22:39:48 +0000
commitd096d7e850f12d7440d285b4eaa6ed1c61558ef5 (patch)
treec176a852f5af35e7c65f3e0b67ae6b36dbba30fb /meta/classes/image.bbclass
parentebb625a140ef67d65dca1b262304377814eb8ed4 (diff)
downloadpoky-d096d7e850f12d7440d285b4eaa6ed1c61558ef5.tar.gz
image_types.bbclass: Make u-boot signed images more versatile
With the introduction of chaining compression/conversion support we can convert the old image_types_uboot.bbclass code that did a hand-chaining of a set of ${filesystem}.${compression} into generic and arbitrary support to sign whatever the user wants to sign for their image. This, for the record, does remove setting a valid compression type in the record in favour of just saying none. This is not a generally useful feature in U-Boot and I believe being versatile in terms of being able to pass in arbitrary compressions is more important. (From OE-Core rev: 979ff606d8c4c6f66c6dc533a92212f18708089e) Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass9
1 files changed, 0 insertions, 9 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 9c9f14a99a..18564204af 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -145,15 +145,6 @@ inherit ${IMAGE_TYPE_vm}
145IMAGE_TYPE_container = '${@bb.utils.contains("IMAGE_FSTYPES", "container", "image-container", "", d)}' 145IMAGE_TYPE_container = '${@bb.utils.contains("IMAGE_FSTYPES", "container", "image-container", "", d)}'
146inherit ${IMAGE_TYPE_container} 146inherit ${IMAGE_TYPE_container}
147 147
148def build_uboot(d):
149 if 'u-boot' in (d.getVar('IMAGE_FSTYPES') or ''):
150 return "image_types_uboot"
151 else:
152 return ""
153
154IMAGE_TYPE_uboot = "${@build_uboot(d)}"
155inherit ${IMAGE_TYPE_uboot}
156
157IMAGE_TYPE_wic = "image_types_wic" 148IMAGE_TYPE_wic = "image_types_wic"
158inherit ${IMAGE_TYPE_wic} 149inherit ${IMAGE_TYPE_wic}
159 150