devtools: test build of zlib PMD
[dpdk.git] / devtools / test-build.sh
index 2990978..0511ae6 100755 (executable)
@@ -9,7 +9,9 @@ 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
 # - DPDK_DEP_MLX (y/[n])
 # - DPDK_DEP_NUMA ([y]/n)
@@ -95,7 +97,9 @@ 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
        unset DPDK_DEP_MLX
        unset DPDK_DEP_NUMA
@@ -154,6 +158,8 @@ config () # <directory> <target> <options>
                test "$DPDK_DEP_ZLIB" != y || \
                sed -ri          's,(BNX2X_PMD=)n,\1y,' $1/.config
                test "$DPDK_DEP_ZLIB" != y || \
+               sed -ri           's,(PMD_ZLIB=)n,\1y,' $1/.config
+               test "$DPDK_DEP_ZLIB" != y || \
                sed -ri   's,(COMPRESSDEV_TEST=)n,\1y,' $1/.config
                test "$DPDK_DEP_PCAP" != y || \
                sed -ri               's,(PCAP=)n,\1y,' $1/.config
@@ -179,11 +185,15 @@ config () # <directory> <target> <options>
                sed -ri     's,(BBDEV_TURBO_SW=)n,\1y,' $1/.config
                sed -ri           's,(SCHED_.*=)n,\1y,' $1/.config
                test -z "$LIBMUSDK_PATH" || \
-               sed -ri    's,(PMD_MVSAM_CRYPTO=)n,\1y,' $1/.config
+               sed -ri   's,(PMD_MVSAM_CRYPTO=)n,\1y,' $1/.config
                test -z "$LIBMUSDK_PATH" || \
                sed -ri          's,(MVPP2_PMD=)n,\1y,' $1/.config
                test -z "$LIBMUSDK_PATH" || \
-               sed -ri          's,(MVNETA_PMD=)n,\1y,' $1/.config
+               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
 
                # Explicit enabler/disabler (uppercase)