[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>
Thu, 27 Feb 2025 12:57:25 +0000 (14:57 +0200)
commita578d78be611272402f7d8fc7e1eea86b746b4d6
treebc31cd69a59b96d9d37960201ab076bd164fe205
parentde314d5074b7da5ac9c7cf2dee2295ff7843a27f
[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