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-07-25 15:59:13 +0100
commite18cec750b51267d9c130b395c7a53585f4ae7ac (patch)
tree755fadffb385f6d088efc7cc9fce40d42d5585b4 /meta/classes/image.bbclass
parent6fbbdc626a612826378ca979dab4455aed6f8332 (diff)
downloadpoky-e18cec750b51267d9c130b395c7a53585f4ae7ac.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: 65f27122950a35a67ce39ae4cfe93d0dca6b0dab) 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>
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 bd6a5b7b81..b095bca7c1 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -144,15 +144,6 @@ inherit ${IMAGE_TYPE_vm}
144IMAGE_TYPE_container = '${@bb.utils.contains("IMAGE_FSTYPES", "container", "image-container", "", d)}' 144IMAGE_TYPE_container = '${@bb.utils.contains("IMAGE_FSTYPES", "container", "image-container", "", d)}'
145inherit ${IMAGE_TYPE_container} 145inherit ${IMAGE_TYPE_container}
146 146
147def build_uboot(d):
148 if 'u-boot' in (d.getVar('IMAGE_FSTYPES') or ''):
149 return "image_types_uboot"
150 else:
151 return ""
152
153IMAGE_TYPE_uboot = "${@build_uboot(d)}"
154inherit ${IMAGE_TYPE_uboot}
155
156IMAGE_TYPE_wic = "image_types_wic" 147IMAGE_TYPE_wic = "image_types_wic"
157inherit ${IMAGE_TYPE_wic} 148inherit ${IMAGE_TYPE_wic}
158 149