As the DESTDIR variable use as ninja's destination directory when invoking
ninja install. If the DESTDIR is not an absolute path, ninja complains.

Fixes: 777014e56d07 ("devtools: add ABI checks")
Cc: sta...@dpdk.org

Signed-off-by: Phil Yang <phil.y...@arm.com>
---
v2:
Use readlink to ensure consistent coding style. (Juraj)

v1:
Initial version.

 devtools/test-meson-builds.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh
index a87de63..5236b9c 100755
--- a/devtools/test-meson-builds.sh
+++ b/devtools/test-meson-builds.sh
@@ -143,7 +143,8 @@ build () # <directory> <target compiler | cross file> 
<meson options>
        config $srcdir $builds_dir/$targetdir $cross --werror $*
        compile $builds_dir/$targetdir
        if [ -n "$DPDK_ABI_REF_VERSION" ]; then
-               abirefdir=${DPDK_ABI_REF_DIR:-reference}/$DPDK_ABI_REF_VERSION
+               abirefdir=$(readlink -f \
+                       ${DPDK_ABI_REF_DIR:-reference}/$DPDK_ABI_REF_VERSION)
                if [ ! -d $abirefdir/$targetdir ]; then
                        # clone current sources
                        if [ ! -d $abirefdir/src ]; then
-- 
2.7.4

Reply via email to