hardknott: recipes-multimedia: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Add new recipes for imx8 platforms Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
parent
6425eaaf83
commit
277a7be7a4
|
|
@ -0,0 +1,21 @@
|
|||
# Copyright 2018-2021 NXP
|
||||
|
||||
DESCRIPTION = "i.MX DSP Codec Wrapper and Lib owned by NXP"
|
||||
LICENSE = "Proprietary"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=03bcadc8dc0a788f66ca9e2b89f56c6f"
|
||||
|
||||
inherit fsl-eula-unpack autotools pkgconfig
|
||||
|
||||
SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true"
|
||||
|
||||
SRC_URI[md5sum] = "9e1d0e06f4fed47a37cb390e135f453f"
|
||||
SRC_URI[sha256sum] = "2703a9dc619a2ac32352d65cfa58f8217e65abcabd33b77b0be02425dc896ae2"
|
||||
|
||||
# Fix strip command failed: 'Unable to recognise the format of the input file'
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
INHIBIT_SYSROOT_STRIP = "1"
|
||||
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
||||
INSANE_SKIP_${PN} = "arch dev-so"
|
||||
|
||||
FILES_${PN} += "${libdir}/imx-mm/audio-codec ${datadir}/imx-mm"
|
||||
COMPATIBLE_MACHINE = "(mx8qm|mx8qxp|mx8mp|mx8ulp)"
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
# Copyright 2017-2021 NXP
|
||||
|
||||
DESCRIPTION = "i.MX DSP Wrapper, Firmware Binary, Codec Libraries"
|
||||
LICENSE = "Proprietary"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=03bcadc8dc0a788f66ca9e2b89f56c6f"
|
||||
|
||||
inherit fsl-eula-unpack autotools pkgconfig
|
||||
|
||||
SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true"
|
||||
|
||||
SRC_URI[md5sum] = "238d3f0256573ca657228d7090bcb7d3"
|
||||
SRC_URI[sha256sum] = "13f67f267d6d33e8be2a6c258a46cde3667258ac86435776cbf1a370de611476"
|
||||
|
||||
EXTRA_OECONF = "-datadir=${base_libdir}/firmware --bindir=/unit_tests ${@bb.utils.contains('TUNE_FEATURES', 'aarch64', '--enable-armv8', ' ', d)}"
|
||||
|
||||
RDEPENDS_${PN} += " imx-dsp-codec-ext"
|
||||
|
||||
FILES_${PN} = "${libdir}/imx-mm/audio-codec/dsp \
|
||||
${libdir}/imx-mm/audio-codec/wrap \
|
||||
${base_libdir}/firmware/imx/dsp \
|
||||
/unit_tests \
|
||||
"
|
||||
|
||||
HIFI4_BIN ?= "hifi4_imx8qmqxp.bin"
|
||||
HIFI4_BIN_mx8qm = "hifi4_imx8qmqxp.bin"
|
||||
HIFI4_BIN_mx8qxp = "hifi4_imx8qmqxp.bin"
|
||||
HIFI4_BIN_mx8mp = "hifi4_imx8mp.bin"
|
||||
HIFI4_BIN_mx8ulp = "hifi4_imx8ulp.bin"
|
||||
|
||||
# No need to do install about fsl_unia.h & fsl_types.h, which are duplicate with the ones' in imx-codec
|
||||
do_install_append () {
|
||||
if [ -d ${D}/usr/include/imx-mm/audio-codec ]; then
|
||||
rm -rf ${D}/usr/include/imx-mm/audio-codec
|
||||
fi
|
||||
# Install different DSP Firmware according to the platform
|
||||
if [ -f ${D}/lib/firmware/imx/dsp/${HIFI4_BIN} ]; then
|
||||
# Rename DSP Firmware into hifi4.bin and remove unneeded binary
|
||||
echo "---Rename ${D}/lib/firmware/imx/dsp/${HIFI4_BIN} into ${D}/lib/firmware/imx/dsp/hifi4.bin---"
|
||||
mv ${D}/lib/firmware/imx/dsp/${HIFI4_BIN} ${D}/lib/firmware/imx/dsp/hifi4.bin
|
||||
if [ "${HIFI4_BIN}" = "hifi4_imx8mp.bin" ]; then
|
||||
echo "---Need to install hifi4_imx8mp_lpa.bin as well for i.MX8MP---"
|
||||
find ${D}/lib/firmware/imx/dsp -name hifi4_*.bin -not -name hifi4_imx8mp_lpa.bin -exec rm {} \;
|
||||
else
|
||||
find ${D}/lib/firmware/imx/dsp -name hifi4_*.bin -exec rm {} \;
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
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|mx8qxp|mx8mp|mx8ulp)"
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright 2019 NXP
|
||||
DESCRIPTION = "NXP Asynchronous Sample Rate Converter"
|
||||
LICENSE = "Proprietary"
|
||||
SECTION = "multimedia"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=72c0f70181bb6e83eee6aab8de12a9f3"
|
||||
|
||||
SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true"
|
||||
|
||||
SRC_URI[md5sum] = "d46005ee29ca603caa2e1b1e82953ff1"
|
||||
SRC_URI[sha256sum] = "e79cbf4788a86a0068bbe80c37317e3332ae76e3d5c3ff2eabd71f03121fab6a"
|
||||
|
||||
inherit fsl-eula-unpack autotools pkgconfig
|
||||
|
||||
EXTRA_OECONF = "--enable-armv8 --libdir=${libdir} --bindir=/unit_tests"
|
||||
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
INHIBIT_SYSROOT_STRIP = "1"
|
||||
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
||||
|
||||
FILES_${PN} += "/unit_tests ${datadir}/imx-mm"
|
||||
|
||||
COMPATIBLE_MACHINE = "(mx8)"
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright 2020 NXP Semiconductors
|
||||
|
||||
DESCRIPTION = "NXP PDM to PCM Software Decimation SIMD Library"
|
||||
LICENSE = "Proprietary"
|
||||
SECTION = "multimedia"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=03bcadc8dc0a788f66ca9e2b89f56c6f"
|
||||
|
||||
SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true"
|
||||
SRC_URI[md5sum] = "af01428c2971af339d0308f4aca1dac0"
|
||||
SRC_URI[sha256sum] = "d310ef581f9e6e6d726c5dc8998178b7993680b5552c45561e56ac0e927b6d9c"
|
||||
|
||||
inherit fsl-eula-unpack autotools pkgconfig
|
||||
|
||||
INSANE_SKIP_${PN} = "already-stripped"
|
||||
|
||||
FILES_${PN} += "${datadir}/imx-mm"
|
||||
|
||||
COMPATIBLE_MACHINE = "(mx8)"
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
# Copyright 2021 NXP
|
||||
|
||||
DESCRIPTION = "NXP Audio Front End (AFE) for incorporating Voice Assistants"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=7bdef19938f3503cfc4c586461f99012"
|
||||
|
||||
PV = "1.0+git${SRCPV}"
|
||||
|
||||
SRCBRANCH = "MM_04.06.03_2110_L5.10.y"
|
||||
NXPAFE_SRC ?= "git://source.codeaurora.org/external/imx/nxp-afe.git;protocol=https"
|
||||
SRC_URI = " \
|
||||
${NXPAFE_SRC};branch=${SRCBRANCH} \
|
||||
"
|
||||
|
||||
SRCREV = "7d3295d250fe34325123cc9df94902a083308a46"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS += "alsa-lib"
|
||||
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
do_compile() {
|
||||
oe_runmake clean
|
||||
oe_runmake all
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${libdir}/nxp-afe
|
||||
install -d ${D}/unit_tests/nxp-afe
|
||||
install -m 0644 ${WORKDIR}/deploy_afe/*.so.1.0 ${D}${libdir}/nxp-afe
|
||||
ln -sf -r ${D}${libdir}/nxp-afe/libdummyimpl.so.1.0 ${D}${libdir}/nxp-afe/libdummyimpl.so
|
||||
install -m 0755 ${WORKDIR}/deploy_afe/afe ${D}/unit_tests/nxp-afe
|
||||
install -m 0644 ${WORKDIR}/deploy_afe/asound.conf* ${D}/unit_tests/nxp-afe
|
||||
install -m 0644 ${WORKDIR}/deploy_afe/TODO.md ${D}/unit_tests/nxp-afe
|
||||
}
|
||||
|
||||
FILES_${PN} += "/unit_tests"
|
||||
INSANE_SKIP_${PN} += "dev-so"
|
||||
Loading…
Reference in New Issue