arch-powerpc: Use -maltivec in compiler flags if altivec is in tune features

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-05-06 13:53:19 -07:00
parent b9ccaa84d7
commit ef56ca9006
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -26,6 +26,7 @@ TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-soft', ' -msoft-float
TARGET_FPU .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-soft', 'soft', '', d)}" TARGET_FPU .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-soft', 'soft', '', d)}"
TUNEVALID[altivec] = "Altivec" TUNEVALID[altivec] = "Altivec"
TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'altivec', ' -maltivec', '', d)}"
# Basic tune definitions # Basic tune definitions
AVAILTUNES += "powerpc powerpc-nf powerpcle powerpcle-nf" AVAILTUNES += "powerpc powerpc-nf powerpcle powerpcle-nf"