[igt-dev] [PATCH i-g-t 1/2] Alter arm64 cross compile pkg-config library selections

Casey Bowman casey.g.bowman at intel.com
Fri Oct 15 20:32:37 UTC 2021


Specifies to use 'aarch64-linux-gnu-pkg-config' as the
pkg-config binary to use, as the normal /usr/bin/pkg-config
binary will be used on a host system. If we use this binary
we will observe that the shared object libraries will be
pulled from the x86_64 libraries instead of the aarch64 ones.

We also specify nouveau here as our libdrm driver library
because there is no support for libdrm-intel on arm64 yet.

Signed-off-by: Casey Bowman <casey.g.bowman at intel.com>
---
 meson-cross-arm64.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meson-cross-arm64.txt b/meson-cross-arm64.txt
index d96f180e2..6f69e3f69 100644
--- a/meson-cross-arm64.txt
+++ b/meson-cross-arm64.txt
@@ -2,7 +2,7 @@
 c = '/usr/bin/aarch64-linux-gnu-gcc'
 ar = '/usr/bin/aarch64-linux-gnu-gcc-ar'
 strip = '/usr/bin/aarch64-linux-gnu-strip'
-pkgconfig = 'pkg-config'
+pkgconfig = 'aarch64-linux-gnu-pkg-config'
 exe_wrapper = 'qemu-aarch64'
 
 [host_machine]
@@ -10,3 +10,6 @@ system = 'linux'
 cpu_family = 'aarch64'
 cpu = 'aarch64'
 endian = 'little'
+
+[project options]
+libdrm_drivers = 'nouveau'
-- 
2.25.1



More information about the igt-dev mailing list