From c7e8b41ad48ee6174dfb8b7e8bdc238639ceaccc Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Mon, 21 Mar 2016 23:14:58 +0100 Subject: [PATCH] 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 --- scripts/test-build.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.20.1