blob: 72f2a64c25468cfd16d177770300fafe2793d627 [file] [log] [blame]
developerde7341a2023-10-17 17:59:50 +08001SUMMARY = "Mediatek Ethernet firmware files"
2DESCRIPTION = "Firmware for Mediatek 2.5G phy. "
3
4LICENSE = "CLOSED"
5
developer33759cf2024-10-11 15:19:50 +08006SRC_URI_mt7988 += " \
7 file://mt7988 \
8"
9SRC_URI_mt7987 += " \
10 file://mt7987 \
developerde7341a2023-10-17 17:59:50 +080011"
12S = "${WORKDIR}"
13
14inherit allarch
15
developer33759cf2024-10-11 15:19:50 +080016do_install_mt7988() {
developer5a915192023-12-21 13:04:36 +080017 install -d ${D}/${base_libdir}/firmware/mediatek/mt7988/
developer33759cf2024-10-11 15:19:50 +080018 install -m 644 ${WORKDIR}/mt7988/* ${D}${base_libdir}/firmware/mediatek/mt7988/
19}
20
21do_install_mt7987() {
22 install -d ${D}/${base_libdir}/firmware/mediatek/mt7987/
23 install -m 644 ${WORKDIR}/mt7987/* ${D}${base_libdir}/firmware/mediatek/mt7987/
developerde7341a2023-10-17 17:59:50 +080024}
25
developer33759cf2024-10-11 15:19:50 +080026FILES_${PN} += "${base_libdir}/firmware/mediatek/*"
developerde7341a2023-10-17 17:59:50 +080027
28# Make Mediatek-eth-firmware depend on all of the split-out packages.
29python populate_packages_prepend () {
30 firmware_pkgs = oe.utils.packages_filter_out_system(d)
31 d.appendVar('RDEPENDS_mediatek-eth-firmware', ' ' + ' '.join(firmware_pkgs))
32}