Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Linux kernel firmware files from Raspbian distribution" |
| 2 | DESCRIPTION = "Updated firmware files for RaspberryPi hardware. \ |
| 3 | RPi-Distro obtains these directly from Cypress; they are not submitted \ |
| 4 | to linux-firmware for general use." |
| 5 | HOMEPAGE = "https://github.com/RPi-Distro/firmware-nonfree" |
| 6 | SECTION = "kernel" |
| 7 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 8 | LICENSE = "GPL-2.0-only & binary-redist-Cypress-rpidistro & Synaptics-rpidistro" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 9 | LIC_FILES_CHKSUM = "\ |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 10 | file://debian/copyright;md5=03475efdcf4c53c8f2d8fb4bc1fc6965 \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | " |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 12 | # Where these are no common licenses, set NO_GENERIC_LICENSE so that the |
| 13 | # license files will be copied from the fetched source. |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 14 | NO_GENERIC_LICENSE[binary-redist-Cypress-rpidistro] = "debian/copyright" |
| 15 | NO_GENERIC_LICENSE[Synaptics-rpidistro] = "debian/copyright" |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 16 | LICENSE_FLAGS = "synaptics-killswitch" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 17 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 18 | SRC_URI = "git://github.com/RPi-Distro/firmware-nonfree;branch=bullseye;protocol=https \ |
| 19 | file://0001-Default-43455-firmware-to-standard-variant.patch \ |
| 20 | " |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 21 | SRCREV = "2c3a8701193ba23d0ef85cdf0d0c9e47baf03dfc" |
| 22 | PV = "20230210-5_bpo11+1" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 23 | S = "${WORKDIR}/git" |
| 24 | |
| 25 | inherit allarch |
| 26 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 27 | do_configure[noexec] = "1" |
| 28 | do_compile[noexec] = "1" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 29 | |
| 30 | do_install() { |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 31 | install -d ${D}${nonarch_base_libdir}/firmware/brcm ${D}${nonarch_base_libdir}/firmware/cypress |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 32 | |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 33 | cp debian/copyright ${D}${nonarch_base_libdir}/firmware/copyright.firmware-nonfree-rpidistro |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 34 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 35 | for fw in \ |
| 36 | brcmfmac43430-sdio \ |
| 37 | brcmfmac43436-sdio \ |
| 38 | brcmfmac43436s-sdio \ |
| 39 | brcmfmac43455-sdio \ |
| 40 | brcmfmac43456-sdio; do |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 41 | cp -R --no-dereference --preserve=mode,links -v debian/config/brcm80211/brcm/${fw}.* ${D}${nonarch_base_libdir}/firmware/brcm/ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 42 | done |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 43 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 44 | cp -R --no-dereference --preserve=mode,links -v debian/config/brcm80211/cypress/* ${D}${nonarch_base_libdir}/firmware/cypress/ |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 45 | |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 46 | rm ${D}${nonarch_base_libdir}/firmware/cypress/README.txt |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | PACKAGES = "\ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 50 | ${PN}-bcm43430 \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 51 | ${PN}-bcm43436 \ |
| 52 | ${PN}-bcm43436s \ |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 53 | ${PN}-bcm43439 \ |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 54 | ${PN}-bcm43455 \ |
| 55 | ${PN}-bcm43456 \ |
| 56 | ${PN}-license \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 57 | " |
| 58 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 59 | LICENSE:${PN}-bcm43430 = "binary-redist-Cypress-rpidistro" |
| 60 | LICENSE:${PN}-bcm43436 = "Synaptics-rpidistro" |
| 61 | LICENSE:${PN}-bcm43436s = "Synaptics-rpidistro" |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 62 | LICENSE:${PN}-bcm43439 = "Synaptics-rpidistro" |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 63 | LICENSE:${PN}-bcm43455 = "binary-redist-Cypress-rpidistro" |
| 64 | LICENSE:${PN}-bcm43456 = "Synaptics-rpidistro" |
| 65 | LICENSE:${PN}-license = "GPL-2.0-only" |
| 66 | |
| 67 | FILES:${PN}-bcm43430 = " \ |
| 68 | ${nonarch_base_libdir}/firmware/brcm/brcmfmac43430* \ |
| 69 | ${nonarch_base_libdir}/firmware/cypress/cyfmac43430-sdio.bin \ |
| 70 | ${nonarch_base_libdir}/firmware/cypress/cyfmac43430-sdio.clm_blob \ |
| 71 | " |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 72 | FILES:${PN}-bcm43436 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43436-*" |
| 73 | FILES:${PN}-bcm43436s = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43436s*" |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 74 | FILES:${PN}-bcm43439 = "${nonarch_base_libdir}/firmware/cypress/43439A0-7.95.49.00.combined" |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 75 | FILES:${PN}-bcm43455 = " \ |
| 76 | ${nonarch_base_libdir}/firmware/brcm/brcmfmac43455* \ |
| 77 | ${nonarch_base_libdir}/firmware/cypress/cyfmac43455-sdio* \ |
| 78 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 79 | FILES:${PN}-bcm43456 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43456*" |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 80 | FILES:${PN}-license = "${nonarch_base_libdir}/firmware/copyright.firmware-nonfree-rpidistro" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 81 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 82 | RDEPENDS:${PN}-bcm43430 += "${PN}-license" |
| 83 | RDEPENDS:${PN}-bcm43436 += "${PN}-license" |
| 84 | RDEPENDS:${PN}-bcm43436s += "${PN}-license" |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 85 | RDEPENDS:${PN}-bcm43439 += "${PN}-license" |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 86 | RDEPENDS:${PN}-bcm43455 += "${PN}-license" |
| 87 | RDEPENDS:${PN}-bcm43456 += "${PN}-license" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 88 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 89 | RCONFLICTS:${PN}-bcm43430 = "linux-firmware-raspbian-bcm43430" |
| 90 | RCONFLICTS:${PN}-bcm43436 = "linux-firmware-bcm43436" |
| 91 | RCONFLICTS:${PN}-bcm43436s = "linux-firmware-bcm43436s" |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 92 | RCONFLICTS:${PN}-bcm43439 = "linux-firmware-bcm43439" |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 93 | RCONFLICTS:${PN}-bcm43455 = "linux-firmware-bcm43455" |
| 94 | RCONFLICTS:${PN}-bcm43456 = "linux-firmware-bcm43456" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 95 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 96 | RREPLACES:${PN}-bcm43430 = "linux-firmware-bcm43430" |
| 97 | RREPLACES:${PN}-bcm43436 = "linux-firmware-bcm43436" |
| 98 | RREPLACES:${PN}-bcm43436s = "linux-firmware-bcm43436s" |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 99 | RREPLACES:${PN}-bcm43439 = "linux-firmware-bcm43439" |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 100 | RREPLACES:${PN}-bcm43455 = "linux-firmware-bcm43455" |
| 101 | RREPLACES:${PN}-bcm43456 = "linux-firmware-bcm43456" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 102 | |
| 103 | # Firmware files are generally not run on the CPU, so they can be |
| 104 | # allarch despite being architecture specific |
| 105 | INSANE_SKIP = "arch" |