devtools: fix config check when building tags
[dpdk.git] / devtools / build-tags.sh
index 753e4c2..d395da4 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