icecc: allow icecc in kernel-arch recipes
PATCH 1/1 icecc: allow icecc in kernel-arch recipes
to take advantage of icecc in out of tree modules which may not inherit kernel, but do inherit kernel-arch via module -> module-base, change the inherit check for icecc_is_kernel to check for kernel-arch class instead of kernel clas.
--- meta/classes/icecc.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/icecc.bbclass +1 -1
@@ -181,7 +181,7 @@ def icecc_is_allarch(bb, d): def icecc_is_kernel(bb, d): return \ - bb.data.inherits_class("kernel", d); + bb.data.inherits_class("kernel-arch", d); def icecc_is_native(bb, d): return \
Signature · 1 line
2.34.1
Quoted 18 lines · Nick Owens via lists.openembedded.org
to take advantage of icecc in out of tree modules which may not inherit
kernel, but do inherit kernel-arch via module -> module-base, change the
inherit check foricecc_is_kernelto check for kernel-arch class instead
of kernel clas.Signed-off-by Nick Owens <[email protected]>---
meta/classes/icecc.bbclass | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)meta/classes/icecc.bbclass +0
-0@@ -181,7 +181,7 @@ def icecc_is_allarch(bb, d):
Quoted 8 lines
deficecc_is_kernel(bb, d):
return \
-bb.data.inherits_class("kernel", d); +bb.data.inherits_class("kernel-arch", d);
deficecc_is_native(bb, d):
return \
Unfortunately there are places kernel-arch is used which are not the kernel. In particular, linux-libc-headers, u-boot, barebox, perf and probably more in other layers.
Cheers,
Richard