Add a new recipe which installs the WiLink firmware from the
official ti-linux-firmware repo.

This is required for supporting the Wireless functionaliy on
the am64xx-sk board.

Signed-off-by: Nikhil Devshatwar <nikhil...@ti.com>
---

Notes:
    Changes from v1:
    * Only install files that are required

As confirmed with Kishon offline, we only need single firmware binary.
Others are not required.

 recipes-bsp/wl-fw/wl-fw_git.bb | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 recipes-bsp/wl-fw/wl-fw_git.bb

diff --git a/recipes-bsp/wl-fw/wl-fw_git.bb b/recipes-bsp/wl-fw/wl-fw_git.bb
new file mode 100644
index 00000000..2e063af5
--- /dev/null
+++ b/recipes-bsp/wl-fw/wl-fw_git.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "Firmware files for Wilink"
+LICENSE = "TI-TSPA"
+LIC_FILES_CHKSUM = 
"file://LICENCE.ti-connectivity;md5=c5e02be633f1499c109d1652514d85ec"
+
+PV = "7.3+git${SRCPV}"
+
+SRCREV = "b66ee9ae020c31d7138f0af38518823bb4f5791e"
+BRANCH = "ti-linux-firmware"
+SRC_URI = 
"git://git.ti.com/processor-firmware/ti-linux-firmware.git;branch=${BRANCH}"
+
+COMPATIBLE_MACHINE = "k3"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+CLEANBROKEN = "1"
+
+S = "${WORKDIR}/git"
+
+TARGET = "wl18xx-fw-4.bin"
+
+do_compile() {
+    :
+}
+
+do_install() {
+    install -d ${D}${base_libdir}/firmware/ti-connectivity
+       for f in ${TARGET}; do
+               install -m 0644 ${S}/ti-connectivity/$f 
${D}${base_libdir}/firmware/ti-connectivity/$f
+       done
+}
+
+FILES_${PN} += "${base_libdir}/firmware/ti-connectivity/*"
-- 
2.17.1

_______________________________________________
meta-arago mailing list
meta-arago@arago-project.org
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to