diff options
| author | Tom Rini <trini@konsulko.com> | 2017-07-21 18:06:34 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-25 15:59:13 +0100 |
| commit | e18cec750b51267d9c130b395c7a53585f4ae7ac (patch) | |
| tree | 755fadffb385f6d088efc7cc9fce40d42d5585b4 /meta/classes/image.bbclass | |
| parent | 6fbbdc626a612826378ca979dab4455aed6f8332 (diff) | |
| download | poky-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.bbclass | 9 |
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} | |||
| 144 | IMAGE_TYPE_container = '${@bb.utils.contains("IMAGE_FSTYPES", "container", "image-container", "", d)}' | 144 | IMAGE_TYPE_container = '${@bb.utils.contains("IMAGE_FSTYPES", "container", "image-container", "", d)}' |
| 145 | inherit ${IMAGE_TYPE_container} | 145 | inherit ${IMAGE_TYPE_container} |
| 146 | 146 | ||
| 147 | def build_uboot(d): | ||
| 148 | if 'u-boot' in (d.getVar('IMAGE_FSTYPES') or ''): | ||
| 149 | return "image_types_uboot" | ||
| 150 | else: | ||
| 151 | return "" | ||
| 152 | |||
| 153 | IMAGE_TYPE_uboot = "${@build_uboot(d)}" | ||
| 154 | inherit ${IMAGE_TYPE_uboot} | ||
| 155 | |||
| 156 | IMAGE_TYPE_wic = "image_types_wic" | 147 | IMAGE_TYPE_wic = "image_types_wic" |
| 157 | inherit ${IMAGE_TYPE_wic} | 148 | inherit ${IMAGE_TYPE_wic} |
| 158 | 149 | ||
