Skip to contentSkip to conversation

systemtap: add sysroot Python paths to configure flags

PATCH New ssambu 1 participant 1 message Jun 18, 2025

lore
Share & tools
lore

ssambu

author
#0 lore raw

PATCH 1/1 systemtap: add sysroot Python paths to configure flags

From: Soumya Sambu <[email protected]>

Explicitly set Python-related flags to use sysroot-staged headers and tools.

---
 meta/recipes-kernel/systemtap/systemtap_git.bb | 7 +++++++
 1 file changed, 7 insertions(+)
meta/recipes-kernel/systemtap/systemtap_git.bb +7 -0
index c84fc27001..40ccf1d523 100644
@@ -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/* \
Signature · 1 line
2.40.0