]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
systemd: bpf-framework: 'propagate' the '--sysroot=' for crosscompilation
authorJohannes Schneider <johannes.schneider@leica-geosystems.com>
Thu, 20 Jun 2024 11:51:26 +0000 (13:51 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Jun 2024 10:49:54 +0000 (11:49 +0100)
commit3a4d5b06f8e4ebf7b4738a99fe6b352bb03a64ae
tree5f3777628034a2952db2c6b57c6d2203228d96f2
parent6f90320bf3028a67d1fd444dfaa62f3888066ea4
systemd: bpf-framework: 'propagate' the '--sysroot=' for crosscompilation

The eBPFs are pre-compiled during the systemd-build with a different
compiler than the cross-compiler used to build systemd itself.

This is either a 'clang-native' or a gcc (bpf-unknown-none) which do
not see the BUILD_CFLAGS, that point to the correct include search
patch. To address this have systemd's meson.build "propagate" the
--system from the C_FLAGS into the BPF compiler call.

Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-core/systemd/systemd/0023-meson-bpf-propagate-sysroot-for-cross-compilation.patch [new file with mode: 0644]
meta/recipes-core/systemd/systemd_255.6.bb