From: Nishanth Menon <[email protected]> Add firmware recipe to add the Wave521cl firmware pieces in for j7 platform.
Signed-off-by: Nishanth Menon <[email protected]> Signed-off-by: Ryan Eatmon <[email protected]> --- recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb | 41 ++++++++++++++++++++++ recipes-bsp/ti-linux-fw/ti-linux-fw.inc | 1 + recipes-kernel/linux/kernel-rdepends.inc | 3 ++ 3 files changed, 45 insertions(+) create mode 100644 recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb diff --git a/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb b/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb new file mode 100644 index 00000000..6a36d733 --- /dev/null +++ b/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb @@ -0,0 +1,41 @@ +SUMMARY = "Chips&Media codec firmware files" + +require recipes-bsp/ti-linux-fw/ti-linux-fw.inc + +inherit deploy +inherit update-alternatives + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENCE.cnm;md5=93b67e6bac7f8fec22b96b8ad0a1a9d0" + +PV = "${CNM_WAVE521_FW_VERSION}" +PR = "${INC_PR}.0" + +CLEANBROKEN = "1" + +COMPATIBLE_MACHINE = "j7" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +S = "${WORKDIR}/git" +TARGET_WAVE215C = "wave521c_codec_fw.bin" + +ALTERNATIVE_LINK_NAME[wave521c_codec_fw.bin] = "${base_libdir}/firmware/${TARGET_WAVE215C}" +ALTERNATIVE_TARGET[wave521c_codec_fw.bin] = "${base_libdir}/firmware/cnm/${TARGET_WAVE215C}" +ALTERNATIVE_PRIORITY = "10" + +# Set up names for the firmwares +ALTERNATIVE_${PN}_j7 = "\ + wave521c_codec_fw.bin" + +do_install() { + install -d ${D}${base_libdir}/firmware/cnm + install -m 0644 ${S}/cnm/${TARGET_WAVE215C} ${D}${base_libdir}/firmware/cnm/${TARGET_WAVE215C} +} + +# make sure that lib/firmware, and all its contents are part of the package +FILES_${PN} = "${base_libdir}/firmware" + +# we don't want to configure and build the source code +do_compile[noexec] = "1" +do_configure[noexec] = "1" diff --git a/recipes-bsp/ti-linux-fw/ti-linux-fw.inc b/recipes-bsp/ti-linux-fw/ti-linux-fw.inc index f1607686..9bd2d0a8 100644 --- a/recipes-bsp/ti-linux-fw/ti-linux-fw.inc +++ b/recipes-bsp/ti-linux-fw/ti-linux-fw.inc @@ -17,6 +17,7 @@ PRUETH_FW_AM65X_SR2_VERSION = "02.02.09.07" GOODIX_FW_VERSION = "1.0.0.0" CADENCE_MHDP_FW_VERSION = "1.2.17" IMG_DEC_FW_VERSION = "1.0" +CNM_WAVE521_FW_VERSION = "1.0.00" TI_LINUX_FW_SRCREV ?= "c96a734a059889e571dcf30c0638157c690a6e6e" SRCREV = "${TI_LINUX_FW_SRCREV}" diff --git a/recipes-kernel/linux/kernel-rdepends.inc b/recipes-kernel/linux/kernel-rdepends.inc index 76b7a508..2a6302af 100644 --- a/recipes-kernel/linux/kernel-rdepends.inc +++ b/recipes-kernel/linux/kernel-rdepends.inc @@ -42,3 +42,6 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j7 = " cadence-mhdp-fw" # Add run-time dependency for Video Decoding firmware to the rootfs RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j7 = " vxd-dec-fw" + +# Add run-time dependency for Chips&Media Wave521 firmware to the rootfs +RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j7 = " cnm-wave-fw" -- 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13493): https://lists.yoctoproject.org/g/meta-arago/message/13493 Mute This Topic: https://lists.yoctoproject.org/mt/88865247/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
