blob: e6ff902a95e8e0aea67b4d89f7829889a4e13c36 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001DEFAULTTUNE ?= "armv5"
2
3TUNEVALID[armv5] = "Enable instructions for ARMv5"
4TUNECONFLICTS[armv5] = "armv4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05005TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv5', ' -march=armv5${ARMPKGSFX_THUMB}${ARMPKGSFX_DSP}', '', d)}"
6MACHINEOVERRIDES =. "${@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"
17PACKAGE_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"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -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"
29TUNE_FEATURES_tune-armv5thf-vfp = "${TUNE_FEATURES_tune-armv5t-vfp} callconvention-hard"
30PACKAGE_EXTRA_ARCHS_tune-armv5-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5} armv5-vfp"
31PACKAGE_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"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050039TUNE_FEATURES_tune-armv5b = "${TUNE_FEATURES_tune-armv5} bigendian"
40TUNE_FEATURES_tune-armv5tb = "${TUNE_FEATURES_tune-armv5t} bigendian"
41PACKAGE_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"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -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"
53TUNE_FEATURES_tune-armv5thfb-vfp = "${TUNE_FEATURES_tune-armv5thf-vfp} bigendian"
54PACKAGE_EXTRA_ARCHS_tune-armv5b-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5b} armv5b-vfp"
55PACKAGE_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"