summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-firmware
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
commit29aabba0ea759c6a2864ff5631735b67ee38e5e0 (patch)
treeab466b4dfa7abecb401b2f8039d08af4689306bb /sys-kernel/linux-firmware
parentd42200bec37eef2a7478d88988ff00addd0a9202 (diff)
gentoo resync : 05.02.2020
Diffstat (limited to 'sys-kernel/linux-firmware')
-rw-r--r--sys-kernel/linux-firmware/Manifest18
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-20190603.ebuild2
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-20190815.ebuild2
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-20190904.ebuild2
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-20190923.ebuild2
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-20191008.ebuild2
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-20191022.ebuild2
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-20191108.ebuild2
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-20191215.ebuild2
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-20200122.ebuild354
10 files changed, 372 insertions, 16 deletions
diff --git a/sys-kernel/linux-firmware/Manifest b/sys-kernel/linux-firmware/Manifest
index 07ba0e2c376d..7c41bf5949e5 100644
--- a/sys-kernel/linux-firmware/Manifest
+++ b/sys-kernel/linux-firmware/Manifest
@@ -6,13 +6,15 @@ DIST linux-firmware-20191008.tar.gz 198940781 BLAKE2B 35d7bca55473264c4f713bc97d
DIST linux-firmware-20191022.tar.gz 198935619 BLAKE2B 94d90a8e85af7104f08c398d3df20a88dc4d6f86d638565ab6e45e7fc5dff53e4e56a62a859585438812a1438ea7f7c4e4e47ce4adb22b0adf69439feb5803b4 SHA512 2cc99664c8d0275b670373581d7c6e29699f8b84cd6403949182cc1970c3241e5d9c388c34643630a237d87962b7c8e891445969ca9817ac92a4bbbe74e0dc0d
DIST linux-firmware-20191108.tar.gz 203746264 BLAKE2B cd756ac1b1bde9706cd8321133da2e4e620a3236614427ae9836fc5e98fbc62e79060e6cf50717b41391fba9d56e16140f722ffcc5764e4b81ad2e798d1b41ec SHA512 75eb78ef642cc48dc3d8d2cdd7e5312b82ee3c9ebd6ead40a02fdc1d4329c5a9226237fa0ec8e617fc358cc12144dacf4ef6c1441fe444974c1506ef21ea70a0
DIST linux-firmware-20191215.tar.gz 203746264 BLAKE2B cd756ac1b1bde9706cd8321133da2e4e620a3236614427ae9836fc5e98fbc62e79060e6cf50717b41391fba9d56e16140f722ffcc5764e4b81ad2e798d1b41ec SHA512 75eb78ef642cc48dc3d8d2cdd7e5312b82ee3c9ebd6ead40a02fdc1d4329c5a9226237fa0ec8e617fc358cc12144dacf4ef6c1441fe444974c1506ef21ea70a0
-EBUILD linux-firmware-20190603.ebuild 8028 BLAKE2B 884f7422163f4fcb211ca443bf3e20dc08ef8358123b2eceee143fe148eb6c18de03974093fee58399ab10017818b934db3f14b4a02889c28a46b1eb79e616e0 SHA512 38cd1a968b1babb99e19f8d8e97289bd33b761646220dfde36dc94c6499f3c418b35757e54e2b820e113db68b288a31e970eda168e002c97ad1229825f440afa
-EBUILD linux-firmware-20190815.ebuild 9649 BLAKE2B 177e54238f9757e3872b04b858f9f18f8200491b9410321b49be43346f71ae0ba8672b4ce41e798af4ef1426839862525b447c37cf08d8b178d222b323609d18 SHA512 4e08a09fdc3c2c74c1334a1c7e3c78f9c717c2b4ebb99279cf1ef67550b3349194b3c404f484cdb3045e7cafe14dce961e68f072a390af2b86a40f4ab941c6cf
-EBUILD linux-firmware-20190904.ebuild 9649 BLAKE2B f9dcb2d5feb6e3da4815410b55366c1d7662638f390b3273b583973cd67d8fef4eb8be6613f6f1efd4c094cc6d8b27758c95df3fa726e9b8c0d308af1afc3fa5 SHA512 7e530de018df8ecacbd76f2fe62e201423f44ca75ad9952448d4d1ee8f1b9d2e091e13313f4050d0cc8f779d1ab06f90a1f5e632c80d6f0c9f3578295ff5ae72
-EBUILD linux-firmware-20190923.ebuild 9649 BLAKE2B cd63576447a6d140b81d77782e4da859c474e4a88f5b1fec668041af9084645e108f0fc0c1b27903a3975d9d5387bfbbc0297325058cbc0d564ba998fb838298 SHA512 78100e6c23cd836512efc1579dcacda663fa4a1fcda4d32f82f64b6b9d79012656810eb6fa2263ec222adfe4a892e1cae4c7a7a782e47b35537c375c924be381
-EBUILD linux-firmware-20191008.ebuild 9649 BLAKE2B 446faeef08ba013222d2398b16cc4a23457cac7a210ff7b2840a9059ab7f0b5080444fca5eb2616378551e91d6608e8013e88090ccb13910255f571a7909bcae SHA512 b94e7509cb8d3e4a5d178e0c6a30bf1df102df005bd72f599fd7515780b25e03c58354b76d2d83bbacc2388a3f9d8178dd6446b19deb56cc474cc11a6f705700
-EBUILD linux-firmware-20191022.ebuild 9649 BLAKE2B 51af494120aa422d95ba314775a7b04eeeb1ca8dcb78ae4b9ca6f30263981b4b6ebb3b6a072a818ebc7157d147fc16999b98c4f38fb3cb05013437c8cb9efba5 SHA512 63c0e05176f458b7b1edfcfa855f1844c3290d7cdd0bc84988202a47f4ced1f97b439baffa04f9a444c028bb23e0478ab39d8e68ba96f6d8d0dc44b732f8af6a
-EBUILD linux-firmware-20191108.ebuild 9649 BLAKE2B d2a8f1c72f3c232de11909b7aaae6fc60a1e53e8ce27ec9476186295d0a067243fdf66291ef881b767b158302b7de2ed7ae78968b770ac9e7f2bdca22a962c0d SHA512 a4a6ffc740a1f5a0cb83118f636fe494e85ccc9ec496186ab0e4bda10556fdb3345189107f9aa8d78c76e7452106fed2484688045a0f4df66d956fa6e01d3d55
-EBUILD linux-firmware-20191215.ebuild 9649 BLAKE2B d2a8f1c72f3c232de11909b7aaae6fc60a1e53e8ce27ec9476186295d0a067243fdf66291ef881b767b158302b7de2ed7ae78968b770ac9e7f2bdca22a962c0d SHA512 a4a6ffc740a1f5a0cb83118f636fe494e85ccc9ec496186ab0e4bda10556fdb3345189107f9aa8d78c76e7452106fed2484688045a0f4df66d956fa6e01d3d55
+DIST linux-firmware-20200122.tar.gz 219807963 BLAKE2B 976cf7f8da61213a1210348cffdda8cae1b3f3a2d46aac05fe331fdff37e954620c2768f8941e0d4b6fff8c7b69d68b86516c9df9b9cf96538a4463b0957d1a2 SHA512 23500cc99d31597fe691341404cbe9375f7995783b4bf055a53a67ace380bdf9db1c247f12ae7e63ac02e4078e5089aa33e5cc6c2622b26dfaab4a65bfab1db3
+EBUILD linux-firmware-20190603.ebuild 8029 BLAKE2B 5faf4b9e39b62eed3444a5cd9cda818627db6947ffa6a7ab958ab180b05a54f67d2f3fb24ade2f5a5e18f097e356b0ba0c7c6dce7905d6a160b52bd9d3c2af56 SHA512 87d97e0ea8005dda3ba32e00ba8403ea21038afafd090e61cc6159ed291887402e5cb2998fc2ba7111f929e9aa41f07e53fa43f4e441de5d006de101f5658d94
+EBUILD linux-firmware-20190815.ebuild 9650 BLAKE2B 20a270b1d1f9b9f71b65a811970f584c55d35d929ed9bc94b904bbe761b75c8bfd9b9b9e06ba5b05dcd35f279bcc924bc1cb78d824072a61ed78310a2cc6b1bb SHA512 6f70b6e954cb7a482d14e01cc73ca46fb556c1cbce2d5c31f74d3a1fe4fb1e8486769324ea384e2c06bedc4734c3ff4edbe2348e67db7babca81e04ba3e26166
+EBUILD linux-firmware-20190904.ebuild 9650 BLAKE2B e826e186e5a51cf000c7e8db5552edfb71cc20261b3fc4bf1aabc8b8a67778b37ff46c320b479f44dad9094f27c782800a16b14f5956debdb05b687f2ac986f7 SHA512 f5bff770a5499e35b28fb22f6dd08a622e9d4f97be5c1568e7381e2d5b09a5000fb22ed20109b10595993419df7d3cfde847fa5be6ce022d2fdbe5a0335cc508
+EBUILD linux-firmware-20190923.ebuild 9650 BLAKE2B 17f128700e811182ad2052256dd835b4d91803d894f3d4739423cc92ae3f1cb6d1b5cab142e70b2e6e991a41af873b705fc8107f94dcb6d0b4c2ea8ffbbe1a85 SHA512 0255d6e71aae687879c7db81a35cdd2c210cff83b53c480ba224e9bf0e0150ed9f3d2c60098722034519df302d7861e101e9589e5f69bf145ef457c4d5ad3eda
+EBUILD linux-firmware-20191008.ebuild 9650 BLAKE2B b25665e5b2560e1fe3abef1f6f4ff51abfe4aac70338f31eab8e480ac8be8309950be4bd8d1576272d136b3a81c875d5005dfc27473774a6b6ae0465bd9b974b SHA512 0fb492af1ad07d431a02f609e4096cae1c6ca6f912770f4b60c7898574c56bfc6414fc3f628ef4bcc77b76dd5cc6fa13b2242277a9457320847deeb448dc44da
+EBUILD linux-firmware-20191022.ebuild 9650 BLAKE2B 774886d688fde74a765ba32fc0af18cf3bd8b108c30bccfb98e567e1d05cc210fc5c7fa8fed66250fb013ea16fc1e9f5aae2918aebcf150e0f65b09f5fa905bf SHA512 c97b9b0460020810f034633e428955f968d029a442024c938b9871254063c667362d35cf1b075437ed7e7c56d8d340e7d5c31f442e25b4c9fcce633a690cc935
+EBUILD linux-firmware-20191108.ebuild 9650 BLAKE2B 9613c850df1f7edb61f5f4882b5a79574d087933160adbb92040b412adb6f0d72eed83634fcfebe5787c140d68df557832fa1c5ac96b96d7066ebeef1eb06959 SHA512 9810f36388d786750fafde0cbf88a271cea7670fb54e9ea7b730b9370e846b619404e91a4aa8c60a7ec12ae784e7615c3d5f3879aa308303836373751ae53834
+EBUILD linux-firmware-20191215.ebuild 9650 BLAKE2B 9613c850df1f7edb61f5f4882b5a79574d087933160adbb92040b412adb6f0d72eed83634fcfebe5787c140d68df557832fa1c5ac96b96d7066ebeef1eb06959 SHA512 9810f36388d786750fafde0cbf88a271cea7670fb54e9ea7b730b9370e846b619404e91a4aa8c60a7ec12ae784e7615c3d5f3879aa308303836373751ae53834
+EBUILD linux-firmware-20200122.ebuild 9650 BLAKE2B 107d9c400a6d7bc94475e49035088b9c99355ba6d0c5ad8f5bad9daa6b2dbbaf8d2541a78037cfb7982b7f1acdee72616a68f8766e3e922486340eeb84301f53 SHA512 1ddfeff273d2ae053bd06b6b0680b21169c598dc95eb2b79938fe351c8d420808552a9a6ea8fa22de107a8217f57769e7b934e0f65a99c4b980e2f41af4b5547
EBUILD linux-firmware-99999999.ebuild 9621 BLAKE2B 1a3ff9ddab3ceee929a91747a1195528405e37eee8a1f9f02a385ab66c5b153c69004dc3d46ca20c0cbeea59006838c50e15b68a63431f9cdafdf721ceba031f SHA512 44e9cef586b7d908ae2c9057827edc25929677fa4d865674524f022dd6b7ea4caad4a9996993deed6629480c89d50e4773596ce2c3e5639a67075ea8adb157d9
MISC metadata.xml 867 BLAKE2B db510434e654367fb0ae439b1a3ca3fc170f558022f07634a534ea982f2445ff656fa618b9dac5ebb6ac2f64d9ee93dcc59525c1f3d429eda4ebce05a678298c SHA512 5429e7424fac663e3448e80dad98365239b855f09522fe7ea3cd2c731bec37fee29209cc8ead46e73ea03cd85a3e9c8fafe18ddf4a35e5bb55513d63ad5ae7ff
diff --git a/sys-kernel/linux-firmware/linux-firmware-20190603.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190603.ebuild
index 7338d1f9511b..875b922e60ba 100644
--- a/sys-kernel/linux-firmware/linux-firmware-20190603.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-20190603.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == 99999999* ]]; then
else
GIT_COMMIT="1884732e01bec25affbd5d3366b187b757b095db"
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+ KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
fi
DESCRIPTION="Linux firmware files"
diff --git a/sys-kernel/linux-firmware/linux-firmware-20190815.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190815.ebuild
index 2946bd823799..abb61dcfafad 100644
--- a/sys-kernel/linux-firmware/linux-firmware-20190815.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-20190815.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == 99999999* ]]; then
else
GIT_COMMIT="07b925b450bfb4cf3e141c612ec5b104658cd020"
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+ KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
fi
DESCRIPTION="Linux firmware files"
diff --git a/sys-kernel/linux-firmware/linux-firmware-20190904.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190904.ebuild
index c460169ea844..6a83e8d27e42 100644
--- a/sys-kernel/linux-firmware/linux-firmware-20190904.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-20190904.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == 99999999* ]]; then
else
GIT_COMMIT="6ddb9d9704e2171d91439c9c42c5965bf3863de8"
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+ KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
fi
DESCRIPTION="Linux firmware files"
diff --git a/sys-kernel/linux-firmware/linux-firmware-20190923.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190923.ebuild
index d8c4231de318..110889f51609 100644
--- a/sys-kernel/linux-firmware/linux-firmware-20190923.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-20190923.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == 99999999* ]]; then
else
GIT_COMMIT="417a9c6e197a8d3eec792494efc87a2b42f76324"
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+ KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
fi
DESCRIPTION="Linux firmware files"
diff --git a/sys-kernel/linux-firmware/linux-firmware-20191008.ebuild b/sys-kernel/linux-firmware/linux-firmware-20191008.ebuild
index ea3966c31358..8f6faf530c22 100644
--- a/sys-kernel/linux-firmware/linux-firmware-20191008.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-20191008.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == 99999999* ]]; then
else
GIT_COMMIT="aa95e90b2c638f1ca6647d12b2d1b18284428f9c"
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+ KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
fi
DESCRIPTION="Linux firmware files"
diff --git a/sys-kernel/linux-firmware/linux-firmware-20191022.ebuild b/sys-kernel/linux-firmware/linux-firmware-20191022.ebuild
index 746297f2008e..0feb90debe1d 100644
--- a/sys-kernel/linux-firmware/linux-firmware-20191022.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-20191022.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == 99999999* ]]; then
else
GIT_COMMIT="2b016afc348ba4b5fb2016ffcb2822f4a293da0c"
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+ KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
fi
DESCRIPTION="Linux firmware files"
diff --git a/sys-kernel/linux-firmware/linux-firmware-20191108.ebuild b/sys-kernel/linux-firmware/linux-firmware-20191108.ebuild
index 55c303b70a3c..e3c4d975db32 100644
--- a/sys-kernel/linux-firmware/linux-firmware-20191108.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-20191108.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == 99999999* ]]; then
else
GIT_COMMIT="f1100ddf581f49aa79a54b56fe6ef0815a7ae57e"
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+ KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
fi
DESCRIPTION="Linux firmware files"
diff --git a/sys-kernel/linux-firmware/linux-firmware-20191215.ebuild b/sys-kernel/linux-firmware/linux-firmware-20191215.ebuild
index 55c303b70a3c..e3c4d975db32 100644
--- a/sys-kernel/linux-firmware/linux-firmware-20191215.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-20191215.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == 99999999* ]]; then
else
GIT_COMMIT="f1100ddf581f49aa79a54b56fe6ef0815a7ae57e"
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+ KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
fi
DESCRIPTION="Linux firmware files"
diff --git a/sys-kernel/linux-firmware/linux-firmware-20200122.ebuild b/sys-kernel/linux-firmware/linux-firmware-20200122.ebuild
new file mode 100644
index 000000000000..2736b49b914b
--- /dev/null
+++ b/sys-kernel/linux-firmware/linux-firmware-20200122.ebuild
@@ -0,0 +1,354 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit mount-boot savedconfig
+
+if [[ ${PV} == 99999999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
+else
+ GIT_COMMIT="1eb2408c6feacccd10b02a49214745f15d1c6fb7"
+ SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+fi
+
+DESCRIPTION="Linux firmware files"
+HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
+
+LICENSE="GPL-2 GPL-2+ GPL-3 BSD MIT || ( MPL-1.1 GPL-2 )
+ redistributable? (
+ linux-fw-redistributable ( BSD-2 BSD BSD-4 ISC MIT no-source-code ) )
+ unknown-license? ( all-rights-reserved )"
+SLOT="0"
+IUSE="initramfs +redistributable savedconfig unknown-license"
+RESTRICT="binchecks strip
+ unknown-license? ( bindist )"
+
+REQUIRED_USE="initramfs? ( redistributable )"
+
+BDEPEND="initramfs? ( app-arch/cpio )"
+
+#add anything else that collides to this
+RDEPEND="!savedconfig? (
+ redistributable? (
+ !sys-firmware/alsa-firmware[alsa_cards_ca0132]
+ !media-tv/cx18-firmware
+ !<sys-firmware/ivtv-firmware-20080701-r1
+ !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
+ !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
+ !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
+ !net-dialup/ueagle-atm
+ !net-dialup/ueagle4-atm
+ !net-wireless/ar9271-firmware
+ !net-wireless/i2400m-fw
+ !net-wireless/libertas-firmware
+ !sys-firmware/rt61-firmware
+ !net-wireless/rt73-firmware
+ !net-wireless/rt2860-firmware
+ !net-wireless/rt2870-firmware
+ !sys-block/qla-fc-firmware
+ !sys-firmware/amd-ucode
+ !sys-firmware/iwl1000-ucode
+ !sys-firmware/iwl2000-ucode
+ !sys-firmware/iwl2030-ucode
+ !sys-firmware/iwl3945-ucode
+ !sys-firmware/iwl4965-ucode
+ !sys-firmware/iwl5000-ucode
+ !sys-firmware/iwl5150-ucode
+ !sys-firmware/iwl6000-ucode
+ !sys-firmware/iwl6005-ucode
+ !sys-firmware/iwl6030-ucode
+ !sys-firmware/iwl6050-ucode
+ !sys-firmware/iwl3160-ucode
+ !sys-firmware/iwl7260-ucode
+ !sys-firmware/iwl7265-ucode
+ !sys-firmware/iwl3160-7260-bt-ucode
+ !sys-firmware/radeon-ucode
+ )
+ unknown-license? (
+ !sys-firmware/alsa-firmware[alsa_cards_korg1212]
+ !sys-firmware/alsa-firmware[alsa_cards_maestro3]
+ !sys-firmware/alsa-firmware[alsa_cards_sb16]
+ !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
+ )
+ )"
+
+pkg_pretend() {
+ use initramfs && mount-boot_pkg_pretend
+}
+
+src_unpack() {
+ if [[ ${PV} == 99999999* ]]; then
+ git-r3_src_unpack
+ else
+ default
+ # rename directory from git snapshot tarball
+ mv ${PN}-*/ ${P} || die
+ fi
+}
+
+src_prepare() {
+ # source and documentation files, not to be installed
+ local source_files=(
+ README
+ WHENCE
+ "LICEN[CS]E*"
+ "GPL*"
+ configure
+ Makefile
+ check_whence.py
+ atusb/ChangeLog
+ av7110/Boot.S
+ av7110/Makefile
+ carl9170fw/
+ cis/Makefile
+ cis/src/
+ dsp56k/bootstrap.asm
+ dsp56k/concat-bootstrap.pl
+ dsp56k/Makefile
+ "isci/*.[ch]"
+ isci/Makefile
+ isci/README
+ "keyspan_pda/*.S"
+ keyspan_pda/Makefile
+ usbdux/
+ )
+
+ # whitelist of images with a free software license
+ local free_software=(
+ # keyspan_pda (GPL-2+)
+ keyspan_pda/keyspan_pda.fw
+ keyspan_pda/xircom_pgs.fw
+ # dsp56k (GPL-2+)
+ dsp56k/bootstrap.bin
+ # ath9k_htc (BSD GPL-2+ MIT)
+ ath9k_htc/htc_7010-1.4.0.fw
+ ath9k_htc/htc_9271-1.4.0.fw
+ # pcnet_cs, 3c589_cs, 3c574_cs, serial_cs (dual GPL-2/MPL-1.1)
+ cis/LA-PCM.cis
+ cis/PCMLM28.cis
+ cis/DP83903.cis
+ cis/NE2K.cis
+ cis/tamarack.cis
+ cis/PE-200.cis
+ cis/PE520.cis
+ cis/3CXEM556.cis
+ cis/3CCFEM556.cis
+ cis/MT5634ZLX.cis
+ cis/RS-COM-2P.cis
+ cis/COMpad2.cis
+ cis/COMpad4.cis
+ # serial_cs (GPL-3)
+ cis/SW_555_SER.cis
+ cis/SW_7xx_SER.cis
+ cis/SW_8xx_SER.cis
+ # dvb-ttpci (GPL-2+)
+ av7110/bootcode.bin
+ # usbdux, usbduxfast, usbduxsigma (GPL-2+)
+ usbdux_firmware.bin
+ usbduxfast_firmware.bin
+ usbduxsigma_firmware.bin
+ # brcmfmac (GPL-2+)
+ brcm/brcmfmac4330-sdio.Prowise-PT301.txt
+ brcm/brcmfmac43340-sdio.meegopad-t08.txt
+ brcm/brcmfmac43362-sdio.cubietech,cubietruck.txt
+ brcm/brcmfmac43362-sdio.lemaker,bananapro.txt
+ brcm/brcmfmac43430a0-sdio.jumper-ezpad-mini3.txt
+ "brcm/brcmfmac43430a0-sdio.ONDA-V80 PLUS.txt"
+ brcm/brcmfmac43430-sdio.AP6212.txt
+ brcm/brcmfmac43430-sdio.Hampoo-D2D3_Vi8A1.txt
+ brcm/brcmfmac43430-sdio.MUR1DX.txt
+ brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt
+ brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
+ brcm/brcmfmac4356-pcie.gpd-win-pocket.txt
+ # isci (GPL-2)
+ isci/isci_firmware.bin
+ # carl9170 (GPL-2+)
+ carl9170-1.fw
+ # atusb (GPL-2+)
+ atusb/atusb-0.2.dfu
+ atusb/atusb-0.3.dfu
+ atusb/rzusb-0.3.bin
+ # mlxsw_spectrum (dual BSD/GPL-2)
+ mellanox/mlxsw_spectrum-13.1420.122.mfa2
+ mellanox/mlxsw_spectrum-13.1530.152.mfa2
+ mellanox/mlxsw_spectrum-13.1620.192.mfa2
+ mellanox/mlxsw_spectrum-13.1702.6.mfa2
+ mellanox/mlxsw_spectrum-13.1703.4.mfa2
+ mellanox/mlxsw_spectrum-13.1910.622.mfa2
+ mellanox/mlxsw_spectrum-13.2000.1122.mfa2
+ )
+
+ # blacklist of images with unknown license
+ local unknown_license=(
+ atmsar11.fw
+ korg/k1212.dsp
+ ess/maestro3_assp_kernel.fw
+ ess/maestro3_assp_minisrc.fw
+ yamaha/ds1_ctrl.fw
+ yamaha/ds1_dsp.fw
+ yamaha/ds1e_ctrl.fw
+ tr_smctr.bin
+ ttusb-budget/dspbootcode.bin
+ emi62/bitstream.fw
+ emi62/loader.fw
+ emi62/midi.fw
+ emi62/spdif.fw
+ ti_3410.fw
+ ti_5052.fw
+ mts_mt9234mu.fw
+ mts_mt9234zba.fw
+ whiteheat.fw
+ whiteheat_loader.fw
+ intelliport2.bin
+ cpia2/stv0672_vp4.bin
+ vicam/firmware.fw
+ edgeport/boot.fw
+ edgeport/boot2.fw
+ edgeport/down.fw
+ edgeport/down2.fw
+ edgeport/down3.bin
+ sb16/mulaw_main.csp
+ sb16/alaw_main.csp
+ sb16/ima_adpcm_init.csp
+ sb16/ima_adpcm_playback.csp
+ sb16/ima_adpcm_capture.csp
+ sun/cassini.bin
+ acenic/tg1.bin
+ acenic/tg2.bin
+ adaptec/starfire_rx.bin
+ adaptec/starfire_tx.bin
+ yam/1200.bin
+ yam/9600.bin
+ 3com/3C359.bin
+ ositech/Xilinx7OD.bin
+ qlogic/isp1000.bin
+ myricom/lanai.bin
+ yamaha/yss225_registers.bin
+ lgs8g75.fw
+ )
+
+ default
+
+ # remove sources and documentation (wildcards are expanded)
+ rm -r ${source_files[@]} || die
+ rm -rf .git
+
+ if use !unknown-license; then
+ # remove files in unknown_license
+ rm "${unknown_license[@]}" || die
+ fi
+
+ if use !redistributable; then
+ # remove files _not_ in the free_software or unknown_license lists
+ # everything else is confirmed (or assumed) to be redistributable
+ # based on upstream acceptance policy
+ local IFS=$'\n'
+ find ! -type d -printf "%P\n" \
+ | grep -Fvx -e "${free_software[*]}" -e "${unknown_license[*]}" \
+ | xargs -d '\n' rm || die
+ IFS=$' \t\n'
+ fi
+
+ if use initramfs; then
+ if [[ -d "${S}/amd-ucode" ]]; then
+ local UCODETMP="${T}/ucode_tmp"
+ local UCODEDIR="${UCODETMP}/kernel/x86/microcode"
+ mkdir -p "${UCODEDIR}" || die
+ echo 1 > "${UCODETMP}/early_cpio"
+
+ local amd_ucode_file="${UCODEDIR}/AuthenticAMD.bin"
+ cat "${S}"/amd-ucode/*.bin > "${amd_ucode_file}" || die "Failed to concat amd cpu ucode"
+
+ if [[ ! -s "${amd_ucode_file}" ]]; then
+ die "Sanity check failed: '${amd_ucode_file}' is empty!"
+ fi
+
+ pushd "${UCODETMP}" &>/dev/null || die
+ find . -print0 | cpio --quiet --null -o -H newc -R 0:0 > "${S}"/amd-uc.img
+ popd &>/dev/null || die
+ if [[ ! -s "${S}/amd-uc.img" ]]; then
+ die "Failed to create '${S}/amd-uc.img'!"
+ fi
+ else
+ # If this will ever happen something has changed which
+ # must be reviewed
+ die "'${S}/amd-ucode' not found!"
+ fi
+ fi
+
+ echo "# Remove files that shall not be installed from this list." > ${PN}.conf
+ find * ! -type d ! \( -name ${PN}.conf -o -name amd-uc.img \) >> ${PN}.conf
+
+ if use savedconfig; then
+ restore_config ${PN}.conf
+
+ ebegin "Removing all files not listed in config"
+ find ! -type d ! \( -name ${PN}.conf -o -name amd-uc.img \) -printf "%P\n" \
+ | grep -Fvx -f <(grep -v '^#' ${PN}.conf \
+ || die "grep failed, empty config file?") \
+ | xargs -d '\n' --no-run-if-empty rm
+ eend $? || die
+ fi
+
+ # remove empty directories, bug #396073
+ find -type d -empty -delete || die
+}
+
+src_install() {
+ save_config ${PN}.conf
+ rm ${PN}.conf || die
+
+ if use initramfs ; then
+ mkdir "${ED}/boot" || die
+ mv "${S}"/amd-uc.img "${ED}/boot" || die
+ fi
+
+ if ! ( shopt -s failglob; : * ) 2>/dev/null; then
+ eerror "No files to install. Check your USE flag settings"
+ eerror "and the list of files in your saved configuration."
+ die "Refusing to install an empty package"
+ fi
+
+ insinto /lib/firmware/
+ doins -r *
+}
+
+pkg_preinst() {
+ if use savedconfig; then
+ ewarn "USE=savedconfig is active. You must handle file collisions manually."
+ fi
+
+ # Make sure /boot is available if needed.
+ use initramfs && mount-boot_pkg_preinst
+}
+
+pkg_postinst() {
+ elog "If you are only interested in particular firmware files, edit the saved"
+ elog "configfile and remove those that you do not want."
+
+ local ver
+ for ver in ${REPLACING_VERSIONS}; do
+ if ver_test ${ver} -lt 20190514; then
+ elog
+ elog 'Starting with version 20190514, installation of many firmware'
+ elog 'files is controlled by USE flags. Please review your USE flag'
+ elog 'and package.license settings if you are missing some files.'
+ break
+ fi
+ done
+
+ # Don't forget to umount /boot if it was previously mounted by us.
+ use initramfs && mount-boot_pkg_postinst
+}
+
+pkg_prerm() {
+ # Make sure /boot is mounted so that we can remove /boot/amd-uc.img!
+ use initramfs && mount-boot_pkg_prerm
+}
+
+pkg_postrm() {
+ # Don't forget to umount /boot if it was previously mounted by us.
+ use initramfs && mount-boot_pkg_postrm
+}