summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2016-05-17 18:12:24 +0200
committerChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2016-05-17 18:12:24 +0200
commitbc5fa508f3f78dfc900843177391e073ccc9fc21 (patch)
treec5c54f244ce5879ca96fe07ec252888c30109572 /sys-firmware
parentsys-kernel/linux-firmware: new snapshot (diff)
downloadgentoo-bc5fa508f3f78dfc900843177391e073ccc9fc21.tar.gz
gentoo-bc5fa508f3f78dfc900843177391e073ccc9fc21.tar.bz2
gentoo-bc5fa508f3f78dfc900843177391e073ccc9fc21.zip
sys-firmware/amdgpu-ucode: new snapshot
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-firmware')
-rw-r--r--sys-firmware/amdgpu-ucode/Manifest2
-rw-r--r--sys-firmware/amdgpu-ucode/amdgpu-ucode-20160616.ebuild56
2 files changed, 58 insertions, 0 deletions
diff --git a/sys-firmware/amdgpu-ucode/Manifest b/sys-firmware/amdgpu-ucode/Manifest
index 4c55e1b47e87..52349b1e1a28 100644
--- a/sys-firmware/amdgpu-ucode/Manifest
+++ b/sys-firmware/amdgpu-ucode/Manifest
@@ -1,3 +1,5 @@
DIST amdgpu-ucode-20150803.tar.xz 735616 SHA256 8854abd0f356159e20e8abe83f66831d4857a98fd0ffc5856deb13d2c5e6d60d SHA512 821fc3ec12bae64bfdc533bba641b9ac3ca96ba2126bc96830e5b8d552ca188c97f35fcd5b601d6b4798e8c0857f67bfd4fcd1c336b4be58d863adf1103b9fa8 WHIRLPOOL 560820c6f4cd261810421e8cdfbdb4f577488c814ab2b94c6d6329420b562cb014e5adc66601c210699260bb57c92b779bca1a21516f711e906f9e6e1f34a033
DIST amdgpu-ucode-20160331.tar.xz 779248 SHA256 6d97d79b10c46ab6a4dda7fafb1d6d230851cc3ffeb3904007015ee29b7b5c4c SHA512 c8375adcb80d4d0ffc0ebaf5350c7f738d246287f431146638e12541c24b115b604116b16e86a1f63237b2cc8420c6be7e91326b3607a0b3c1cefbd8f3202915 WHIRLPOOL 5d580f62740bbd602ea12a37a88dc2ff3409d329d6c80d3fb9420001732eeba79a5d016ed7571109753ae95538f33e7cd01de94d695ecd11a4d88ebea74cc872
+DIST amdgpu-ucode-20160616.tar.xz 781716 SHA256 7362c71f113335883aa04b01fd4472d158eca653111fba9c60de5f224e93bcf8 SHA512 cbb138522e02a20ded2406837e7a70ac4287a10c051dad617818177397a8090345ee7faf4670211b2f07ce4e47a7dbeaee6ed255633a2a89e39ad19399886717 WHIRLPOOL 8248c786bcfefaa0c37bee94b900da7136cef55f60edea6e71220e15faf561ff707e9bff1b2df23a213296548cfe2e9e943be948259e93e6c563954e4007fa19
DIST radeon-ucode-20160331.tar.xz 850404 SHA256 e8641c5d2fb69b24609d4915625083bae912a683514157af73db9363154debef SHA512 d8abc4507798a636f6bb54ae9f76a9a378079d3179b83bbe1540a633d5445a45400ba6a9f460e24a05dcaf1fb6ee66334cddb01cb39f4e59aa969a246510e4eb WHIRLPOOL 63af735154cbe017baf01b36aef9b98a6a6733f116fee0a898c5e5546a1ee8830b752b69e12ba49bebbd41143339520e0afd3905b41039e6b323f247c2521374
+DIST radeon-ucode-20160616.tar.xz 813488 SHA256 ea535c05977ea8f1eecbac56e5bfeaa314d2440edf7844311d57b74b3033e5e1 SHA512 7851ba368722fc5f567a6a5d0d489e86469b6ec1f1a1dc3b60184af2cf0a094c1fa34a456d486694184d05cfffce43fc511a460d402e317f313a91832f9d854c WHIRLPOOL 995262f84ae033daf69d96cd26f50027b57f80e5621aed4b44ea944b5b441278a97876543e26c20cfaf82975c5212612e7a1ff31be740974dc7bc42495a048f7
diff --git a/sys-firmware/amdgpu-ucode/amdgpu-ucode-20160616.ebuild b/sys-firmware/amdgpu-ucode/amdgpu-ucode-20160616.ebuild
new file mode 100644
index 000000000000..0779d9b63b11
--- /dev/null
+++ b/sys-firmware/amdgpu-ucode/amdgpu-ucode-20160616.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit linux-info
+
+DESCRIPTION="Microcode for C.Islands/V.Islands/A.Islands Radeon GPUs and APUs"
+HOMEPAGE="https://people.freedesktop.org/~agd5f/radeon_ucode/"
+SRC_URI="mirror://gentoo/${P}.tar.xz
+ legacy? ( mirror://gentoo/${P/amdgpu/radeon}.tar.xz )"
+
+LICENSE="radeon-ucode"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="legacy"
+
+RDEPEND="legacy? ( !sys-firmware/radeon-ucode )
+ !>sys-kernel/linux-firmware-20150812[-savedconfig]"
+
+S=${WORKDIR}/amdgpu
+
+AMDGPU_LEGACY_CIK="bonaire hawaii kabini kaveri mullins"
+
+src_install() {
+ local chip files legacyfiles
+ if use legacy; then
+ pushd ../radeon || die
+ for chip in ${AMDGPU_LEGACY_CIK}; do
+ legacyfiles+=( ${chip}*.bin )
+ done
+ insinto /lib/firmware/radeon
+ doins ${legacyfiles[@]}
+ popd
+ fi
+ files=( *.bin )
+ insinto /lib/firmware/amdgpu
+ doins ${files[@]}
+ FILES=( ${files[@]/#/amdgpu/} ${legacyfiles[@]/#/radeon/} )
+}
+
+pkg_postinst() {
+ if linux_config_exists && linux_chkconfig_builtin DRM_AMDGPU; then
+ if ! linux_chkconfig_present FIRMWARE_IN_KERNEL || \
+ ! [[ "$(linux_chkconfig_string EXTRA_FIRMWARE)" == *_rlc.bin* ]]; then
+ ewarn "Your kernel has amdgpu DRM built-in but not the microcode."
+ ewarn "For kernel modesetting to work, please set in kernel config"
+ ewarn "CONFIG_FIRMWARE_IN_KERNEL=y"
+ ewarn "CONFIG_EXTRA_FIRMWARE_DIR=\"/lib/firmware\""
+ ewarn "CONFIG_EXTRA_FIRMWARE=\"${FILES[@]}\""
+ ewarn "You may skip microcode files for which no hardware is installed."
+ ewarn "More information at https://wiki.gentoo.org/wiki/AMDGPU#Firmware"
+ fi
+ fi
+}