blob: 923b758c41dc1add9c716aab8246d45321058269 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001DEFAULTTUNE ?= "armv7athf-neon"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002
3require conf/machine/include/arm/arch-armv7a.inc
4
5TUNEVALID[cortexa5] = "Enable Cortex-A5 specific processor optimizations"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa5', ' -mcpu=cortex-a5', '', d)}"
Andrew Geisslerc3d88e42020-10-02 09:45:00 -05007MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'cortexa5', 'armv7a:', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008
9# Little Endian base configs
Brad Bishop19323692019-04-05 15:28:33 -040010AVAILTUNES += "cortexa5 cortexa5t cortexa5-neon cortexa5t-neon cortexa5-neon-vfpv4 cortexa5t-neon-vfpv4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050011ARMPKGARCH_tune-cortexa5 = "cortexa5"
12ARMPKGARCH_tune-cortexa5t = "cortexa5"
13ARMPKGARCH_tune-cortexa5-neon = "cortexa5"
14ARMPKGARCH_tune-cortexa5t-neon = "cortexa5"
Brad Bishop19323692019-04-05 15:28:33 -040015ARMPKGARCH_tune-cortexa5-neon-vfpv4 = "cortexa5"
16ARMPKGARCH_tune-cortexa5t-neon-vfpv4 = "cortexa5"
17# mcpu is used so don't use armv7a as we don't want march
18TUNE_FEATURES_tune-cortexa5 = "arm vfp cortexa5"
19TUNE_FEATURES_tune-cortexa5t = "${TUNE_FEATURES_tune-cortexa5} thumb"
20TUNE_FEATURES_tune-cortexa5-neon = "${TUNE_FEATURES_tune-cortexa5} neon"
21TUNE_FEATURES_tune-cortexa5t-neon = "${TUNE_FEATURES_tune-cortexa5-neon} thumb"
22TUNE_FEATURES_tune-cortexa5-neon-vfpv4 = "${TUNE_FEATURES_tune-cortexa5-neon} vfpv4"
23TUNE_FEATURES_tune-cortexa5t-neon-vfpv4 = "${TUNE_FEATURES_tune-cortexa5-neon-vfpv4} thumb"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050024PACKAGE_EXTRA_ARCHS_tune-cortexa5 = "${PACKAGE_EXTRA_ARCHS_tune-armv7a} cortexa5-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025PACKAGE_EXTRA_ARCHS_tune-cortexa5t = "${PACKAGE_EXTRA_ARCHS_tune-armv7at} cortexa5-vfp cortexa5t2-vfp"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026PACKAGE_EXTRA_ARCHS_tune-cortexa5-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7a-neon} cortexa5-vfp cortexa5-neon"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027PACKAGE_EXTRA_ARCHS_tune-cortexa5t-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7at-neon} cortexa5-vfp cortexa5-neon cortexa5t2-vfp cortexa5t2-neon"
Brad Bishop19323692019-04-05 15:28:33 -040028PACKAGE_EXTRA_ARCHS_tune-cortexa5-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7a-neon-vfpv4} cortexa5-vfp cortexa5-neon cortexa5-neon-vfpv4"
29PACKAGE_EXTRA_ARCHS_tune-cortexa5t-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7at-neon-vfpv4} cortexa5-vfp cortexa5-neon cortexa5-neon-vfpv4 cortexa5t2-vfp cortexa5t2-neon cortexa5t2-neon-vfpv4"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050031# HF Tunes
Brad Bishop19323692019-04-05 15:28:33 -040032AVAILTUNES += "cortexa5hf cortexa5thf cortexa5hf-neon cortexa5thf-neon cortexa5hf-neon-vfpv4 cortexa5thf-neon-vfpv4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050033ARMPKGARCH_tune-cortexa5hf = "cortexa5"
34ARMPKGARCH_tune-cortexa5thf = "cortexa5"
35ARMPKGARCH_tune-cortexa5hf-neon = "cortexa5"
36ARMPKGARCH_tune-cortexa5thf-neon = "cortexa5"
Brad Bishop19323692019-04-05 15:28:33 -040037ARMPKGARCH_tune-cortexa5hf-neon-vfpv4 = "cortexa5"
38ARMPKGARCH_tune-cortexa5thf-neon-vfpv4 = "cortexa5"
39# mcpu is used so don't use armv7a as we don't want march
40TUNE_FEATURES_tune-cortexa5hf = "${TUNE_FEATURES_tune-cortexa5} callconvention-hard"
41TUNE_FEATURES_tune-cortexa5thf = "${TUNE_FEATURES_tune-cortexa5t} callconvention-hard"
42TUNE_FEATURES_tune-cortexa5hf-neon = "${TUNE_FEATURES_tune-cortexa5-neon} callconvention-hard"
43TUNE_FEATURES_tune-cortexa5thf-neon = "${TUNE_FEATURES_tune-cortexa5t-neon} callconvention-hard"
44TUNE_FEATURES_tune-cortexa5hf-neon-vfpv4 = "${TUNE_FEATURES_tune-cortexa5-neon-vfpv4} callconvention-hard"
45TUNE_FEATURES_tune-cortexa5thf-neon-vfpv4 = "${TUNE_FEATURES_tune-cortexa5t-neon-vfpv4} callconvention-hard"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050046PACKAGE_EXTRA_ARCHS_tune-cortexa5hf = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahf} cortexa5hf-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050047PACKAGE_EXTRA_ARCHS_tune-cortexa5thf = "${PACKAGE_EXTRA_ARCHS_tune-armv7athf} cortexa5hf-vfp cortexa5t2hf-vfp"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050048PACKAGE_EXTRA_ARCHS_tune-cortexa5hf-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahf-neon} cortexa5hf-vfp cortexa5hf-neon"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050049PACKAGE_EXTRA_ARCHS_tune-cortexa5thf-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7athf-neon} cortexa5hf-vfp cortexa5hf-neon cortexa5t2hf-vfp cortexa5t2hf-neon"
Brad Bishop19323692019-04-05 15:28:33 -040050PACKAGE_EXTRA_ARCHS_tune-cortexa5hf-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahf-neon-vfpv4} cortexa5hf-vfp cortexa5hf-neon cortexa5hf-neon-vfpv4"
51PACKAGE_EXTRA_ARCHS_tune-cortexa5thf-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7athf-neon-vfpv4} cortexa5hf-vfp cortexa5hf-neon cortexa5hf-neon-vfpv4 cortexa5t2hf-vfp cortexa5t2hf-neon cortexa5t2hf-neon-vfpv4"