mirror of
https://git.yoctoproject.org/poky
synced 2026-05-07 16:59:22 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
a9138c1f51
commit
1080de9926
@@ -234,6 +234,10 @@ PACKAGECONFIG[zstd] = "-Dzstd=true,-Dzstd=false,zstd"
|
||||
|
||||
RESOLV_CONF ??= ""
|
||||
|
||||
# bpf-framework: pass the recipe-sysroot to the compiler used to build
|
||||
# the eBPFs, so that it can find needed system includes in there.
|
||||
CFLAGS:append = " --sysroot=${STAGING_DIR_TARGET}"
|
||||
|
||||
# Helper variables to clarify locations. This mirrors the logic in systemd's
|
||||
# build system.
|
||||
rootprefix ?= "${root_prefix}"
|
||||
|
||||
Reference in New Issue
Block a user