diff options
Diffstat (limited to 'meta-offline-voice-agent/recipes-vosk/vosk-kaldi/vosk-kaldi_git.bb')
-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} |