summaryrefslogtreecommitdiffstats
path: root/meta-offline-voice-agent/recipes-blas/openblas/openblas-native_0.3.20.bb
diff options
context:
space:
mode:
authorAnuj Solanki <anuj603362@gmail.com>2024-07-03 17:28:05 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-08-30 11:53:02 +0000
commit8607d696eca482e025a9ca30ee992707211d1f11 (patch)
treeca4342a7db0465199119d1c24bf3e824a0f0a1c3 /meta-offline-voice-agent/recipes-blas/openblas/openblas-native_0.3.20.bb
parent65f1ec44778eaa59c2c74bf5fbb22a670b6231a0 (diff)
Integrate Whisper AI into AGL Voice Agent and Update Dependencies
V1: - Removed the following recipes from meta-offline-voiceagent: - python3-scipy - python3-scikit-learn - python3-openblas - python3-lapack - python3-numpy - Updated to use meta-python-ai layer for: - python3-scipy - python3-scikit-learn - python3-openblas - python3-lapack - python3-numpy - python3-pytorch - Added all the required recipes for Whisper AI: - Included recipes for Whisper AI base and tiny model - Updated recipes for: - python3-uvloop - python3-python-crfsuite V2: - Remove vulkan from DISTRO_FEATURES as it has become coditional at upstream - Fix flutter_voiceassistant service - Update recipe of llvmlite to include the wheel for aarch64 also. V3: - Fix llvmlite recipe and some patches - Removes rasa and its dependencies - Fix agl-service-voiceagent.service Bug-AGL: SPEC-5200 Change-Id: I429e7d4b98fbbe1a4f8c1341ac8918d7d177b382 Signed-off-by: Anuj Solanki <anuj603362@gmail.com>
Diffstat (limited to 'meta-offline-voice-agent/recipes-blas/openblas/openblas-native_0.3.20.bb')
-rw-r--r--meta-offline-voice-agent/recipes-blas/openblas/openblas-native_0.3.20.bb111
1 files changed, 0 insertions, 111 deletions
diff --git a/meta-offline-voice-agent/recipes-blas/openblas/openblas-native_0.3.20.bb b/meta-offline-voice-agent/recipes-blas/openblas/openblas-native_0.3.20.bb
deleted file mode 100644
index ac14656f..00000000
--- a/meta-offline-voice-agent/recipes-blas/openblas/openblas-native_0.3.20.bb
+++ /dev/null
@@ -1,111 +0,0 @@
-#
-# Copyright (c) 2016 Intel Corporation. All rights reserved.
-# Copyright (c) 2019 Luxoft Sweden AB
-#
-# SPDX-License-Identifier: MIT
-#
-
-DESCRIPTION = "OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version."
-SUMMARY = "OpenBLAS : An optimized BLAS library"
-AUTHOR = "Alexander Leiva <norxander@gmail.com>"
-HOMEPAGE = "http://www.openblas.net/"
-SECTION = "libs"
-LICENSE = "BSD-3-Clause"
-
-DEPENDS += "make libgfortran patchelf-native"
-
-LIC_FILES_CHKSUM = "file://LICENSE;md5=5adf4792c949a00013ce25d476a2abc0"
-
-SRC_URI = "git://github.com/xianyi/OpenBLAS.git;protocol=https;branch=develop"
-
-S = "${WORKDIR}/git"
-SRCREV = "0b678b19dc03f2a999d6e038814c4c50b9640a4e"
-
-# Used for TARGET=... , documented in TargetList.txt
-BLAS_X86_ARCH ?= "ATOM"
-BLAS_AARCH32_ARCH ?= "CORTEXA9"
-BLAS_AARCH64_ARCH ?= "ARMV8"
-BLAS_ARM_ARCH ?= "ARMV7"
-
-def map_arch(a, d):
- import re
- if re.match('i.86$', a): return d.getVar('BLAS_X86_ARCH')
- elif re.match('x86_64$', a): return d.getVar('BLAS_X86_ARCH')
- elif re.match('aarch32$', a): return d.getVar('BLAS_AARCH32_ARCH')
- elif re.match('aarch64$', a): return d.getVar('BLAS_AARCH64_ARCH')
- elif re.match('arm$', a): return d.getVar('BLAS_ARM_ARCH')
- return a
-
-def map_bits(a, d):
- import re
- if re.match('i.86$', a): return 32
- elif re.match('x86_64$', a): return 64
- elif re.match('aarch32$', a): return 32
- elif re.match('aarch64$', a): return 64
- elif re.match('arm$', a): return 32
- return 32
-
-def map_extra_options(a, d):
- import re
- if re.match('arm$', a): return '-mfpu=neon-vfpv4 -mfloat-abi=hard'
- return ''
-
-PACKAGECONFIG[lapack] = ""
-PACKAGECONFIG[lapacke] = ""
-PACKAGECONFIG[cblas] = ""
-PACKAGECONFIG[affinity] = ""
-PACKAGECONFIG[openmp] = ""
-PACKAGECONFIG[dynarch] = ""
-
-PACKAGECONFIG ??= "openmp"
-
-inherit native
-
-do_compile () {
- oe_runmake HOSTCC="${BUILD_CC}" \
- CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${@map_extra_options(d.getVar('TARGET_ARCH', True), d)}" \
- PREFIX=${exec_prefix} \
- CROSS=1 \
- CROSS_SUFFIX=${HOST_PREFIX} \
- NO_STATIC=1 \
- ${@bb.utils.contains('PACKAGECONFIG', 'lapack', 'NO_LAPACK=0', 'NO_LAPACK=1', d)} \
- ${@bb.utils.contains('PACKAGECONFIG', 'lapacke', 'NO_LAPACKE=0', 'NO_LAPACKE=1', d)} \
- ${@bb.utils.contains('PACKAGECONFIG', 'cblas', 'NO_CBLAS=0', 'NO_CBLAS=1', d)} \
- ${@bb.utils.contains('PACKAGECONFIG', 'affinity', 'NO_AFFINITY=0', 'NO_AFFINITY=1', d)} \
- ${@bb.utils.contains('PACKAGECONFIG', 'openmp', 'USE_OPENMP=1', 'USE_OPENMP=0', d)} \
- ${@bb.utils.contains('PACKAGECONFIG', 'dynarch', 'DYNAMIC_ARCH=1', 'DYNAMIC_ARCH=0', d)} \
- BINARY='${@map_bits(d.getVar('TARGET_ARCH', True), d)}' \
- TARGET='${@map_arch(d.getVar('TARGET_ARCH', True), d)}'
-}
-
-do_install() {
- oe_runmake HOSTCC="${BUILD_CC}" \
- CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" \
- PREFIX=${exec_prefix} \
- CROSS=1 \
- CROSS_SUFFIX=${HOST_PREFIX} \
- NO_STATIC=1 \
- ${@bb.utils.contains('PACKAGECONFIG', 'lapack', 'NO_LAPACK=0', 'NO_LAPACK=1', d)} \
- ${@bb.utils.contains('PACKAGECONFIG', 'lapacke', 'NO_LAPACKE=0', 'NO_LAPACKE=1', d)} \
- ${@bb.utils.contains('PACKAGECONFIG', 'cblas', 'NO_CBLAS=0', 'NO_CBLAS=1', d)} \
- ${@bb.utils.contains('PACKAGECONFIG', 'affinity', 'NO_AFFINITY=0', 'NO_AFFINITY=1', d)} \
- ${@bb.utils.contains('PACKAGECONFIG', 'openmp', 'USE_OPENMP=1', 'USE_OPENMP=0', d)} \
- ${@bb.utils.contains('PACKAGECONFIG', 'dynarch', 'DYNAMIC_ARCH=1', 'DYNAMIC_ARCH=0', d)} \
- BINARY='${@map_bits(d.getVar('TARGET_ARCH', True), d)}' \
- TARGET='${@map_arch(d.getVar('TARGET_ARCH', True), d)}' \
- DESTDIR=${D} \
- install
-
-
- rm -rf ${D}${bindir}
-
- cd ${D}${libdir}
- cp -ar libopenblas*r*.so libblas.so.3
- patchelf --set-soname libblas.so.3 libblas.so.3
- ln -s libblas.so.3 libblas.so
-}
-
-FILES:${PN} = "${libdir}/lib*"
-FILES:${PN}-dev = "${includedir} ${libdir}/lib${PN}.a ${libdir}/libblas.a ${libdir}/cmake ${libdir}/pkgconfig ${libdir}/libopenblas.so ${libdir}/libblas.so"
-
-DEPENDS:remove:class-native = "libgfortran"