buildtools: remove make-specific from symbols check
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 8 Oct 2019 14:36:26 +0000 (15:36 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 9 Nov 2019 20:09:04 +0000 (21:09 +0100)
The check-experimental-syms.sh script was finding the map-list-symbol.sh
script using $RTE_SDK, which is the variable set when using the "make"
build system. To make this script more independent, we just use the current
path of the script as the location to find its companion script.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
buildtools/check-experimental-syms.sh

index 47a06fc..145dd70 100755 (executable)
@@ -5,7 +5,7 @@
 MAPFILE=$1
 OBJFILE=$2
 
-LIST_SYMBOL=$RTE_SDK/buildtools/map-list-symbol.sh
+LIST_SYMBOL=$(dirname $(readlink -f $0))/map-list-symbol.sh
 
 # added check for "make -C test/" usage
 if [ ! -e $MAPFILE ] || [ ! -f $OBJFILE ]