On Mon, Nov 6, 2023 at 9:22 AM Rasmus Villemoes <rasmus.villem...@prevas.dk> wrote: > > From: Rasmus Villemoes <rasmus.villem...@prevas.dk> > > Building for an arm64 target, e.g. qemuarm64 or a raspberrypi3, > without "python" in PACKAGECONFIG, results in > > | Makefile.config:892: *** ERROR: No python interpreter needed for jevents > generation. Install python or build with NO_JEVENTS=1.. Stop. > > Signed-off-by: Rasmus Villemoes <rasmus.villem...@prevas.dk> > --- > meta/recipes-kernel/perf/perf.bb | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/meta/recipes-kernel/perf/perf.bb > b/meta/recipes-kernel/perf/perf.bb > index a392166e73..37b53ee7df 100644 > --- a/meta/recipes-kernel/perf/perf.bb > +++ b/meta/recipes-kernel/perf/perf.bb > @@ -28,6 +28,7 @@ PACKAGECONFIG[audit] = ",NO_LIBAUDIT=1,audit" > PACKAGECONFIG[manpages] = ",,xmlto-native asciidoc-native" > PACKAGECONFIG[cap] = ",,libcap" > PACKAGECONFIG[libtraceevent] = ",NO_LIBTRACEEVENT=1,libtraceevent" > +PACKAGECONFIG[jevents] = ",NO_JEVENTS=1,python3-native"
Since we already have a python packageconfig and it takes care of the dependencies that we need, we shouldn't be repeating the python3-native in this one. We'll end up having to maintain that dependency in two locations. i.e. we don't have python3-native as a dependency of our main python packageconfig .. is that an error (the python packageconfig) or should this be depending on python3 python3-setuptools-native, just like the python one ? Since there's no way to make packageconfig 'a' depend on packageconfig 'b' that I know of (RP will correct me if I'm missing or forgetting something here), we could always add a test on the final PACKAGECONFIG and error/warn if jevents was enabled and python wasn't. It is always a bit annoying that perf turns these on, and we have to explicitly opt-out .. but that is out of our control :) Bruce > # Arm CoreSight > PACKAGECONFIG[coresight] = "CORESIGHT=1,,opencsd" > PACKAGECONFIG[pfm4] = ",NO_LIBPFM4=1,libpfm4" > -- > 2.40.1.1.g1c60b9335d > -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#190221): https://lists.openembedded.org/g/openembedded-core/message/190221 Mute This Topic: https://lists.openembedded.org/mt/102420698/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-