summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-04-01 17:08:33 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-04-01 19:03:35 +0200
commitd6cefc11e05f0ddd87eef79f47d45fd3d01bb4bc (patch)
treec69d39c7e5fa2d06aa578ecad73275c7327d3538
parentb77c1d1c0ab7712827ad9b2bf4da796397546911 (diff)
downloaddpdk-next-eventdev-d6cefc11e05f0ddd87eef79f47d45fd3d01bb4bc.zip
dpdk-next-eventdev-d6cefc11e05f0ddd87eef79f47d45fd3d01bb4bc.tar.gz
dpdk-next-eventdev-d6cefc11e05f0ddd87eef79f47d45fd3d01bb4bc.tar.xz
devtools: allow test build outside source directory
The test-meson-builds.sh script correctly detects the source directory and builds the native builds successfully in a directory outside of the source tree. However, the paths to the cross-files are not prefixed with the source directory path, so the cross-builds all fail. Fix this by prepending the source directory path appropriately. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
-rwxr-xr-xdevtools/test-meson-builds.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh
index e3f19a0..b3b5cfb 100755
--- a/devtools/test-meson-builds.sh
+++ b/devtools/test-meson-builds.sh
@@ -69,9 +69,9 @@ if command -v $c >/dev/null 2>&1 ; then
# compile the general v8a also for clang to increase coverage
export CC="ccache clang"
build build-arm64-host-clang $use_shared \
- --cross-file config/arm/arm64_armv8_linux_gcc
+ --cross-file $srcdir/config/arm/arm64_armv8_linux_gcc
- for f in config/arm/arm*gcc ; do
+ for f in $srcdir/config/arm/arm*gcc ; do
export CC="ccache gcc"
build build-$(basename $f | tr '_' '-' | cut -d'-' -f-2) \
$use_shared --cross-file $f