mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-12-14 22:45:40 +01:00
arm-compute-library: Remove recipe [LF-13034]
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
This commit is contained in:
parent
d27e860329
commit
926261afc5
|
|
@ -31,13 +31,11 @@ ML_GST_PROFILER:mx9-nxp-bsp = "gst-shark"
|
|||
# These packages don't require any acceleration
|
||||
ML_PKGS = ""
|
||||
ML_PKGS:mx8-nxp-bsp = " \
|
||||
arm-compute-library \
|
||||
onnxruntime-tests \
|
||||
pytorch \
|
||||
tensorflow-lite \
|
||||
"
|
||||
ML_PKGS:mx9-nxp-bsp = " \
|
||||
arm-compute-library \
|
||||
onnxruntime-tests \
|
||||
pytorch \
|
||||
tensorflow-lite \
|
||||
|
|
|
|||
|
|
@ -1,130 +0,0 @@
|
|||
# Copyright 2019-2023 NXP
|
||||
SUMMARY = "The ARM Computer Vision and Machine Learning library"
|
||||
DESCRIPTION = "The ARM Computer Vision and Machine Learning library is a set of functions optimised for both ARM CPUs and GPUs."
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=a436777748fb1193895c051cea504ab6 \
|
||||
file://include/half/LICENSE.txt;md5=fe7e5a4795c76b317919afd2d3da5983"
|
||||
|
||||
SRC_URI = "${ARM_COMPUTELIBRARY_SRC};branch=${SRCBRANCH}"
|
||||
ARM_COMPUTELIBRARY_SRC ?= "git://github.com/nxp-imx/arm-computelibrary-imx.git;protocol=https"
|
||||
SRCBRANCH = "imx_23.11"
|
||||
SRCREV = "69766d60896e429f27ac094010ae1f30ebbdc630"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit scons
|
||||
|
||||
PACKAGECONFIG ?= "cppthreads examples"
|
||||
|
||||
PACKAGECONFIG[Werror] = "Werror=1,Werror=0"
|
||||
PACKAGECONFIG[tests] = "benchmark_tests=1 validation_tests=1,benchmark_tests=0 validation_tests=0"
|
||||
PACKAGECONFIG[opencl] = "opencl=1,opencl=0,virtual/opencl-icd"
|
||||
PACKAGECONFIG[embed] = "embed_kernels=1,embed_kernels=0"
|
||||
PACKAGECONFIG[debug] = "debug=1,debug=0"
|
||||
PACKAGECONFIG[cppthreads] = "cppthreads=1,cppthreads=0"
|
||||
PACKAGECONFIG[examples] = "examples=1,examples=0"
|
||||
|
||||
EXTRA_OESCONS = " \
|
||||
build=cross_compile \
|
||||
os=linux \
|
||||
toolchain_prefix=' ' \
|
||||
extra_cxx_flags='-fPIC -Wno-error=strict-overflow -Wno-error=array-bounds ' \
|
||||
${PACKAGECONFIG_CONFARGS} \
|
||||
"
|
||||
EXTRA_OESCONS:append:aarch64 = " arch=arm64-v8a neon=1"
|
||||
SCONS_MAXLINELENGTH = ""
|
||||
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
# OVERRIDE: do_configure from scons.bbclass. Fixes:
|
||||
# | Unknown variables: PREFIX prefix
|
||||
do_configure() {
|
||||
if [ -n "${CONFIGURESTAMPFILE}" -a "${S}" = "${B}" ]; then
|
||||
if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then
|
||||
${STAGING_BINDIR_NATIVE}/scons --directory=${S} --clean ${EXTRA_OESCONS}
|
||||
fi
|
||||
|
||||
mkdir -p `dirname ${CONFIGURESTAMPFILE}`
|
||||
echo ${BB_TASKHASH} > ${CONFIGURESTAMPFILE}
|
||||
fi
|
||||
}
|
||||
|
||||
# OVERRIDE: scons_do_compile from scons.bbclass. Fixes:
|
||||
# | Unknown variables: PREFIX prefix
|
||||
scons_do_compile() {
|
||||
${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE} ${EXTRA_OESCONS} || \
|
||||
die "scons build execution failed."
|
||||
}
|
||||
|
||||
do_install() {
|
||||
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
|
||||
install -d ${D}${includedir}
|
||||
cp $CP_ARGS ${S}/arm_compute ${D}${includedir}
|
||||
cp $CP_ARGS support ${D}${includedir}
|
||||
cp $CP_ARGS include/half ${D}${includedir}
|
||||
|
||||
# install libraries
|
||||
install -d ${D}${libdir}
|
||||
install -m 0755 ${S}/build/libarm_compute*.so ${D}${libdir}
|
||||
install -m 0755 ${S}/build/libarm_compute*.a ${D}${libdir}
|
||||
|
||||
# install examples
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'examples', 'true', 'false', d)}; then
|
||||
install -d ${D}${bindir}/${PN}-${PV}/examples
|
||||
for example in ${S}/build/examples/*; do
|
||||
if [ -d "$example" ]; then
|
||||
continue
|
||||
fi
|
||||
case "$example" in
|
||||
(*.o|*.a) continue;;
|
||||
esac
|
||||
install -m 0555 $example ${D}${bindir}/${PN}-${PV}/examples
|
||||
done
|
||||
if [ -d "${S}/build/examples/gemm_tuner" ]; then
|
||||
install -d ${D}${bindir}/${PN}-${PV}/examples/gemm_tuner
|
||||
for example in ${S}/build/examples/gemm_tuner/*; do
|
||||
if [ -d "$example" ]; then
|
||||
continue
|
||||
fi
|
||||
case "$example" in
|
||||
(*.o|*.a) continue;;
|
||||
esac
|
||||
install -m 0555 $example ${D}${bindir}/${PN}-${PV}/examples/gemm_tuner
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
# install tests
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'tests', 'true', 'false', d)}; then
|
||||
install -d ${D}${bindir}/${PN}-${PV}/tests
|
||||
for test in ${S}/build/tests/*; do
|
||||
if [ -d "$test" ]; then
|
||||
continue
|
||||
fi
|
||||
case "$test" in
|
||||
(*.o|*.a) continue;;
|
||||
esac
|
||||
install -m 0555 $test ${D}${bindir}/${PN}-${PV}/tests
|
||||
done
|
||||
if [ -d "${S}/build/tests/gemm_tuner" ]; then
|
||||
install -d ${D}${bindir}/${PN}-${PV}/tests/gemm_tuner
|
||||
for test in ${S}/build/tests/gemm_tuner/*; do
|
||||
if [ -d "$test" ]; then
|
||||
continue
|
||||
fi
|
||||
case "$test" in
|
||||
(*.o|*.a) continue;;
|
||||
esac
|
||||
install -m 0555 $test ${D}${bindir}/${PN}-${PV}/tests/gemm_tuner
|
||||
done
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
||||
SOLIBS = ".so"
|
||||
FILES_SOLIBSDEV = ""
|
||||
|
||||
RDEPENDS:${PN} = "bash"
|
||||
|
||||
COMPATIBLE_MACHINE = "(mx8-nxp-bsp|mx9-nxp-bsp)"
|
||||
Loading…
Reference in New Issue
Block a user