]> git.droids-corp.org - dpdk.git/blobdiff - devtools/build-tags.sh
devtools: allow test build outside source directory
[dpdk.git] / devtools / build-tags.sh
index 753e4c23c50e3a9959a61a7c51ab0f8037cfba9e..d395da47e608e4633092e6cb954b826180f0573c 100755 (executable)
@@ -129,14 +129,7 @@ ppc_64_sources()
 
 check_valid_target()
 {
-       cfgfound=false
-       allconfigs=$(make showconfigs)
-       for cfg in $allconfigs ; do
-               if [ "$cfg" = "$1" ] ; then
-                       cfgfound=true
-               fi
-       done
-       if ! $cfgfound ; then
+       if [ ! -f "config/defconfig_$1" ] ; then
                echo "Invalid config: $1"
                print_usage
                exit 0