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

Petri Latvala petri.latvala at intel.com
Mon Oct 18 11:21:34 UTC 2021


On Fri, Oct 15, 2021 at 01:32:37PM -0700, Casey Bowman wrote:
> 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.

PKG_CONFIG_PATH can also be set accordingly, as is done in
.gitlab-ci.yml

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

Why the automatic option doesn't work here? There's no reason to
limit/enforce everyone to libdrm-nouveau, and only libdrm-nouveau.


-- 
Petri Latvala


> 
> 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