developer | de7341a | 2023-10-17 17:59:50 +0800 | [diff] [blame] | 1 | SUMMARY = "Mediatek Ethernet firmware files" |
| 2 | DESCRIPTION = "Firmware for Mediatek 2.5G phy. " |
| 3 | |
| 4 | LICENSE = "CLOSED" |
| 5 | |
developer | 33759cf | 2024-10-11 15:19:50 +0800 | [diff] [blame^] | 6 | SRC_URI_mt7988 += " \ |
| 7 | file://mt7988 \ |
| 8 | " |
| 9 | SRC_URI_mt7987 += " \ |
| 10 | file://mt7987 \ |
developer | de7341a | 2023-10-17 17:59:50 +0800 | [diff] [blame] | 11 | " |
| 12 | S = "${WORKDIR}" |
| 13 | |
| 14 | inherit allarch |
| 15 | |
developer | 33759cf | 2024-10-11 15:19:50 +0800 | [diff] [blame^] | 16 | do_install_mt7988() { |
developer | 5a91519 | 2023-12-21 13:04:36 +0800 | [diff] [blame] | 17 | install -d ${D}/${base_libdir}/firmware/mediatek/mt7988/ |
developer | 33759cf | 2024-10-11 15:19:50 +0800 | [diff] [blame^] | 18 | install -m 644 ${WORKDIR}/mt7988/* ${D}${base_libdir}/firmware/mediatek/mt7988/ |
| 19 | } |
| 20 | |
| 21 | do_install_mt7987() { |
| 22 | install -d ${D}/${base_libdir}/firmware/mediatek/mt7987/ |
| 23 | install -m 644 ${WORKDIR}/mt7987/* ${D}${base_libdir}/firmware/mediatek/mt7987/ |
developer | de7341a | 2023-10-17 17:59:50 +0800 | [diff] [blame] | 24 | } |
| 25 | |
developer | 33759cf | 2024-10-11 15:19:50 +0800 | [diff] [blame^] | 26 | FILES_${PN} += "${base_libdir}/firmware/mediatek/*" |
developer | de7341a | 2023-10-17 17:59:50 +0800 | [diff] [blame] | 27 | |
| 28 | # Make Mediatek-eth-firmware depend on all of the split-out packages. |
| 29 | python populate_packages_prepend () { |
| 30 | firmware_pkgs = oe.utils.packages_filter_out_system(d) |
| 31 | d.appendVar('RDEPENDS_mediatek-eth-firmware', ' ' + ' '.join(firmware_pkgs)) |
| 32 | } |