diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2022-11-02 22:46:54 +0100 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2022-11-10 11:10:09 +0000 |
commit | f1bac3c6a060d68e31bef4cd21eeea7f97d9f58f (patch) | |
tree | 915ee39211e8c039dcdb83e29f9f7a44a9d31787 | |
parent | aa60e36d4d5ff1fa4455be425e7574d6c56ff9d6 (diff) |
Allow building vosk-kaldi on arm32 and aarch64
Remove -msse and -msse2 as they are x86 only flags.
Bug-AGL: SPEC-4600
Change-Id: I48f52c1c8be7ccfa2db9d70f09d81ad52006a891
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
-rw-r--r-- | meta-offline-voice-agent/recipes-vosk/vosk-kaldi/vosk-kaldi_git.bb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-offline-voice-agent/recipes-vosk/vosk-kaldi/vosk-kaldi_git.bb b/meta-offline-voice-agent/recipes-vosk/vosk-kaldi/vosk-kaldi_git.bb index b3e021f3..45cf71ff 100644 --- a/meta-offline-voice-agent/recipes-vosk/vosk-kaldi/vosk-kaldi_git.bb +++ b/meta-offline-voice-agent/recipes-vosk/vosk-kaldi/vosk-kaldi_git.bb @@ -20,6 +20,20 @@ ALLOW_EMPTY_${PN} = "1" MYCONF = "--mathlib=OPENBLAS --static --shared --use-cuda=no --fst-root=${STAGING_INCDIR}/../ --fst-version=1.8.0 --openblas-root=${STAGING_INCDIR}/../ " +# remove x86-specific optimizations +do_configure:prepend:aarch64(){ + +sed -i -e "s#-msse -msse2##g" ${S}/makefiles/linux_openblas.mk + +} + +do_configure:prepend:arm(){ + +sed -i -e "s#-msse -msse2##g" ${S}/makefiles/linux_openblas.mk + +} + + do_configure() { ./configure ${MYCONF} |