Commit Graph

12 Commits

Author SHA1 Message Date
Sv. Lockal
e021d283de dev-libs/xdna-driver: override driver via /etc/depmod.d
Previous method with /etc/modprobe.d was unreliable: with 7.0 kernel
amdxdna depends on amd-pmf module. With "insmod" in modprobe.d
the driver was sometimes loaded before amd-pmf, failing with
"Unknown symbol amd_pmf_get_npu_data". But depmod.d is both reliable
and clean way to override in-tree driver with out-of-tree one (i. e.
respects "depends" section that one can see in `modinfo amdxdna`).

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
2026-05-13 15:07:22 +08:00
Sv. Lockal
9ad169a074 dev-libs/xdna-driver: fix live ebuild after PR merge in upstream
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
2026-05-08 10:05:30 +08:00
Sv. Lockal
0f85bd3a77 dev-libs/xdna-driver: build against eselect-ed kernel, not booted one
This fixes build, when active kernel is Clang-built and ebuild uses
GCC-built one (and vice versa).

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
2026-05-02 19:41:45 +08:00
Sv. Lockal
b1ed3ba86c dev-libs/xdna-driver: fix compilation with Clang
Multiple issues fixed:
- module was compiled against `uname -r` kernel, not eselect-ed one
- released version requires a patch to compile with Clang
- previous attempt to forward CC to fix Clang compilation was incorrect
  from every standpoint; e. g. it there is KERNEL_CC for that, etc.
  Removed it, as upstream now has proper support (backported via patch).

Closes: https://bugs.gentoo.org/973282
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
2026-04-30 05:46:32 +08:00
Sv. Lockal
120265e432 dev-libs/xdna-driver: fix modules-compress, add compress-{zstd,xz}
- Removed `firmware` USE flag (as it does not work without firmware anyway)
- Added `compress-zstd` and `compress-xz` USE flags for firmware
- Fix path in modprobe.d/amdxdna.conf when `modules-compress` is used

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
2026-04-25 20:39:54 +08:00
Sv. Lockal
ea4fe7ef4f dev-libs/xdna-driver: Add -g for global associative arrays
This improves compatibility with alternative package managers.

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
2026-04-12 02:19:44 +08:00
Sv. Lockal
aed5b43c09 dev-libs/xdna-driver: update live ebuild to use wget for fetching firmwares
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
2026-04-04 23:40:31 +08:00
Sv. Lockal
48b31fd2f3 dev-libs/xdna-driver: fix live ebuild
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
2026-03-10 19:28:36 +08:00
Sv. Lockal
a06240b270 dev-libs/xdna-driver: fix 999999, now uses configure stage
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
2025-12-17 14:08:08 +08:00
Haelwenn (lanodan) Monnier
5706a90d18 dev-libs/xdna-driver: destabilize 202610.2.21.21 for ~amd64
No stable keywords in ::guru

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2025-12-08 04:49:55 +01:00
Sv. Lockal
050b224757 dev-libs/xdna-driver: refactor and fix installation with pmerge
Other package managers like pmerge want global associative arrays to be
declared with `declare -Ag`. However, for this ebuild it is even easier
not to use associative arrays.

See also: https://public-inbox.gentoo.org/gentoo-dev/642e2d85-7d75-4b0f-8a16-037a4f692e5c@gmail.com/

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
2025-12-07 22:21:06 +08:00
Sv. Lockal
7856888ac5 dev-libs/xdna-driver: add 999999
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
2025-12-05 20:36:53 +08:00