summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-03-13 15:09:58 +0000
committerThomas Monjalon <thomas@monjalon.net>2019-03-27 00:56:34 +0100
commitda68794de009eddceae8226a9c67b8931a0f7cdf (patch)
tree057ba6ddf16c5ea63b32d05e276ff342d1ac8828 /devtools
parentc5b72f6827538425c32a2b11742376d2a13bfa1b (diff)
downloaddpdk-next-eventdev-da68794de009eddceae8226a9c67b8931a0f7cdf.zip
dpdk-next-eventdev-da68794de009eddceae8226a9c67b8931a0f7cdf.tar.gz
dpdk-next-eventdev-da68794de009eddceae8226a9c67b8931a0f7cdf.tar.xz
devtools: fix config check when building tags
The check for a valid configuration in build-tags.sh relied on the output of "make showconfig" rather than checking directly for a config file of that name. This broke when as part of the rename of the linuxapp/bsdapp configs to just linux/freebsd, as we stopped advertising the old names even if they worked. Changing the code to just look for the config file by name fixes this issue while shortening the code too. Fixes: 218c4e68c1d9 ("mk: use linux and freebsd in config names") Fixes: aafaea3d3b70 ("devtools: add tags and cscope index generation") Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Tested-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/build-tags.sh9
1 files changed, 1 insertions, 8 deletions
diff --git a/devtools/build-tags.sh b/devtools/build-tags.sh
index 753e4c2..d395da4 100755
--- a/devtools/build-tags.sh
+++ b/devtools/build-tags.sh
@@ -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