From: Jan-Simon Moeller Date: Wed, 2 Nov 2022 21:46:54 +0000 (+0100) Subject: Allow building vosk-kaldi on arm32 and aarch64 X-Git-Tag: 14.0.2^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=3ea93e07c091fa6c809589edae7991dfadced8ee;p=AGL%2Fmeta-agl-devel.git 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 --- 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}