bpf: test with GCC BPF compiler on opensuse

This commit is contained in:
James Hilliard
2023-05-30 13:30:28 +09:00
committed by Yu Watanabe
parent e4ab2db9df
commit e4086f7dc9
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -1135,6 +1135,7 @@ else
endif
elif bpf_compiler == 'gcc'
bpf_gcc = find_program('bpf-gcc',
'bpf-none-gcc',
required : true,
version : '>= 13.1.0')
bpf_gcc_found = bpf_gcc.found()
+6
View File
@@ -176,6 +176,12 @@ if [ ! -f "$BUILDDIR"/build.ninja ]; then
)
fi
if grep -q '^ID="opensuse' /etc/os-release; then
CONFIGURE_OPTS+=(
-Dbpf-compiler=gcc
)
fi
( set -x; meson setup "$BUILDDIR" "${CONFIGURE_OPTS[@]}" )
fi
@@ -36,6 +36,7 @@ Packages=
BuildPackages=
audit-devel
bpftool
cross-bpf-gcc13
dbus-1-devel
docbook-xsl-stylesheets
fdupes