blob: a2663d8008c3045a3e43a6dae56a9e9a45b7995e [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001DEFAULTTUNE ?= "armv7athf"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002ARM_INSTRUCTION_SET ?= "thumb"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05003
4TUNEVALID[armv7a] = "Enable instructions for ARMv7-a"
5TUNECONFLICTS[armv7a] = "armv4 armv5 armv6 armv7"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv7a', ' -march=armv7-a', '', d)}"
7MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv7a', 'armv7a:', '' ,d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008
9require conf/machine/include/arm/arch-armv6.inc
10require conf/machine/include/arm/feature-arm-neon.inc
11
12# Little Endian base configs
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050013AVAILTUNES += "armv7a armv7at armv7a-vfpv3d16 armv7at-vfpv3d16 armv7a-vfpv3 armv7at-vfpv3 armv7a-neon armv7at-neon armv7a-neon-vfpv4 armv7at-neon-vfpv4"
14ARMPKGARCH_tune-armv7a ?= "armv7a"
15ARMPKGARCH_tune-armv7at ?= "armv7a"
16ARMPKGARCH_tune-armv7a-vfpv3d16 ?= "armv7a"
17ARMPKGARCH_tune-armv7at-vfpv3d16 ?= "armv7a"
18ARMPKGARCH_tune-armv7a-vfpv3 ?= "armv7a"
19ARMPKGARCH_tune-armv7at-vfpv3 ?= "armv7a"
20ARMPKGARCH_tune-armv7a-neon ?= "armv7a"
21ARMPKGARCH_tune-armv7at-neon ?= "armv7a"
22ARMPKGARCH_tune-armv7a-neon-vfpv4 ?= "armv7a"
23ARMPKGARCH_tune-armv7at-neon-vfpv4 ?= "armv7a"
24TUNE_FEATURES_tune-armv7a = "arm armv7a vfp"
25TUNE_FEATURES_tune-armv7at = "${TUNE_FEATURES_tune-armv7a} thumb"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026TUNE_FEATURES_tune-armv7a-vfpv3d16 = "${TUNE_FEATURES_tune-armv7a} vfpv3d16"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027TUNE_FEATURES_tune-armv7at-vfpv3d16 = "${TUNE_FEATURES_tune-armv7at} vfpv3d16"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050028TUNE_FEATURES_tune-armv7a-vfpv3 = "${TUNE_FEATURES_tune-armv7a-vfpv3d16} vfpv3"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050029TUNE_FEATURES_tune-armv7at-vfpv3 = "${TUNE_FEATURES_tune-armv7at-vfpv3d16} vfpv3"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050030TUNE_FEATURES_tune-armv7a-neon = "${TUNE_FEATURES_tune-armv7a} neon"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050031TUNE_FEATURES_tune-armv7at-neon = "${TUNE_FEATURES_tune-armv7at} neon"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050032TUNE_FEATURES_tune-armv7a-neon-vfpv4 = "${TUNE_FEATURES_tune-armv7a-neon} vfpv4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050033TUNE_FEATURES_tune-armv7at-neon-vfpv4 = "${TUNE_FEATURES_tune-armv7at-neon} vfpv4"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050034PACKAGE_EXTRA_ARCHS_tune-armv7a = "${PACKAGE_EXTRA_ARCHS_tune-armv6} armv7a armv7a-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050035PACKAGE_EXTRA_ARCHS_tune-armv7at = "${PACKAGE_EXTRA_ARCHS_tune-armv6t} armv7a armv7a-vfp armv7at2-vfp"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050036PACKAGE_EXTRA_ARCHS_tune-armv7a-vfpv3d16 = "${PACKAGE_EXTRA_ARCHS_tune-armv7a} armv7a-vfpv3d16"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050037PACKAGE_EXTRA_ARCHS_tune-armv7at-vfpv3d16 = "${PACKAGE_EXTRA_ARCHS_tune-armv7at} armv7a-vfpv3d16 armv7at2-vfpv3d16"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050038PACKAGE_EXTRA_ARCHS_tune-armv7a-vfpv3 = "${PACKAGE_EXTRA_ARCHS_tune-armv7a-vfpv3d16} armv7a-vfpv3"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050039PACKAGE_EXTRA_ARCHS_tune-armv7at-vfpv3 = "${PACKAGE_EXTRA_ARCHS_tune-armv7at-vfpv3d16} armv7a-vfpv3 armv7at2-vfpv3"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050040PACKAGE_EXTRA_ARCHS_tune-armv7a-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7a} armv7a-neon"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050041PACKAGE_EXTRA_ARCHS_tune-armv7at-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7at} armv7a-neon armv7at2-neon"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050042PACKAGE_EXTRA_ARCHS_tune-armv7a-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7a-neon} armv7a-neon-vfpv4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050043PACKAGE_EXTRA_ARCHS_tune-armv7at-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7at-neon} armv7a-neon-vfpv4 armv7at2-neon-vfpv4"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050044
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050045# HF Tunes
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046AVAILTUNES += "armv7ahf armv7athf armv7ahf-vfpv3d16 armv7athf-vfpv3d16 armv7ahf-vfpv3 armv7athf-vfpv3 armv7ahf-neon armv7athf-neon armv7ahf-neon-vfpv4 armv7athf-neon-vfpv4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050047ARMPKGARCH_tune-armv7ahf ?= "armv7a"
48ARMPKGARCH_tune-armv7athf ?= "armv7a"
49ARMPKGARCH_tune-armv7ahf-vfpv3d16 ?= "armv7a"
50ARMPKGARCH_tune-armv7athf-vfpv3d16 ?= "armv7a"
51ARMPKGARCH_tune-armv7ahf-vfpv3 ?= "armv7a"
52ARMPKGARCH_tune-armv7athf-vfpv3 ?= "armv7a"
53ARMPKGARCH_tune-armv7ahf-neon ?= "armv7a"
54ARMPKGARCH_tune-armv7athf-neon ?= "armv7a"
55ARMPKGARCH_tune-armv7ahf-neon-vfpv4 ?= "armv7a"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050056ARMPKGARCH_tune-armv7athf-neon-vfpv4 ?= "armv7a"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050057TUNE_FEATURES_tune-armv7ahf = "${TUNE_FEATURES_tune-armv7a} callconvention-hard"
58TUNE_FEATURES_tune-armv7athf = "${TUNE_FEATURES_tune-armv7at} callconvention-hard"
59TUNE_FEATURES_tune-armv7ahf-vfpv3d16 = "${TUNE_FEATURES_tune-armv7a-vfpv3d16} callconvention-hard"
60TUNE_FEATURES_tune-armv7athf-vfpv3d16 = "${TUNE_FEATURES_tune-armv7at-vfpv3d16} callconvention-hard"
61TUNE_FEATURES_tune-armv7ahf-vfpv3 = "${TUNE_FEATURES_tune-armv7a-vfpv3} callconvention-hard"
62TUNE_FEATURES_tune-armv7athf-vfpv3 = "${TUNE_FEATURES_tune-armv7at-vfpv3} callconvention-hard"
63TUNE_FEATURES_tune-armv7ahf-neon = "${TUNE_FEATURES_tune-armv7a-neon} callconvention-hard"
64TUNE_FEATURES_tune-armv7athf-neon = "${TUNE_FEATURES_tune-armv7at-neon} callconvention-hard"
65TUNE_FEATURES_tune-armv7ahf-neon-vfpv4 = "${TUNE_FEATURES_tune-armv7a-neon-vfpv4} callconvention-hard"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050066TUNE_FEATURES_tune-armv7athf-neon-vfpv4 = "${TUNE_FEATURES_tune-armv7at-neon-vfpv4} callconvention-hard"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050067PACKAGE_EXTRA_ARCHS_tune-armv7ahf = "${PACKAGE_EXTRA_ARCHS_tune-armv6hf} armv7ahf-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050068PACKAGE_EXTRA_ARCHS_tune-armv7athf = "${PACKAGE_EXTRA_ARCHS_tune-armv6thf} armv7ahf-vfp armv7at2hf-vfp"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050069PACKAGE_EXTRA_ARCHS_tune-armv7ahf-vfpv3d16 = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahf} armv7ahf-vfpv3d16"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050070PACKAGE_EXTRA_ARCHS_tune-armv7athf-vfpv3d16 = "${PACKAGE_EXTRA_ARCHS_tune-armv7athf} armv7ahf-vfpv3d16 armv7at2hf-vfpv3d16"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050071PACKAGE_EXTRA_ARCHS_tune-armv7ahf-vfpv3 = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahf-vfpv3d16} armv7ahf-vfpv3"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050072PACKAGE_EXTRA_ARCHS_tune-armv7athf-vfpv3 = "${PACKAGE_EXTRA_ARCHS_tune-armv7athf-vfpv3d16} armv7ahf-vfpv3 armv7at2hf-vfpv3"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050073PACKAGE_EXTRA_ARCHS_tune-armv7ahf-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahf} armv7ahf-neon"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050074PACKAGE_EXTRA_ARCHS_tune-armv7athf-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7athf} armv7ahf-neon armv7at2hf-neon"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050075PACKAGE_EXTRA_ARCHS_tune-armv7ahf-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahf-neon} armv7ahf-neon-vfpv4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050076PACKAGE_EXTRA_ARCHS_tune-armv7athf-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7athf-neon} armv7ahf-neon-vfpv4 armv7at2hf-neon-vfpv4"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050077
78# Big Endian
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050079AVAILTUNES += "armv7ab armv7atb armv7ab-vfpv3d16 armv7atb-vfpv3d16 armv7ab-vfpv3 armv7atb-vfpv3 armv7ab-neon armv7atb-neon armv7ab-neon-vfpv4 armv7atb-neon-vfpv4"
80ARMPKGARCH_tune-armv7ab ?= "armv7a"
81ARMPKGARCH_tune-armv7atb ?= "armv7a"
82ARMPKGARCH_tune-armv7ab-vfpv3d16 ?= "armv7a"
83ARMPKGARCH_tune-armv7atb-vfpv3d16 ?= "armv7a"
84ARMPKGARCH_tune-armv7ab-vfpv3 ?= "armv7a"
85ARMPKGARCH_tune-armv7atb-vfpv3 ?= "armv7a"
86ARMPKGARCH_tune-armv7ab-neon ?= "armv7a"
87ARMPKGARCH_tune-armv7atb-neon ?= "armv7a"
88ARMPKGARCH_tune-armv7ab-neon-vfpv4 ?= "armv7a"
89ARMPKGARCH_tune-armv7atb-neon-vfpv4 ?= "armv7a"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050090TUNE_FEATURES_tune-armv7ab = "${TUNE_FEATURES_tune-armv7a} bigendian"
91TUNE_FEATURES_tune-armv7atb = "${TUNE_FEATURES_tune-armv7at} bigendian"
92TUNE_FEATURES_tune-armv7ab-vfpv3d16 = "${TUNE_FEATURES_tune-armv7a-vfpv3d16} bigendian"
93TUNE_FEATURES_tune-armv7atb-vfpv3d16 = "${TUNE_FEATURES_tune-armv7at-vfpv3d16} bigendian"
94TUNE_FEATURES_tune-armv7ab-vfpv3 = "${TUNE_FEATURES_tune-armv7a-vfpv3} bigendian"
95TUNE_FEATURES_tune-armv7atb-vfpv3 = "${TUNE_FEATURES_tune-armv7at-vfpv3} bigendian"
96TUNE_FEATURES_tune-armv7ab-neon = "${TUNE_FEATURES_tune-armv7a-neon} bigendian"
97TUNE_FEATURES_tune-armv7atb-neon = "${TUNE_FEATURES_tune-armv7at-neon} bigendian"
98TUNE_FEATURES_tune-armv7ab-neon-vfpv4 = "${TUNE_FEATURES_tune-armv7a-neon-vfpv4} bigendian"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050099TUNE_FEATURES_tune-armv7atb-neon-vfpv4 = "${TUNE_FEATURES_tune-armv7at-neon-vfpv4} bigendian"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500100PACKAGE_EXTRA_ARCHS_tune-armv7ab = "${PACKAGE_EXTRA_ARCHS_tune-armv6b} armv7ab-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500101PACKAGE_EXTRA_ARCHS_tune-armv7atb = "${PACKAGE_EXTRA_ARCHS_tune-armv6tb} armv7ab-vfp armv7at2b-vfp"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500102PACKAGE_EXTRA_ARCHS_tune-armv7ab-vfpv3d16 = "${PACKAGE_EXTRA_ARCHS_tune-armv7ab} armv7ab-vfpv3d16"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500103PACKAGE_EXTRA_ARCHS_tune-armv7atb-vfpv3d16 = "${PACKAGE_EXTRA_ARCHS_tune-armv7atb} armv7ab-vfpv3d16 armv7at2b-vfpv3d16"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500104PACKAGE_EXTRA_ARCHS_tune-armv7ab-vfpv3 = "${PACKAGE_EXTRA_ARCHS_tune-armv7ab-vfpv3d16} armv7ab-vfpv3"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500105PACKAGE_EXTRA_ARCHS_tune-armv7atb-vfpv3 = "${PACKAGE_EXTRA_ARCHS_tune-armv7atb-vfpv3d16} armv7ab-vfpv3 armv7at2b-vfpv3"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500106PACKAGE_EXTRA_ARCHS_tune-armv7ab-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7ab} armv7ab-neon"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500107PACKAGE_EXTRA_ARCHS_tune-armv7atb-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7atb} armv7ab-neon armv7at2b-neon"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500108PACKAGE_EXTRA_ARCHS_tune-armv7ab-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7ab-neon} armv7ab-neon-vfpv4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500109PACKAGE_EXTRA_ARCHS_tune-armv7atb-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7atb-neon} armv7ab-neon-vfpv4 armv7at2b-neon-vfpv4"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500110
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500111# Big Endian + HF
112AVAILTUNES += "armv7ahfb armv7athfb armv7ahfb-vfpv3d16 armv7athfb-vfpv3d16 armv7ahfb-vfpv3 armv7athfb-vfpv3 armv7ahfb-neon armv7athfb-neon armv7ahfb-neon-vfpv4 armv7athfb-neon-vfpv4"
113ARMPKGARCH_tune-armv7ahfb ?= "armv7a"
114ARMPKGARCH_tune-armv7athfb ?= "armv7a"
115ARMPKGARCH_tune-armv7ahfb-vfpv3d16 ?= "armv7a"
116ARMPKGARCH_tune-armv7athfb-vfpv3d16 ?= "armv7a"
117ARMPKGARCH_tune-armv7ahfb-vfpv3 ?= "armv7a"
118ARMPKGARCH_tune-armv7athfb-vfpv3 ?= "armv7a"
119ARMPKGARCH_tune-armv7ahfb-neon ?= "armv7a"
120ARMPKGARCH_tune-armv7athfb-neon ?= "armv7a"
121ARMPKGARCH_tune-armv7ahfb-neon-vfpv4 ?= "armv7a"
122ARMPKGARCH_tune-armv7athfb-neon-vfpv4 ?= "armv7a"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500123TUNE_FEATURES_tune-armv7ahfb = "${TUNE_FEATURES_tune-armv7ahf} bigendian"
124TUNE_FEATURES_tune-armv7athfb = "${TUNE_FEATURES_tune-armv7athf} bigendian"
125TUNE_FEATURES_tune-armv7ahfb-vfpv3d16 = "${TUNE_FEATURES_tune-armv7ahf-vfpv3d16} bigendian"
126TUNE_FEATURES_tune-armv7athfb-vfpv3d16 = "${TUNE_FEATURES_tune-armv7athf-vfpv3d16} bigendian"
127TUNE_FEATURES_tune-armv7ahfb-vfpv3 = "${TUNE_FEATURES_tune-armv7ahf-vfpv3} bigendian"
128TUNE_FEATURES_tune-armv7athfb-vfpv3 = "${TUNE_FEATURES_tune-armv7athf-vfpv3} bigendian"
129TUNE_FEATURES_tune-armv7ahfb-neon = "${TUNE_FEATURES_tune-armv7ahf-neon} bigendian"
130TUNE_FEATURES_tune-armv7athfb-neon = "${TUNE_FEATURES_tune-armv7athf-neon} bigendian"
131TUNE_FEATURES_tune-armv7ahfb-neon-vfpv4 = "${TUNE_FEATURES_tune-armv7ahf-neon-vfpv4} bigendian"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500132TUNE_FEATURES_tune-armv7athfb-neon-vfpv4 = "${TUNE_FEATURES_tune-armv7athf-neon-vfpv4} bigendian"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500133PACKAGE_EXTRA_ARCHS_tune-armv7ahfb = "${PACKAGE_EXTRA_ARCHS_tune-armv6hfb} armv7ahfb-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500134PACKAGE_EXTRA_ARCHS_tune-armv7athfb = "${PACKAGE_EXTRA_ARCHS_tune-armv6thfb} armv7ahfb-vfp armv7at2hfb-vfp"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500135PACKAGE_EXTRA_ARCHS_tune-armv7ahfb-vfpv3d16 = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahfb} armv7ahfb-vfpv3d16"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500136PACKAGE_EXTRA_ARCHS_tune-armv7athfb-vfpv3d16 = "${PACKAGE_EXTRA_ARCHS_tune-armv7athfb} armv7ahfb-vfpv3d16 armv7at2hfb-vfpv3d16"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500137PACKAGE_EXTRA_ARCHS_tune-armv7ahfb-vfpv3 = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahfb-vfpv3d16} armv7ahfb-vfpv3"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500138PACKAGE_EXTRA_ARCHS_tune-armv7athfb-vfpv3 = "${PACKAGE_EXTRA_ARCHS_tune-armv7athfb-vfpv3d16} armv7ahfb-vfpv3 armv7at2hfb-vfpv3"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500139PACKAGE_EXTRA_ARCHS_tune-armv7ahfb-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahfb} armv7ahfb-neon"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500140PACKAGE_EXTRA_ARCHS_tune-armv7athfb-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7athfb} armv7ahfb-neon armv7at2hfb-neon"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500141PACKAGE_EXTRA_ARCHS_tune-armv7ahfb-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahfb-neon} armv7ahfb-neon-vfpv4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500142PACKAGE_EXTRA_ARCHS_tune-armv7athfb-neon-vfpv4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7athfb-neon} armv7ahfb-neon-vfpv4 armv7at2hfb-neon-vfpv4"