diff options
Diffstat (limited to 'meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb')
-rw-r--r-- | meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb b/meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb new file mode 100644 index 00000000..1a2e911c --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb @@ -0,0 +1,29 @@ +SUMMARY = "Chips&Media codec firmware files" + +require recipes-bsp/ti-linux-fw/ti-linux-fw.inc + +inherit update-alternatives + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENCE.cnm;md5=93b67e6bac7f8fec22b96b8ad0a1a9d0" + +PV = "${CNM_WAVE521_FW_VERSION}" +PR = "${INC_PR}.1" + +COMPATIBLE_MACHINE = "j721s2|j784s4|j722s|am62axx|am62pxx" + +TARGET_WAVE521C = "wave521c_codec_fw.bin" + +SOURCE_WAVE521C = "wave521c_k3_codec_fw.bin" + +ALTERNATIVE_LINK_NAME[wave521c_codec_fw.bin] = "${nonarch_base_libdir}/firmware/${TARGET_WAVE521C}" +ALTERNATIVE_TARGET[wave521c_codec_fw.bin] = "${nonarch_base_libdir}/firmware/cnm/${TARGET_WAVE521C}" +ALTERNATIVE_PRIORITY = "10" + +# Set up names for the firmwares +ALTERNATIVE:${PN} = "wave521c_codec_fw.bin" + +do_install() { + install -d ${D}${nonarch_base_libdir}/firmware/cnm + install -m 0644 ${S}/cnm/${SOURCE_WAVE521C} ${D}${nonarch_base_libdir}/firmware/cnm/${TARGET_WAVE521C} +} |