]> code.ossystems Code Review - openembedded-core.git/commit
kernel.bbclass: fix KERNEL_IMAGETYPE(S) for Image.gz
authorNicolas Dechesne <nicolas.dechesne@linaro.org>
Wed, 13 Sep 2017 19:38:20 +0000 (21:38 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Oct 2017 16:26:29 +0000 (17:26 +0100)
commit241cc3083f873743ac3551237acc62e55abbbf05
treec00c7a9221036f35c4930d0c9aed1163c299972a
parent8878d599cbc48b700f393d94657fe39db06fd533
kernel.bbclass: fix KERNEL_IMAGETYPE(S) for Image.gz

KERNEL_IMAGETYPES lists all the kernel images that we want to build. in
cb17b6c2a7 (kernel.bbclass: support kernel image type of vmlinux.gz), some logic
was added to support vmlinux.gz which is not a target built by kernel
makefiles (only vmlinux). It is clear that the goal of this logic is only to
support vmlinux.gz and not others compressed format (such as Image.gz) which are
valid target for kernel makefiles.

For Image.gz we should rely on the kernel makefiles and not do the compression
in kernel class.

This patch updates the logic used to filter out non supported kernel target from
KERNEL_IMAGETYPES, and make vmlinux.gz a 'special case', instead of *.gz. If
more special cases are needed in the future, we could add them in a similar way.

This patch should be a no-op for anyone using vmlinux or vmlinux.gz, and on top
of that it is fixing the build for Image.gz which was not working until now.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cfc0c897656fe67e81a6a5dcd936dff785529f41)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/kernel.bbclass