summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2022-09-01 16:49:38 -0500
committerTom Hochstein <tom.hochstein@nxp.com>2022-09-02 16:51:06 -0500
commitbe58b76e47971eb4c8ce645e5ba88d7e5056a102 (patch)
tree582273eb6ae0bb3f5a65e20150dd2d1c10102f6e
parent1109c61e9e59adc31c8157fe97a042872fd81238 (diff)
downloadmeta-freescale-be58b76e47971eb4c8ce645e5ba88d7e5056a102.tar.gz
imx-dsp: Rework the install logic [LF-5799]
Replace the firmware name variable with a simpler firmware platform variable. This allows the logic that removes firmware that is not for this platform to handle any firmware, not just the main binary. Also, make the default value of the variable UNDEFINED. Then, if a new SOC is not properly added to the variable list, the mv will fail. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
-rw-r--r--recipes-multimedia/imx-dsp/imx-dsp_2.0.0.bb16
1 files changed, 10 insertions, 6 deletions
diff --git a/recipes-multimedia/imx-dsp/imx-dsp_2.0.0.bb b/recipes-multimedia/imx-dsp/imx-dsp_2.0.0.bb
index 03b22167..336bf34d 100644
--- a/recipes-multimedia/imx-dsp/imx-dsp_2.0.0.bb
+++ b/recipes-multimedia/imx-dsp/imx-dsp_2.0.0.bb
@@ -19,14 +19,18 @@ EXTRA_OECONF = " \
19 19
20RDEPENDS:${PN} += " imx-dsp-codec-ext" 20RDEPENDS:${PN} += " imx-dsp-codec-ext"
21 21
22HIFI4_BIN ?= "hifi4_imx8qmqxp.bin" 22HIFI4_PLATFORM ?= "HIFI4_PLATFORM_IS_UNDEFINED"
23HIFI4_BIN:mx8mp-nxp-bsp = "hifi4_imx8mp.bin" 23HIFI4_PLATFORM:mx8qm-nxp-bsp = "imx8qmqxp"
24HIFI4_BIN:mx8ulp-nxp-bsp = "hifi4_imx8ulp.bin" 24HIFI4_PLATFORM:mx8qxp-nxp-bsp = "imx8qmqxp"
25HIFI4_PLATFORM:mx8dx-nxp-bsp = "imx8qmqxp"
26HIFI4_PLATFORM:mx8mp-nxp-bsp = "imx8mp"
27HIFI4_PLATFORM:mx8ulp-nxp-bsp = "imx8ulp"
25 28
26do_install:append () { 29do_install:append () {
27 # Rename DSP Firmware into hifi4.bin and remove unneeded binary 30 # Remove firmware not for this platform
28 mv ${D}/lib/firmware/imx/dsp/${HIFI4_BIN} ${D}/lib/firmware/imx/dsp/hifi4.bin 31 find ${D}/${base_libdir}/firmware/imx/dsp -name hifi4_*.bin -not -name *${HIFI4_PLATFORM}* -exec rm {} \;
29 find ${D}/lib/firmware/imx/dsp -name hifi4_*.bin -exec rm {} \; 32 # Set the expected generic name for the firmware
33 mv ${D}/${base_libdir}/firmware/imx/dsp/hifi4_${HIFI4_PLATFORM}.bin ${D}/${base_libdir}/firmware/imx/dsp/hifi4.bin
30} 34}
31 35
32FILES:${PN} = "${libdir}/imx-mm/audio-codec/dsp \ 36FILES:${PN} = "${libdir}/imx-mm/audio-codec/dsp \