]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemtap: add sysroot Python paths to configure flags
authorSoumya Sambu <soumya.sambu@windriver.com>
Wed, 18 Jun 2025 13:16:24 +0000 (18:46 +0530)
committerSteve Sakoman <steve@sakoman.com>
Fri, 20 Jun 2025 15:24:40 +0000 (08:24 -0700)
Explicitly set Python-related flags to use sysroot-staged headers and tools.

Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-kernel/systemtap/systemtap_git.bb

index c84fc27001c5f8ee0ffff01220837fc06df538ac..40ccf1d52387114796440c77792cfc0e5e57aa02 100644 (file)
@@ -35,6 +35,13 @@ PACKAGECONFIG[python3-probes] = "--with-python3-probes,--without-python3-probes,
 inherit autotools gettext pkgconfig systemd
 inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3-probes', 'setuptools3-base', '', d)}
 
+EXTRA_OECONF += " \
+    PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION} \
+    PYTHON3_CONFIG=${STAGING_BINDIR_NATIVE}/python3-config \
+"
+
+CPPFLAGS:append = " -I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}"
+
 # exporter comes with python3-probes
 PACKAGES =+ "${PN}-exporter"
 FILES:${PN}-exporter = "${sysconfdir}/stap-exporter/* \