mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
* add: si-cik-amdgpu
* fix: This is noarch
(cherry picked from commit 0f5e5154bd)
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
project pkg {
|
||||
arches = ["x86_64"]
|
||||
rpm {
|
||||
spec = "si-cik-amdgpu.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
%global commit c0c7df418d9d5eb499b72f738fa4c9c4ee7fcbc6
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
%global commit_date 20250620
|
||||
|
||||
Name: si-cik-amdgpu
|
||||
Version: 0^%{commit_date}git.%{shortcommit}
|
||||
Release: 1%{?dist}
|
||||
Summary: Modprobe config to enable the amdgpu drivers on Southern Islands (SI) and CIK (Sea Islands)
|
||||
License: GPL-3.0-only
|
||||
URL: https://github.com/terrapkg/pkg-si-cik-amdgpu
|
||||
Source0: %{url}/archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz
|
||||
BuildRequires: systemd-rpm-macros
|
||||
Requires(post): dracut
|
||||
Requires(postun): dracut
|
||||
BuildArch: noarch
|
||||
Packager: Gilver E. <rockgrub@disroot.org>
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
Forcing these generations of cards to use the amdgpu driver generally improves performance, especially for gaming.
|
||||
|
||||
DISCLAIMER:
|
||||
Using the amdgpu driver with SI and CIK GPUs is NOT officially supported.
|
||||
You SHOULD NOT report any issues with doing so to AMD or Mesa.
|
||||
|
||||
Using this driver with these GPUs is known in some cases to cause a higher power draw.
|
||||
If this is not a potential tradeoff you are comfortable with, please do not use this config.
|
||||
|
||||
%prep
|
||||
%autosetup -n pkg-%{name}-%{commit}
|
||||
|
||||
%build
|
||||
# [Crickets chirping]
|
||||
|
||||
%install
|
||||
install -Dm644 amdgpu.conf -t %{buildroot}%{_modprobedir}
|
||||
|
||||
%post
|
||||
dracut -f --regenerate-all
|
||||
|
||||
%postun
|
||||
dracut -f --regenerate-all
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_modprobedir}/amdgpu.conf
|
||||
|
||||
%changelog
|
||||
* Fri Jun 20 2025 Gilver E. <rockgrub@disroot.org> - 0^20250620git.c0c7df4-1
|
||||
- Initial package
|
||||
Reference in New Issue
Block a user