mirror of
https://git.yoctoproject.org/poky
synced 2026-02-28 12:29:40 +01: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>
18 lines
609 B
PHP
18 lines
609 B
PHP
#
|
|
# Defaults for ARMv7e-m
|
|
#
|
|
DEFAULTTUNE ?= "armv7em"
|
|
|
|
TUNEVALID[armv7em] = "Enable instructions for ARMv7e-m"
|
|
TUNE_CCARGS_MARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'armv7em', ' -march=armv7e-m', '', d)}"
|
|
MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv7em', 'armv7em:', '', d)}"
|
|
|
|
TUNECONFLICTS[armv7em] = "armv4 armv5 armv6 armv7a"
|
|
|
|
require conf/machine/include/arm/arch-armv7m.inc
|
|
|
|
AVAILTUNES += "armv7em"
|
|
ARMPKGARCH:tune-armv7em = "armv7em"
|
|
TUNE_FEATURES:tune-armv7em = "armv7em"
|
|
PACKAGE_EXTRA_ARCHS:tune-armv7em = "armv7em"
|