[rdkb][common][bsp][Add mt7988d support]
[Description]
Add mt7988d support
[Release-log]
Change-Id: I58db282555c9febbb964c4ba5ef0f87a5fd1df1c
diff --git a/recipes-bsp/mediatek-eth-firmware/mediatek-eth-firmware.bb b/recipes-bsp/mediatek-eth-firmware/mediatek-eth-firmware.bb
new file mode 100644
index 0000000..8962af2
--- /dev/null
+++ b/recipes-bsp/mediatek-eth-firmware/mediatek-eth-firmware.bb
@@ -0,0 +1,26 @@
+SUMMARY = "Mediatek Ethernet firmware files"
+DESCRIPTION = "Firmware for Mediatek 2.5G phy. "
+
+LICENSE = "CLOSED"
+
+SRC_URI = " \
+ file://mediatek-2p5ge-phy-dmb.bin \
+ file://mediatek-2p5ge-phy-pmb.bin \
+"
+S = "${WORKDIR}"
+
+inherit allarch
+
+do_install() {
+ install -d ${D}/${base_libdir}/firmware/
+ install -m 644 ${WORKDIR}/mediatek-2p5ge-phy-dmb.bin ${D}${base_libdir}/firmware/
+ install -m 644 ${WORKDIR}/mediatek-2p5ge-phy-pmb.bin ${D}${base_libdir}/firmware/
+}
+
+FILES_${PN} += "${base_libdir}/firmware/*"
+
+# Make Mediatek-eth-firmware depend on all of the split-out packages.
+python populate_packages_prepend () {
+ firmware_pkgs = oe.utils.packages_filter_out_system(d)
+ d.appendVar('RDEPENDS_mediatek-eth-firmware', ' ' + ' '.join(firmware_pkgs))
+}