summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2019-02-12 23:10:39 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-02-24 23:24:02 +0100
commit814ad2a9bc0bbdbad9e4ca59728f9c0323edc513 (patch)
tree6ee6adeca3fce08baf1971fc1fbd49e018b6daac /devtools
parentfdb3798d6f870f79d5fa40b2c3425e8285dd4e44 (diff)
downloaddpdk-next-eventdev-814ad2a9bc0bbdbad9e4ca59728f9c0323edc513.zip
dpdk-next-eventdev-814ad2a9bc0bbdbad9e4ca59728f9c0323edc513.tar.gz
dpdk-next-eventdev-814ad2a9bc0bbdbad9e4ca59728f9c0323edc513.tar.xz
devtools: add libelf dependency to build test
The option CONFIG_RTE_LIBRTE_BPF_ELF was never enabled with test-build.sh. It is fixed with the environment variable DPDK_DEP_ELF. Fixes: 5dba93ae5f2d ("bpf: add ability to load eBPF program from ELF object file") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/test-build.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/devtools/test-build.sh b/devtools/test-build.sh
index 42f4ad0..ace52a7 100755
--- a/devtools/test-build.sh
+++ b/devtools/test-build.sh
@@ -9,6 +9,7 @@ default_path=$PATH
# - DPDK_BUILD_TEST_CONFIGS (defconfig1+option1+option2 defconfig2)
# - DPDK_DEP_ARCHIVE
# - DPDK_DEP_CFLAGS
+# - DPDK_DEP_ELF (y/[n])
# - DPDK_DEP_ISAL (y/[n])
# - DPDK_DEP_JSON (y/[n])
# - DPDK_DEP_LDFLAGS
@@ -96,6 +97,7 @@ reset_env ()
unset CROSS
unset DPDK_DEP_ARCHIVE
unset DPDK_DEP_CFLAGS
+ unset DPDK_DEP_ELF
unset DPDK_DEP_ISAL
unset DPDK_DEP_JSON
unset DPDK_DEP_LDFLAGS
@@ -186,6 +188,8 @@ config () # <directory> <target> <options>
sed -ri 's,(MVPP2_PMD=)n,\1y,' $1/.config
test -z "$LIBMUSDK_PATH" || \
sed -ri 's,(MVNETA_PMD=)n,\1y,' $1/.config
+ test "$DPDK_DEP_ELF" != y || \
+ sed -ri 's,(BPF_ELF=)n,\1y,' $1/.config
test -z "$DPDK_DEP_JSON" || \
sed -ri 's,(TELEMETRY=)n,\1y,' $1/.config
build_config_hook $1 $2 $3