summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Schneider <johannes.schneider@leica-geosystems.com>2024-06-20 13:51:27 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-06-25 11:50:58 +0100
commit1080de9926c8f6c1905225e5c360584323db6f0d (patch)
treec3fcf989ab32264591b1ade7ba0a93fe197f00c8
parenta9138c1f51b11efc82bc593d754585f5c440d017 (diff)
downloadpoky-1080de9926c8f6c1905225e5c360584323db6f0d.tar.gz
systemd: bpf-framework: pass 'recipe-sysroot' to BPF compiler
Pass the "recipe-sysroot" path via the CFLAGS=--sysroot= to the compiler used by systemd to build the BPF, so that it can find the needed system includes. (From OE-Core rev: 25560c19ac7629615adb2b1a71b05d36b0d157d5) Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/systemd/systemd_255.6.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_255.6.bb b/meta/recipes-core/systemd/systemd_255.6.bb
index d2c5e09697..0376412f61 100644
--- a/meta/recipes-core/systemd/systemd_255.6.bb
+++ b/meta/recipes-core/systemd/systemd_255.6.bb
@@ -234,6 +234,10 @@ PACKAGECONFIG[zstd] = "-Dzstd=true,-Dzstd=false,zstd"
234 234
235RESOLV_CONF ??= "" 235RESOLV_CONF ??= ""
236 236
237# bpf-framework: pass the recipe-sysroot to the compiler used to build
238# the eBPFs, so that it can find needed system includes in there.
239CFLAGS:append = " --sysroot=${STAGING_DIR_TARGET}"
240
237# Helper variables to clarify locations. This mirrors the logic in systemd's 241# Helper variables to clarify locations. This mirrors the logic in systemd's
238# build system. 242# build system.
239rootprefix ?= "${root_prefix}" 243rootprefix ?= "${root_prefix}"