summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-firmware
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-22 06:30:44 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-22 06:30:44 +0000
commit5a2cecfc8661e1d3a762adf05cf8eb142cd41710 (patch)
tree341806a72603cc8845e7e1595289e7a8b9570f2a /sys-kernel/linux-firmware
parentd2bcdab82e5f5f38a8ab54026e8aa94edb1b77a6 (diff)
gentoo auto-resync : 22:12:2024 - 06:30:44HEADmaster
Diffstat (limited to 'sys-kernel/linux-firmware')
-rw-r--r--sys-kernel/linux-firmware/Manifest2
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-99999999.ebuild36
2 files changed, 14 insertions, 24 deletions
diff --git a/sys-kernel/linux-firmware/Manifest b/sys-kernel/linux-firmware/Manifest
index fb43765a3d00..e8f1a4cfd9aa 100644
--- a/sys-kernel/linux-firmware/Manifest
+++ b/sys-kernel/linux-firmware/Manifest
@@ -12,5 +12,5 @@ EBUILD linux-firmware-20241017-r3.ebuild 11151 BLAKE2B 96164e2955922808133afba98
EBUILD linux-firmware-20241110.ebuild 11111 BLAKE2B 510aac5b9b833cd7ad2d15079a6f7cb0cf4a3514a1ee4e58c032c47e96cd0e24eec58787048925a42bf1197f98c4655d96513d972b6491389c256ee0d1bf34a8 SHA512 b782be258a2f17c66896e89d4cb5f2b64e5c005261f3f94ef5d8b36e6856c2f973a1bf78867cfcc9af2be4142e52f68183bb586c79a63ce627b33b87bc9ab2ee
EBUILD linux-firmware-20241210-r1.ebuild 11111 BLAKE2B 048407693153ffa3aed53d8a0b04ab35c0c2d9bdd6d24525edc55550c4ea620211ce28d5e187aaba24f4f9e13c15aaea2ec1f64a454744973330131ebca5ab9c SHA512 18a7069eccc5666ed08bab461a3bfa9b19d270fd28ee7a0392efa4f1d1502dcb50d4b6502b6e67767af526cff83c5ae9d759588435c84fc8b8c0762957fa5d3b
EBUILD linux-firmware-20241210.ebuild 11111 BLAKE2B 510aac5b9b833cd7ad2d15079a6f7cb0cf4a3514a1ee4e58c032c47e96cd0e24eec58787048925a42bf1197f98c4655d96513d972b6491389c256ee0d1bf34a8 SHA512 b782be258a2f17c66896e89d4cb5f2b64e5c005261f3f94ef5d8b36e6856c2f973a1bf78867cfcc9af2be4142e52f68183bb586c79a63ce627b33b87bc9ab2ee
-EBUILD linux-firmware-99999999.ebuild 11375 BLAKE2B aa565e1987a561216363d1166c7d41a3a25d714472c82a0d38c95c44db5d6d4deef3d50a45abd38915aa895fc071b54becd178d09dd23a7f2d80b2ed7d3a80e5 SHA512 829fc5efe1107e7090c1d7fc58248886f672a24c15b4e02944a97b6f948bcc69c4defebbaa42a82b283639b7bf942ee5c45315aa3b1190f582ec1ed75726b937
+EBUILD linux-firmware-99999999.ebuild 10907 BLAKE2B 1ad8f660e98921b254be65188d8071903a1ccaf4df7a3b6544bc4192bac5b5932f3e9deef61cc8e3890096c74ab49cdd60d4210b1abcd060c92a257387d01243 SHA512 d7b9c180c29fbeb0bab22ccd0eb3619b3acc34746aacf843cd1a9bf1906c4b38c116d04d359af39d368734854ecfcf45f76d203254e510c0612c662f8855aed6
MISC metadata.xml 1289 BLAKE2B 109336d30e5ec5fb5e679cff9b31e6f69c0b4f629e2aaf4d0d7b6c0db78c1ddcbbb0b283f724f2758207324b622c2af9dfe15874ab34b34876e3e4f58cb5ced6 SHA512 9b925b26bb58a39360ab5ff3cdd7d88bd489645e73f101209f0813a0b926b15dae34f28db05ff6419a0a62fab2ac84ae0546b5007ce17ad3611188bf7aeda3e5
diff --git a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
index f49e8118b8be..2e4486362db9 100644
--- a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
@@ -72,6 +72,9 @@ IDEPEND="
"
QA_PREBUILT="*"
+PATCHES=(
+ "${FILESDIR}"/${PN}-copy-firmware-r7.patch
+)
pkg_pretend() {
if use initramfs; then
@@ -231,6 +234,16 @@ src_install() {
local FW_OPTIONS=( "-v" )
git config --global --add safe.directory "${S}" || die
+ local files_to_keep=
+
+ if use savedconfig; then
+ if [[ -s "${S}/${PN}.conf" ]]; then
+ files_to_keep="${T}/files_to_keep.lst"
+ grep -v '^#' "${S}/${PN}.conf" 2>/dev/null > "${files_to_keep}" || die
+ [[ -s "${files_to_keep}" ]] || die "grep failed, empty config file?"
+ FW_OPTIONS+=( "--firmware-list" "${files_to_keep}" )
+ fi
+ fi
if use compress-xz; then
FW_OPTIONS+=( "--xz" )
@@ -296,29 +309,6 @@ src_install() {
einfo "Removing broken symlinks ..."
find * -xtype l -print -delete || die
- if use savedconfig; then
- if [[ -s "${S}/${PN}.conf" ]]; then
- local files_to_keep="${T}/files_to_keep.lst"
- grep -v '^#' "${S}/${PN}.conf" 2>/dev/null > "${files_to_keep}" || die
- [[ -s "${files_to_keep}" ]] || die "grep failed, empty config file?"
-
- einfo "Applying USE=savedconfig; Removing all files not listed in config ..."
- find ! -type d -printf "%P\n" \
- | grep -Fvx -f "${files_to_keep}" \
- | xargs -d '\n' --no-run-if-empty rm -v
-
- if [[ ${PIPESTATUS[0]} -ne 0 ]]; then
- die "Find failed to print installed files"
- elif [[ ${PIPESTATUS[1]} -eq 2 ]]; then
- # grep returns exit status 1 if no lines were selected
- # which is the case when we want to keep all files
- die "Grep failed to select files to keep"
- elif [[ ${PIPESTATUS[2]} -ne 0 ]]; then
- die "Failed to remove files not listed in config"
- fi
- fi
- fi
-
# remove empty directories, bug #396073
find -type d -empty -delete || die