Skip to contentSkip to conversation

Split firmware name into target and source

PATCH Superseded Ryan Eatmon 1 participant 1 message Feb 9, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Split firmware name into target and source

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.

---
 recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb +4 -2
index 28f3440e..0c432de2 100644
@@ -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] = "${base_libdir}/firmware/${TARGET_WAVE521C}"
 ALTERNATIVE_TARGET[wave521c_codec_fw.bin] = "${base_libdir}/firmware/cnm/${TARGET_WAVE521C}"
@@ -31,7 +33,7 @@ ALTERNATIVE_${PN}_j7 = "\
 
 do_install() {
 	install -d ${D}${base_libdir}/firmware/cnm
-	install -m 0644 ${S}/cnm/${TARGET_WAVE521C} ${D}${base_libdir}/firmware/cnm/${TARGET_WAVE521C}
+	install -m 0644 ${S}/cnm/${SOURCE_WAVE521C} ${D}${base_libdir}/firmware/cnm/${TARGET_WAVE521C}
 }
 
 # make sure that lib/firmware, and all its contents are part of the package
Signature · 1 line
2.17.1