From: Thomas Monjalon Date: Mon, 21 Mar 2016 22:14:58 +0000 (+0100) Subject: scripts: hook build test config X-Git-Tag: spdx-start~7035 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c7e8b41ad48ee6174dfb8b7e8bdc238639ceaccc;p=dpdk.git scripts: hook build test config Insert a hook at the end of the config procedure, after having adapted the configuration to the environment variables and the options passed to the script. It allows to better tune the automatic configuration of the build tests in a function located in the devel config file. Signed-off-by: Thomas Monjalon --- diff --git a/scripts/test-build.sh b/scripts/test-build.sh index bd4b501962..808e8e4f85 100755 --- a/scripts/test-build.sh +++ b/scripts/test-build.sh @@ -160,6 +160,7 @@ config () # sed -ri 's,(KNI_VHOST.*=)n,\1y,' $1/.config sed -ri 's,(SCHED_.*=)n,\1y,' $1/.config sed -ri 's,(TEST_PMD_RECORD_.*=)n,\1y,' $1/.config + build_config_hook $1 $2 $3 # Explicit enabler/disabler (uppercase) for option in $(echo $3 | sed 's,[~+], &,g') ; do @@ -173,6 +174,12 @@ config () # fi } +# default empty hook to override in devel config +build_config_hook () # +{ + : +} + for conf in $configs ; do target=$(echo $conf | sed 's,[~+].*,,') # reload config with DPDK_TARGET set