[PATCH] amdgpu: add env support for amdgpu.ids path
authorSergio Costas Rodriguez <sergio.costas@canonical.com>
Wed, 2 Nov 2022 14:48:07 +0000 (15:48 +0100)
committerTimo Aaltonen <tjaalton@debian.org>
Tue, 1 Apr 2025 08:08:19 +0000 (11:08 +0300)
commitd2124033a3a5d76b340b65d6962b2ad2dbf935e8
treec580c2a52512356c477d330b52bdff9c7c72dacd
parentdd8f0f841b26d6f36c39444dcf1e535c6c41bf3b
[PATCH] amdgpu: add env support for amdgpu.ids path

In some cases, like when building a Snap application that uses
libdrm, the `amdgpu.ids` file isn't directly available at the
compiling place, but inside a mounted folder. This forces each
application to link/bind the file from the current place
(usually at the $SNAP/gnome-platform/usr/share/libdrm/amdgpu.ids)
which is cumbersome.

This patch allows to set an environment variable, called
AMDGPU_ASIC_ID_TABLE_PATH, where the file will be also searched
if it isn't located in the default, meson-configured, path.

Gbp-Pq: Name amdgpu-add-env-support-for-amdgpu-ids.patch
README.rst
amdgpu/amdgpu_asic_id.c