From: Ryan Eatmon <reat...@ti.com>

We need to control both the source name of the firmware and
the target name, so split the current variable into two and
update the install command.

Signed-off-by: Ryan Eatmon <reat...@ti.com>
Signed-off-by: Denys Dmytriyenko <de...@konsulko.com>
---
 meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 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
index a35370c7..50058b97 100644
--- 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
@@ -19,7 +19,9 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 S = "${WORKDIR}/git"
 TARGET_WAVE521C = "wave521c_codec_fw.bin"
-TARGET_WAVE521C:j721s2-evm = "wave521c_j721s2_codec_fw.bin"
+
+SOURCE_WAVE521C = "wave521c_codec_fw.bin"
+SOURCE_WAVE521C:j721s2-evm = "wave521c_j721s2_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}"
@@ -31,7 +33,7 @@ ALTERNATIVE_${PN}:j7 = "\
 
 do_install() {
        install -d ${D}${nonarch_base_libdir}/firmware/cnm
-       install -m 0644 ${S}/cnm/${TARGET_WAVE521C} 
${D}${nonarch_base_libdir}/firmware/cnm/${TARGET_WAVE521C}
+       install -m 0644 ${S}/cnm/${SOURCE_WAVE521C} 
${D}${nonarch_base_libdir}/firmware/cnm/${TARGET_WAVE521C}
 }
 
 # make sure that lib/firmware, and all its contents are part of the package
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14468): 
https://lists.yoctoproject.org/g/meta-ti/message/14468
Mute This Topic: https://lists.yoctoproject.org/mt/89310698/21656
Group Owner: meta-ti+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to