blob: 52d85901651cd3ecbb179788c3c8dd19a5339d28 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001DEFAULTTUNE ?= "armv5"
2
3TUNEVALID[armv5] = "Enable instructions for ARMv5"
4TUNECONFLICTS[armv5] = "armv4"
Brad Bishop19323692019-04-05 15:28:33 -04005TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv5', ' -march=armv5t${ARMPKGSFX_DSP}', '', d)}"
Andrew Geisslerc3d88e42020-10-02 09:45:00 -05006MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv5', 'armv5:', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
8require conf/machine/include/arm/arch-armv4.inc
9require conf/machine/include/arm/feature-arm-vfp.inc
10
11# Little Endian
12AVAILTUNES += "armv5 armv5t"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050013ARMPKGARCH_tune-armv5 ?= "armv5"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014ARMPKGARCH_tune-armv5t ?= "armv5"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050015TUNE_FEATURES_tune-armv5 = "arm armv5"
16TUNE_FEATURES_tune-armv5t = "${TUNE_FEATURES_tune-armv5} thumb"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050017PACKAGE_EXTRA_ARCHS_tune-armv5 = "${PACKAGE_EXTRA_ARCHS_tune-armv4} armv5"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018PACKAGE_EXTRA_ARCHS_tune-armv5t = "${PACKAGE_EXTRA_ARCHS_tune-armv4t} armv5 armv5t"
19
20# Little Endian + VFP/DSP
21AVAILTUNES += "armv5-vfp armv5t-vfp armv5hf-vfp armv5thf-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050022ARMPKGARCH_tune-armv5-vfp ?= "armv5"
23ARMPKGARCH_tune-armv5t-vfp ?= "armv5"
24ARMPKGARCH_tune-armv5hf-vfp ?= "armv5"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025ARMPKGARCH_tune-armv5thf-vfp ?= "armv5"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026TUNE_FEATURES_tune-armv5-vfp = "${TUNE_FEATURES_tune-armv5} vfp"
27TUNE_FEATURES_tune-armv5t-vfp = "${TUNE_FEATURES_tune-armv5t} vfp"
28TUNE_FEATURES_tune-armv5hf-vfp = "${TUNE_FEATURES_tune-armv5-vfp} callconvention-hard"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050029TUNE_FEATURES_tune-armv5thf-vfp = "${TUNE_FEATURES_tune-armv5t-vfp} callconvention-hard"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050030PACKAGE_EXTRA_ARCHS_tune-armv5-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5} armv5-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050031PACKAGE_EXTRA_ARCHS_tune-armv5t-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5t} armv5-vfp armv5t-vfp"
32PACKAGE_EXTRA_ARCHS_tune-armv5hf-vfp = "armv5hf-vfp"
33PACKAGE_EXTRA_ARCHS_tune-armv5thf-vfp = "armv5hf-vfp armv5thf-vfp"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050034
35# Big Endian
36AVAILTUNES += "armv5b armv5tb"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050037ARMPKGARCH_tune-armv5b ?= "armv5"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050038ARMPKGARCH_tune-armv5tb ?= "armv5"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050039TUNE_FEATURES_tune-armv5b = "${TUNE_FEATURES_tune-armv5} bigendian"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050040TUNE_FEATURES_tune-armv5tb = "${TUNE_FEATURES_tune-armv5t} bigendian"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050041PACKAGE_EXTRA_ARCHS_tune-armv5b = "${PACKAGE_EXTRA_ARCHS_tune-armv4b} armv5b"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050042PACKAGE_EXTRA_ARCHS_tune-armv5tb = "${PACKAGE_EXTRA_ARCHS_tune-armv4tb} armv5b armv5tb"
43
44# Big Endian + VFP/DSP
45AVAILTUNES += "armv5b-vfp armv5tb-vfp armv5hfb-vfp armv5thfb-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050046ARMPKGARCH_tune-armv5b-vfp ?= "armv5"
47ARMPKGARCH_tune-armv5tb-vfp ?= "armv5"
48ARMPKGARCH_tune-armv5hfb-vfp ?= "armv5"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050049ARMPKGARCH_tune-armv5thfb-vfp ?= "armv5"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050050TUNE_FEATURES_tune-armv5b-vfp = "${TUNE_FEATURES_tune-armv5-vfp} bigendian"
51TUNE_FEATURES_tune-armv5tb-vfp = "${TUNE_FEATURES_tune-armv5t-vfp} bigendian"
52TUNE_FEATURES_tune-armv5hfb-vfp = "${TUNE_FEATURES_tune-armv5hf-vfp} bigendian"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050053TUNE_FEATURES_tune-armv5thfb-vfp = "${TUNE_FEATURES_tune-armv5thf-vfp} bigendian"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050054PACKAGE_EXTRA_ARCHS_tune-armv5b-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5b} armv5b-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050055PACKAGE_EXTRA_ARCHS_tune-armv5tb-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5tb} armv5b-vfp armv5tb-vfp"
56PACKAGE_EXTRA_ARCHS_tune-armv5hfb-vfp = "armv5hfb-vfp"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050057PACKAGE_EXTRA_ARCHS_tune-armv5thfb-vfp = "armv5hfb-vfp armv5thfb-vfp"