diff options
author | Enrico Jorns <ejo@pengutronix.de> | 2016-11-15 09:54:44 +0100 |
---|---|---|
committer | Enrico Jorns <ejo@pengutronix.de> | 2016-12-13 08:10:27 +0100 |
commit | 59df8047f466fa32d34e572806b65954d7f989e1 (patch) | |
tree | 811dec52e227c388a865785712bb346371b811a5 | |
parent | 23b0a2258ff2eb3e2a879b6ef45d14fa0b6e321a (diff) | |
download | meta-ptx-59df8047f466fa32d34e572806b65954d7f989e1.tar.gz meta-ptx-59df8047f466fa32d34e572806b65954d7f989e1.tar.xz |
classes/bundle: support 'file' varflag for kernel
The bundle class only supported selecting kernel images of type zImage
with a fixed naming convention. Allowing to provide a 'file' argument to
the resepective slot allows to also choose kernel images that have a
different type or do not follow the default naming:
RAUC_SLOT_kernel[file] = "zImage-mymachine.bin.uimage"
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
-rw-r--r-- | classes/bundle.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/bundle.bbclass b/classes/bundle.bbclass index 7b30bbb..773719d 100644 --- a/classes/bundle.bbclass +++ b/classes/bundle.bbclass @@ -117,7 +117,10 @@ python do_fetch() { imgname = imgsource elif imgtype == 'kernel': # TODO: Add image type support - imgsource = "%s-%s.bin" % ("zImage", machine) + if slotflags and 'file' in slotflags: + imgsource = "%s" % slotflags.get('file') + else: + imgsource = "%s-%s.bin" % ("zImage", machine) imgname = "%s.%s" % (imgsource, "img") elif imgtype == 'boot': # TODO: adapt if barebox produces determinable output images |