Diff raspberrypi-wifi-ucode-20190114.1_p11 with a raspberrypi-wifi-ucode-20221012.1_p1

/usr/portage/sys-firmware/raspberrypi-wifi-ucode/raspberrypi-wifi-ucode-20221012.1_p1.ebuild 2023-10-09 14:52:35.496368502 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
DESCRIPTION="Most up-to-date uCode for the Broadcom wifi chips on Raspberry Pi SBCs"
7
HOMEPAGE="https://github.com/RPi-Distro/firmware-nonfree
7
HOMEPAGE="
8
	https://github.com/RPi-Distro/firmware-nonfree
8 9
	https://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree"
9 10
MY_PN=firmware-nonfree
10
SRC_URI="https://archive.raspberrypi.org/debian/pool/main/f/${MY_PN}/${MY_PN}_$(ver_cut 1)-$(ver_cut 2)+rpt$(ver_cut 4).debian.tar.xz"
11
SRC_URI="https://archive.raspberrypi.org/debian/pool/main/f/${MY_PN}/${MY_PN}_$(ver_cut 1)-$(ver_cut 2)~bpo11+1+rpt$(ver_cut 4).debian.tar.xz"
11 12
S="${WORKDIR}"
12 13

  
13 14
LICENSE="Broadcom"
14 15
SLOT="0"
15 16
KEYWORDS="arm arm64"
16 17

  
17
RDEPEND="!sys-kernel/linux-firmware[-savedconfig]"
18
RDEPEND="
19
	net-wireless/wireless-regdb
20
	!sys-kernel/linux-firmware[-savedconfig]
21
"
18 22

  
19 23
pkg_pretend() {
20 24
	local -a BADFILES=()
......
54 58
	fi
55 59
}
56 60

  
57
src_prepare() {
58
	default
59
	eapply -p1 debian/patches/sdio-txt-files.patch
61
src_configure() {
62
	unlink "${S}"/debian/config/brcm80211/brcm/brcmfmac43455-sdio.bin || die
63
	ln -rs \
64
		"${S}"/debian/config/brcm80211/cypress/cyfmac43455-sdio-standard.bin \
65
		"${S}"/debian/config/brcm80211/brcm/brcmfmac43455-sdio.bin || die
66

  
67
	ln -frs \
68
		"${S}"/debian/config/brcm80211/cypress/cyfmac43455-sdio-standard.bin \
69
		"${S}"/debian/config/brcm80211/brcm/brcmfmac43455-sdio.raspberrypi,3-model-a-plus.bin
70

  
71
	ln -frs \
72
		"${S}"/debian/config/brcm80211/cypress/cyfmac43455-sdio-standard.bin \
73
		"${S}"/debian/config/brcm80211/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.bin
74

  
75
	ln -frs \
76
		"${S}"/debian/config/brcm80211/cypress/cyfmac43455-sdio-standard.bin \
77
		"${S}"/debian/config/brcm80211/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin
60 78
}
61 79

  
62 80
src_install() {
63 81
	insinto /lib/firmware/brcm
64
	doins brcm/*
82
	doins debian/config/brcm80211/brcm/*
83

  
84
	insinto /lib/firmware/cypress
85
	doins debian/config/brcm80211/cypress/*
86

  
65 87
	dodoc debian/changelog
66 88
}
Thank you!