| Message ID | 20241219180130.396868-1-nick.owens@eero.com |
|---|---|
| State | New |
| Headers | show |
| Series | icecc: allow icecc in kernel-arch recipes | expand |
On Thu, 2024-12-19 at 10:01 -0800, Nick Owens via lists.openembedded.org wrote: > 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. > > Signed-off-by: Nick Owens <nick.owens@eero.com> > --- > meta/classes/icecc.bbclass | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass > index 8a48f2ad63..adb51baf99 100644 > --- a/meta/classes/icecc.bbclass > +++ b/meta/classes/icecc.bbclass > @@ -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 \ 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
diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index 8a48f2ad63..adb51baf99 100644 --- a/meta/classes/icecc.bbclass +++ b/meta/classes/icecc.bbclass @@ -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 \
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. Signed-off-by: Nick Owens <nick.owens@eero.com> --- meta/classes/icecc.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)