blob: 05081dcbd81c41bef7b1e21009c1ca9f39ba2238 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001DEFAULTTUNE ?= "armv7vethf-neon"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05003require conf/machine/include/arm/arch-armv7ve.inc
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004
5TUNEVALID[cortexa7] = "Enable Cortex-A7 specific processor optimizations"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa7', ' -mcpu=cortex-a7', '', d)}"
Andrew Geisslerc3d88e42020-10-02 09:45:00 -05007MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'cortexa7', 'armv7ve:', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008
9# Little Endian base configs
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050010AVAILTUNES += "cortexa7 cortexa7t cortexa7-neon cortexa7t-neon cortexa7-neon-vfpv4 cortexa7t-neon-vfpv4"
11ARMPKGARCH_tune-cortexa7 = "cortexa7"
12ARMPKGARCH_tune-cortexa7t = "cortexa7"
13ARMPKGARCH_tune-cortexa7-neon = "cortexa7"
14ARMPKGARCH_tune-cortexa7t-neon = "cortexa7"
15ARMPKGARCH_tune-cortexa7-neon-vfpv4 = "cortexa7"
16ARMPKGARCH_tune-cortexa7t-neon-vfpv4 = "cortexa7"
Brad Bishop19323692019-04-05 15:28:33 -040017# mcpu is used so don't use armv7ve as we don't want march
18TUNE_FEATURES_tune-cortexa7 = "arm vfp cortexa7"
19TUNE_FEATURES_tune-cortexa7t = "${TUNE_FEATURES_tune-cortexa7} thumb"
20TUNE_FEATURES_tune-cortexa7-neon = "${TUNE_FEATURES_tune-cortexa7} neon"
21TUNE_FEATURES_tune-cortexa7t-neon = "${TUNE_FEATURES_tune-cortexa7-neon} thumb"
22TUNE_FEATURES_tune-cortexa7-neon-vfpv4 = "${TUNE_FEATURES_tune-cortexa7-neon} vfpv4"
23TUNE_FEATURES_tune-cortexa7t-neon-vfpv4 = "${TUNE_FEATURES_tune-cortexa7-neon-vfpv4} thumb"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050024PACKAGE_EXTRA_ARCHS_tune-cortexa7 = "${PACKAGE_EXTRA_ARCHS_tune-armv7ve} cortexa7-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025PACKAGE_EXTRA_ARCHS_tune-cortexa7t = "${PACKAGE_EXTRA_ARCHS_tune-armv7vet} cortexa7-vfp cortexa7t2-vfp"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026PACKAGE_EXTRA_ARCHS_tune-cortexa7-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7ve-neon} cortexa7-vfp cortexa7-neon"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027PACKAGE_EXTRA_ARCHS_tune-cortexa7t-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7vet-neon} cortexa7-vfp cortexa7-neon cortexa7t2-vfp cortexa7t2-neon"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050028PACKAGE_EXTRA_ARCHS_tune-cortexa7-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7ve-neon-vfpv4} cortexa7-vfp cortexa7-neon cortexa7-neon-vfpv4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050029PACKAGE_EXTRA_ARCHS_tune-cortexa7t-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7vet-neon-vfpv4} cortexa7-vfp cortexa7-neon cortexa7-neon-vfpv4 cortexa7t2-vfp cortexa7t2-neon cortexa7t2-neon-vfpv4"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050031# HF Tunes
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032AVAILTUNES += "cortexa7hf cortexa7thf cortexa7hf-neon cortexa7thf-neon cortexa7hf-neon-vfpv4 cortexa7thf-neon-vfpv4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050033ARMPKGARCH_tune-cortexa7hf = "cortexa7"
34ARMPKGARCH_tune-cortexa7thf = "cortexa7"
35ARMPKGARCH_tune-cortexa7hf-neon = "cortexa7"
36ARMPKGARCH_tune-cortexa7thf-neon = "cortexa7"
37ARMPKGARCH_tune-cortexa7hf-neon-vfpv4 = "cortexa7"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050038ARMPKGARCH_tune-cortexa7thf-neon-vfpv4 = "cortexa7"
Brad Bishop19323692019-04-05 15:28:33 -040039# mcpu is used so don't use armv7ve as we don't want march
40TUNE_FEATURES_tune-cortexa7hf = "${TUNE_FEATURES_tune-cortexa7} callconvention-hard"
41TUNE_FEATURES_tune-cortexa7thf = "${TUNE_FEATURES_tune-cortexa7t} callconvention-hard"
42TUNE_FEATURES_tune-cortexa7hf-neon = "${TUNE_FEATURES_tune-cortexa7-neon} callconvention-hard"
43TUNE_FEATURES_tune-cortexa7thf-neon = "${TUNE_FEATURES_tune-cortexa7t-neon} callconvention-hard"
44TUNE_FEATURES_tune-cortexa7hf-neon-vfpv4 = "${TUNE_FEATURES_tune-cortexa7-neon-vfpv4} callconvention-hard"
45TUNE_FEATURES_tune-cortexa7thf-neon-vfpv4 = "${TUNE_FEATURES_tune-cortexa7t-neon-vfpv4} callconvention-hard"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050046PACKAGE_EXTRA_ARCHS_tune-cortexa7hf = "${PACKAGE_EXTRA_ARCHS_tune-armv7vehf} cortexa7hf-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050047PACKAGE_EXTRA_ARCHS_tune-cortexa7thf = "${PACKAGE_EXTRA_ARCHS_tune-armv7vethf} cortexa7hf-vfp cortexa7t2hf-vfp"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050048PACKAGE_EXTRA_ARCHS_tune-cortexa7hf-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7vehf-neon} cortexa7hf-vfp cortexa7hf-neon"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050049PACKAGE_EXTRA_ARCHS_tune-cortexa7thf-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7vethf-neon} cortexa7hf-vfp cortexa7hf-neon cortexa7t2hf-vfp cortexa7t2hf-neon"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050050PACKAGE_EXTRA_ARCHS_tune-cortexa7hf-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7vehf-neon-vfpv4} cortexa7hf-vfp cortexa7hf-neon cortexa7hf-neon-vfpv4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050051PACKAGE_EXTRA_ARCHS_tune-cortexa7thf-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7vethf-neon-vfpv4} cortexa7hf-vfp cortexa7hf-neon cortexa7hf-neon-vfpv4 cortexa7t2hf-vfp cortexa7t2hf-neon cortexa7t2hf-neon-vfpv4"