public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Chí-Thanh Christopher Nguyễn" <chithanh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-firmware/amdgpu-ucode/
Date: Wed,  2 Sep 2015 02:16:38 +0000 (UTC)	[thread overview]
Message-ID: <1441160195.5bd3914a01c40ebbf9adc75f65ef41f8f9f6bbf7.chithanh@gentoo> (raw)

commit:     5bd3914a01c40ebbf9adc75f65ef41f8f9f6bbf7
Author:     Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  2 02:16:35 2015 +0000
Commit:     Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
CommitDate: Wed Sep  2 02:16:35 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bd3914a

sys-firmware/amdgpu-ucode: initial commit

Package-Manager: portage-2.2.20.1

 sys-firmware/amdgpu-ucode/Manifest                 |  1 +
 .../amdgpu-ucode/amdgpu-ucode-20150803.ebuild      | 57 ++++++++++++++++++++++
 sys-firmware/amdgpu-ucode/metadata.xml             |  8 +++
 3 files changed, 66 insertions(+)

diff --git a/sys-firmware/amdgpu-ucode/Manifest b/sys-firmware/amdgpu-ucode/Manifest
new file mode 100644
index 0000000..3fe3b39
--- /dev/null
+++ b/sys-firmware/amdgpu-ucode/Manifest
@@ -0,0 +1 @@
+DIST amdgpu-ucode-20150803.tar.xz 735616 SHA256 8854abd0f356159e20e8abe83f66831d4857a98fd0ffc5856deb13d2c5e6d60d SHA512 821fc3ec12bae64bfdc533bba641b9ac3ca96ba2126bc96830e5b8d552ca188c97f35fcd5b601d6b4798e8c0857f67bfd4fcd1c336b4be58d863adf1103b9fa8 WHIRLPOOL 560820c6f4cd261810421e8cdfbdb4f577488c814ab2b94c6d6329420b562cb014e5adc66601c210699260bb57c92b779bca1a21516f711e906f9e6e1f34a033

diff --git a/sys-firmware/amdgpu-ucode/amdgpu-ucode-20150803.ebuild b/sys-firmware/amdgpu-ucode/amdgpu-ucode-20150803.ebuild
new file mode 100644
index 0000000..0f31d2d
--- /dev/null
+++ b/sys-firmware/amdgpu-ucode/amdgpu-ucode-20150803.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit linux-info
+
+DESCRIPTION="Microcode for V.Islands Radeon GPUs and APUs"
+HOMEPAGE="http://people.freedesktop.org/~agd5f/radeon_ucode/"
+SRC_URI="mirror://gentoo/${P}.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}/radeon_ucode
+
+AMDGPU_LEGACY_CIK="bonaire hawaii kabini kaveri mullins"
+
+src_install() {
+	local directory files legacyfiles
+	if use legacy; then
+		for directory in ${AMDGPU_LEGACY_CIK}; do
+			legacyfiles+=( ${directory}/*.bin )
+		done
+		insinto /lib/firmware/radeon
+		doins ${legacyfiles[@]}
+	fi
+	for directory in */; do
+		if [[ ${AMDGPU_LEGACY_CIK} != *${directory%/}* ]]; then
+			files+=( ${directory}/*.bin )
+		fi
+	done
+	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
+}

diff --git a/sys-firmware/amdgpu-ucode/metadata.xml b/sys-firmware/amdgpu-ucode/metadata.xml
new file mode 100644
index 0000000..5229625
--- /dev/null
+++ b/sys-firmware/amdgpu-ucode/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<herd>x11</herd>
+	<use>
+		<flag name="legacy">Install firmware for older chipsets which are optionally supported by AMDGPU</flag>
+	</use>
+</pkgmetadata>


             reply	other threads:[~2015-09-02  2:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-02  2:16 Chí-Thanh Christopher Nguyễn [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-04-08  0:34 [gentoo-commits] repo/gentoo:master commit in: sys-firmware/amdgpu-ucode/ Chí-Thanh Christopher Nguyễn
2016-05-17 16:15 Chí-Thanh Christopher Nguyễn
2016-05-17 16:15 Chí-Thanh Christopher Nguyễn
2016-06-28 21:24 Chí-Thanh Christopher Nguyễn
2016-06-28 21:24 Chí-Thanh Christopher Nguyễn
2017-01-20 16:25 Chí-Thanh Christopher Nguyễn
2017-03-16 20:37 Matt Turner
2017-05-29  3:30 Matt Turner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1441160195.5bd3914a01c40ebbf9adc75f65ef41f8f9f6bbf7.chithanh@gentoo \
    --to=chithanh@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox