Skip to contentSkip to conversation

icecc: allow icecc in kernel-arch recipes

PATCH In review Nick Owens 2 participants 2 messages Dec 19, 2024 – Jan 8, 2025

lore
Share & tools
lore

Nick Owens

author
#0 lore raw

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
index 8a48f2ad63..adb51baf99 100644
@@ -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
#1 lore raw
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 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 +0 -0
index 8a48f2ad63..adb51baf99 100644
@@ -181,7 +181,7 @@ def icecc_is_allarch(bb, d):
Quoted 8 lines


 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 \

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