aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2024-01-23 14:04:10 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2024-01-25 13:20:58 +1100
commitdcef5f834ea34bcb9f8d0e86db1268fde52ead77 (patch)
treeb25495a5adef7fedf95094240a17fee17f8acad8 /tests
parent0b8026ff254f391bc577a571ef397dd1266f1bbd (diff)
downloaddtc-dcef5f834ea34bcb9f8d0e86db1268fde52ead77.zip
dtc-dcef5f834ea34bcb9f8d0e86db1268fde52ead77.tar.gz
dtc-dcef5f834ea34bcb9f8d0e86db1268fde52ead77.tar.bz2
tests: use correct pkg-config when cross compiling
By convention, the PKG_CONFIG environment variable is used to tell build systems which pkg-config executable should be used. This is often used when cross compiling, where it might be set to something like "aarch64-unknown-linux-gnu-pkg-config". Signed-off-by: Alyssa Ross <hi@alyssa.is> Message-ID: <20240123130409.181128-2-hi@alyssa.is> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run_tests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index bb2ec95..3225a12 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -32,7 +32,7 @@ if [ -n "$NO_YAML" ]; then
no_yaml=false
fi
else
- if pkg-config --atleast-version 0.2.3 yaml-0.1; then
+ if ${PKG_CONFIG:-pkg-config} --atleast-version 0.2.3 yaml-0.1; then
no_yaml=false
else
no_yaml=true