diff options
| author | Flora Hu <flora.hu@nxp.com> | 2026-07-22 16:17:30 +0800 |
|---|---|---|
| committer | Flora Hu <flora.hu@nxp.com> | 2026-07-27 15:29:55 +0800 |
| commit | 38f2354437a199f41dde82e39dd1f01215dfefb2 (patch) | |
| tree | 25bdd912e44c1a48bc4fd3fd4909b1c52e3e2746 | |
| parent | f7e2763577d1664eacd6243c8a238d482e70ac73 (diff) | |
| download | meta-freescale-38f2354437a199f41dde82e39dd1f01215dfefb2.tar.gz | |
imx-sw-pdm: Migrate from pre-built binary to git source
Use Clang toolchain required by SIMD PDM-to-PCM code
Extend support to mx9 platforms (previously mx8 only)
Signed-off-by: Flora Hu <flora.hu@nxp.com>
| -rw-r--r-- | recipes-multimedia/imx-sw-pdm/imx-sw-pdm_1.0.3.bb | 23 | ||||
| -rw-r--r-- | recipes-multimedia/imx-sw-pdm/imx-sw-pdm_git.bb | 41 |
2 files changed, 41 insertions, 23 deletions
diff --git a/recipes-multimedia/imx-sw-pdm/imx-sw-pdm_1.0.3.bb b/recipes-multimedia/imx-sw-pdm/imx-sw-pdm_1.0.3.bb deleted file mode 100644 index 63cd397f8..000000000 --- a/recipes-multimedia/imx-sw-pdm/imx-sw-pdm_1.0.3.bb +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | # Copyright 2020,2023 NXP | ||
| 2 | |||
| 3 | SUMMARY = "i.MX PDM-to-PCM software decimation library" | ||
| 4 | DESCRIPTION = "NXP PDM to PCM Software Decimation SIMD Library" | ||
| 5 | HOMEPAGE = "https://www.nxp.com/" | ||
| 6 | SECTION = "multimedia" | ||
| 7 | LICENSE = "LicenseRef-Proprietary" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=63a38e9f392d8813d6f1f4d0d6fbe657" | ||
| 9 | |||
| 10 | SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" | ||
| 11 | SRC_URI[sha256sum] = "f778a7b785fc500df5573f5b810a190ddc561267b47ca54b9ddf4ae12571cfe3" | ||
| 12 | |||
| 13 | inherit fsl-eula-unpack autotools pkgconfig | ||
| 14 | |||
| 15 | INSANE_SKIP:${PN} = "already-stripped" | ||
| 16 | |||
| 17 | FILES:${PN} += "${datadir}/imx-mm" | ||
| 18 | |||
| 19 | COMPATIBLE_MACHINE = "(mx8-nxp-bsp)" | ||
| 20 | |||
| 21 | INSANE_SKIP:append:libc-musl = " file-rdeps" | ||
| 22 | |||
| 23 | RDEPENDS:${PN}:append:libc-musl = " gcompat" | ||
diff --git a/recipes-multimedia/imx-sw-pdm/imx-sw-pdm_git.bb b/recipes-multimedia/imx-sw-pdm/imx-sw-pdm_git.bb new file mode 100644 index 000000000..442f35007 --- /dev/null +++ b/recipes-multimedia/imx-sw-pdm/imx-sw-pdm_git.bb | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | # Copyright 2020,2023,2026 NXP | ||
| 2 | |||
| 3 | SUMMARY = "i.MX PDM-to-PCM software decimation library" | ||
| 4 | DESCRIPTION = "NXP PDM to PCM Software Decimation SIMD Library" | ||
| 5 | HOMEPAGE = "https://www.nxp.com/" | ||
| 6 | SECTION = "multimedia" | ||
| 7 | LICENSE = "Proprietary" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=0858ec9c7a80c4a2cf16e4f825a2cc91" | ||
| 9 | |||
| 10 | PV = "1.0.3+git" | ||
| 11 | |||
| 12 | SRCBRANCH = "MM_04.11.00_2605_L6.18.20" | ||
| 13 | PDM_SRC ?= "git://github.com/nxp-imx/imx-sw-pdm.git;protocol=https" | ||
| 14 | SRC_URI = "${PDM_SRC};branch=${SRCBRANCH}" | ||
| 15 | SRCREV = "60c4e8f3fd9d2ae67518ea2b9486834c2d49309f" | ||
| 16 | |||
| 17 | inherit pkgconfig | ||
| 18 | |||
| 19 | TOOLCHAIN = "clang" | ||
| 20 | EXTRA_OEMAKE += "CLANGCC='${CC}' CLANGCXX='${CXX}' SDKTARGETSYSROOT='${STAGING_DIR_NATIVE}'" | ||
| 21 | |||
| 22 | do_install() { | ||
| 23 | install -d ${D}${bindir}/imx-mm | ||
| 24 | install -m 0755 ${S}/release/imx-sw-pdm ${D}${bindir}/imx-mm | ||
| 25 | |||
| 26 | install -d ${D}${libdir} | ||
| 27 | install -m 0644 ${S}/release/libimxswpdm.so* ${D}${libdir} | ||
| 28 | ln -sf -r ${D}${libdir}/libimxswpdm.so.* ${D}${libdir}/libimxswpdm.so | ||
| 29 | |||
| 30 | install -d ${D}${libdir}/pkgconfig | ||
| 31 | install -m 0644 ${S}/libimxswpdm.pc ${D}${libdir}/pkgconfig | ||
| 32 | |||
| 33 | install -d ${D}${includedir}/imx-mm/audio-codec/swpdm | ||
| 34 | install -m 0644 ${S}/include/imx-swpdm.h ${D}${includedir}/imx-mm/audio-codec/swpdm | ||
| 35 | } | ||
| 36 | |||
| 37 | INSANE_SKIP:${PN} = "already-stripped" | ||
| 38 | |||
| 39 | FILES:${PN} += "${datadir}/imx-mm ${libdir}/*" | ||
| 40 | |||
| 41 | COMPATIBLE_MACHINE = "(mx8-nxp-bsp|mx9-nxp-bsp)" | ||
