summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/imx-dsp/imx-dsp_2.1.10.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/imx-dsp/imx-dsp_2.1.10.bb')
-rw-r--r--recipes-multimedia/imx-dsp/imx-dsp_2.1.10.bb58
1 files changed, 58 insertions, 0 deletions
diff --git a/recipes-multimedia/imx-dsp/imx-dsp_2.1.10.bb b/recipes-multimedia/imx-dsp/imx-dsp_2.1.10.bb
new file mode 100644
index 00000000..4e42110b
--- /dev/null
+++ b/recipes-multimedia/imx-dsp/imx-dsp_2.1.10.bb
@@ -0,0 +1,58 @@
1# Copyright 2017-2022,2024 NXP
2
3DESCRIPTION = "i.MX DSP Wrapper, Firmware Binary, Codec Libraries"
4LICENSE = "Proprietary"
5LIC_FILES_CHKSUM = "file://COPYING;md5=c0fb372b5d7f12181de23ef480f225f3"
6
7inherit fsl-eula-unpack autotools pkgconfig
8
9IMX_SRCREV_ABBREV = "ea4fe3f"
10SRC_URI = "${FSL_MIRROR}/${BP}-${IMX_SRCREV_ABBREV}.bin;fsl-eula=true"
11
12S = "${WORKDIR}/${BP}-${IMX_SRCREV_ABBREV}"
13
14SRC_URI[sha256sum] = "fc6e6a7c2417730b39eeddc26606c3d58a8f5d0a1521f44bbbd505657046858b"
15
16EXTRA_OECONF = " \
17 -datadir=${base_libdir}/firmware \
18 --bindir=/unit_tests \
19 ${@bb.utils.contains('TUNE_FEATURES', 'aarch64', '--enable-armv8', '', d)} \
20"
21
22HIFI4_PLATFORM ?= "HIFI4_PLATFORM_IS_UNDEFINED"
23HIFI4_PLATFORM:mx8qm-nxp-bsp = "imx8qmqxp"
24HIFI4_PLATFORM:mx8qxp-nxp-bsp = "imx8qmqxp"
25HIFI4_PLATFORM:mx8dx-nxp-bsp = "imx8qmqxp"
26HIFI4_PLATFORM:mx8mp-nxp-bsp = "imx8mp"
27HIFI4_PLATFORM:mx8ulp-nxp-bsp = "imx8ulp"
28
29UNSUPPORTED_TESTS = "dsp_tflm"
30UNSUPPORTED_TESTS:mx8ulp-nxp-bsp = ""
31
32do_install:append () {
33 # Remove firmware not for this platform
34 find ${D}/${base_libdir}/firmware/imx/dsp -name hifi4_*.bin -not -name *${HIFI4_PLATFORM}* -exec rm {} \;
35 # Set the expected generic name for the firmware
36 mv ${D}/${base_libdir}/firmware/imx/dsp/hifi4_${HIFI4_PLATFORM}.bin ${D}/${base_libdir}/firmware/imx/dsp/hifi4.bin
37 # Remove unit tests not for this platform
38 for unsupported_test in ${UNSUPPORTED_TESTS}; do
39 find ${D}/unit_tests/DSP -name $unsupported_test* -exec rm {} \;
40 done
41}
42
43FILES:${PN} = "${libdir}/imx-mm/audio-codec/dsp \
44 ${libdir}/imx-mm/audio-codec/wrap \
45 ${base_libdir}/firmware/imx/dsp \
46 /unit_tests \
47"
48RDEPENDS:${PN} += "imx-dsp-codec-ext"
49
50INSANE_SKIP:${PN} = "already-stripped arch ldflags dev-so"
51
52# Fix strip command failed: 'Unable to recognise the format of the input file'
53INHIBIT_PACKAGE_STRIP = "1"
54INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
55INHIBIT_SYSROOT_STRIP = "1"
56
57PACKAGE_ARCH = "${MACHINE_ARCH}"
58COMPATIBLE_MACHINE = "(mx8qm-nxp-bsp|mx8qxp-nxp-bsp|mx8dx-nxp-bsp|mx8mp-nxp-bsp|mx8ulp-nxp-bsp)"