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>
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>
- 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>
* Unfortunate "downgrade" due to versioning scheme change in upstream
* New ebuild is in sync with live ebuild now
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>