- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
59 lines
2.1 KiB
BlitzBasic
59 lines
2.1 KiB
BlitzBasic
# Copyright 2017-2022,2024 NXP
|
|
|
|
DESCRIPTION = "i.MX DSP Wrapper, Firmware Binary, Codec Libraries"
|
|
LICENSE = "Proprietary"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=ca53281cc0caa7e320d4945a896fb837"
|
|
|
|
inherit fsl-eula-unpack autotools pkgconfig
|
|
|
|
IMX_SRCREV_ABBREV = "a3074e2"
|
|
SRC_URI = "${FSL_MIRROR}/${BP}-${IMX_SRCREV_ABBREV}.bin;fsl-eula=true"
|
|
|
|
S = "${WORKDIR}/${BP}-${IMX_SRCREV_ABBREV}"
|
|
|
|
SRC_URI[sha256sum] = "1f763c21f20abfbb013a0d1acb5846fec55241e9fa8c8aae47fd95b007d800fe"
|
|
|
|
EXTRA_OECONF = " \
|
|
-datadir=${base_libdir}/firmware \
|
|
--bindir=/unit_tests \
|
|
${@bb.utils.contains('TUNE_FEATURES', 'aarch64', '--enable-armv8', '', d)} \
|
|
"
|
|
|
|
HIFI4_PLATFORM ?= "HIFI4_PLATFORM_IS_UNDEFINED"
|
|
HIFI4_PLATFORM:mx8qm-nxp-bsp = "imx8qmqxp"
|
|
HIFI4_PLATFORM:mx8qxp-nxp-bsp = "imx8qmqxp"
|
|
HIFI4_PLATFORM:mx8dx-nxp-bsp = "imx8qmqxp"
|
|
HIFI4_PLATFORM:mx8mp-nxp-bsp = "imx8mp"
|
|
HIFI4_PLATFORM:mx8ulp-nxp-bsp = "imx8ulp"
|
|
|
|
UNSUPPORTED_TESTS = "dsp_tflm"
|
|
UNSUPPORTED_TESTS:mx8ulp-nxp-bsp = ""
|
|
|
|
do_install:append () {
|
|
# Remove firmware not for this platform
|
|
find ${D}/${base_libdir}/firmware/imx/dsp -name hifi4_*.bin -not -name *${HIFI4_PLATFORM}* -exec rm {} \;
|
|
# Set the expected generic name for the firmware
|
|
mv ${D}/${base_libdir}/firmware/imx/dsp/hifi4_${HIFI4_PLATFORM}.bin ${D}/${base_libdir}/firmware/imx/dsp/hifi4.bin
|
|
# Remove unit tests not for this platform
|
|
for unsupported_test in ${UNSUPPORTED_TESTS}; do
|
|
find ${D}/unit_tests/DSP -name $unsupported_test* -exec rm {} \;
|
|
done
|
|
}
|
|
|
|
FILES:${PN} = "${libdir}/imx-mm/audio-codec/dsp \
|
|
${libdir}/imx-mm/audio-codec/wrap \
|
|
${base_libdir}/firmware/imx/dsp \
|
|
/unit_tests \
|
|
"
|
|
RDEPENDS:${PN} += "imx-dsp-codec-ext"
|
|
|
|
INSANE_SKIP:${PN} = "already-stripped arch ldflags dev-so"
|
|
|
|
# Fix strip command failed: 'Unable to recognise the format of the input file'
|
|
INHIBIT_PACKAGE_STRIP = "1"
|
|
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
|
INHIBIT_SYSROOT_STRIP = "1"
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
COMPATIBLE_MACHINE = "(mx8qm-nxp-bsp|mx8qxp-nxp-bsp|mx8dx-nxp-bsp|mx8mp-nxp-bsp|mx8ulp-nxp-bsp)"
|