Skip to content

Commit fadb7af

Browse files
committed
[mhwd-amdgpu] remove GCN 1.1 and expr. GCN 1.2 GPUs to be auto-detected
1 parent 6ef20e1 commit fadb7af

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

mhwd-amdgpu/PKGBUILD

+12-8
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
pkgname=('mhwd-amdgpu')
55
pkgver=1.1.0
6-
pkgrel=2
6+
pkgrel=3.1
77

88
pkgdesc="MHWD module-ids for amdgpu $pkgver"
99
arch=('any')
@@ -14,17 +14,21 @@ source=(${url}/releases/individual/driver/xf86-video-amdgpu-${pkgver}.tar.bz2 mh
1414
sha256sums=('69f5d0ded9f4d5ce529099b6b581268e8f4dcff5608f1441d4ebc110ebc57931'
1515
'98ff6b7a8cc0b69ebf1e7b6b04a15717e9d8aae43d9b771b3ac83a5f4d44e157')
1616

17+
prepare() {
18+
# remove experimental IDs
19+
# see also https://github.com/manjaro/packages-core/issues/37
20+
# https://github.com/manjaro/packages-core/issues/47
21+
sed -i '/BONAIRE/'d ${srcdir}/xf86-video-amdgpu-$pkgver/src/pcidb/ati_pciids.csv
22+
sed -i '/KABINI/'d ${srcdir}/xf86-video-amdgpu-$pkgver/src/pcidb/ati_pciids.csv
23+
sed -i '/KAVERI/'d ${srcdir}/xf86-video-amdgpu-$pkgver/src/pcidb/ati_pciids.csv
24+
sed -i '/HAWAII/'d ${srcdir}/xf86-video-amdgpu-$pkgver/src/pcidb/ati_pciids.csv
25+
sed -i '/TOPAZ/'d ${srcdir}/xf86-video-amdgpu-$pkgver/src/pcidb/ati_pciids.csv
26+
}
27+
1728
package() {
1829
install -d -m755 "${pkgdir}/var/lib/mhwd/ids/pci/"
1930
# Generate mhwd database
2031
sh -e ${srcdir}/mhwd-amdgpu \
2132
${srcdir}/xf86-video-amdgpu-$pkgver/src/pcidb/ati_pciids.csv \
2233
> ${pkgdir}/var/lib/mhwd/ids/pci/amdgpu.ids
23-
# remove experimental IDs
24-
# see also https://github.com/manjaro/packages-core/issues/37
25-
sed -i '/6900/'d ${pkgdir}/var/lib/mhwd/ids/pci/amdgpu.ids
26-
sed -i '/6901/'d ${pkgdir}/var/lib/mhwd/ids/pci/amdgpu.ids
27-
sed -i '/6902/'d ${pkgdir}/var/lib/mhwd/ids/pci/amdgpu.ids
28-
sed -i '/6903/'d ${pkgdir}/var/lib/mhwd/ids/pci/amdgpu.ids
29-
sed -i '/6907/'d ${pkgdir}/var/lib/mhwd/ids/pci/amdgpu.ids
3034
}

0 commit comments

Comments
 (0)