mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 09:32:11 +02:00
GCC has the ability to pass extensions to the march parameter, which expand the funcationality of the march. For example "-march=armv7ve+simd" adds SIMD to ARMv7. Currently, there is no way to expand the march setting without modifying each instance, as you can't guarantee the ordering when using the existing TUNE_CCARGS. By introducing two new variables, TUNE_CCARGS_MARCH and TUNE_CCARGS_MARCH_OPT, we can enforce that these two go together. Also, expand existing and create new feature files that use these variables to expand the functionality. (From OE-Core rev: 794eb617bfd1997e7a3498812c63a20c58a10554) Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
20 lines
1.0 KiB
PHP
20 lines
1.0 KiB
PHP
DEFAULTTUNE ?= "armv8-2a"
|
|
|
|
TUNEVALID[armv8-2a] = "Enable instructions for ARMv8-a"
|
|
TUNE_CCARGS_MARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8-2a', ' -march=armv8.2-a', '', d)}"
|
|
# TUNE crypto will be handled by arch-armv8a.inc below
|
|
MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8-2a', 'armv8-2a:', '', d)}"
|
|
|
|
require conf/machine/include/arm/arch-armv8a.inc
|
|
|
|
# Little Endian base configs
|
|
AVAILTUNES += "armv8-2a armv8-2a-crypto"
|
|
ARMPKGARCH:tune-armv8-2a ?= "armv8-2a"
|
|
ARMPKGARCH:tune-armv8-2a-crypto ?= "armv8-2a"
|
|
TUNE_FEATURES:tune-armv8-2a = "aarch64 armv8-2a"
|
|
TUNE_FEATURES:tune-armv8-2a-crypto = "${TUNE_FEATURES:tune-armv8-2a} crypto"
|
|
PACKAGE_EXTRA_ARCHS:tune-armv8-2a = "${PACKAGE_EXTRA_ARCHS:tune-armv8a} armv8-2a"
|
|
PACKAGE_EXTRA_ARCHS:tune-armv8-2a-crypto = "${PACKAGE_EXTRA_ARCHS:tune-armv8-2a} armv8-2a-crypto"
|
|
BASE_LIB:tune-armv8-2a = "lib64"
|
|
BASE_LIB:tune-armv8-2a-crypto = "lib64"
|