blob: 7531890e2ebda0bee0bd992492495f7ba102dd5b [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001DEFAULTTUNE ?= "armv6hf"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002
3TUNEVALID[armv6] = "Enable instructions for ARMv6"
4TUNECONFLICTS[armv6] = "armv4 armv5"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05005TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv6', ' -march=armv6', '', d)}"
Andrew Geisslerc3d88e42020-10-02 09:45:00 -05006MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv6', 'armv6:', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
8require conf/machine/include/arm/arch-armv5-dsp.inc
9
10# Little Endian
11AVAILTUNES += "armv6-novfp armv6t-novfp armv6 armv6t armv6hf armv6thf"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050012ARMPKGARCH_tune-armv6-novfp ?= "armv6"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013ARMPKGARCH_tune-armv6t-novfp ?= "armv6"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050014ARMPKGARCH_tune-armv6 ?= "armv6"
15ARMPKGARCH_tune-armv6t ?= "armv6"
16ARMPKGARCH_tune-armv6hf ?= "armv6"
17ARMPKGARCH_tune-armv6thf ?= "armv6"
18TUNE_FEATURES_tune-armv6-novfp = "arm armv6"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019TUNE_FEATURES_tune-armv6t-novfp = "${TUNE_FEATURES_tune-armv6-novfp} thumb"
20TUNE_FEATURES_tune-armv6 = "${TUNE_FEATURES_tune-armv6-novfp} vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050021TUNE_FEATURES_tune-armv6t = "${TUNE_FEATURES_tune-armv6t-novfp} vfp"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022TUNE_FEATURES_tune-armv6hf = "${TUNE_FEATURES_tune-armv6} callconvention-hard"
23TUNE_FEATURES_tune-armv6thf = "${TUNE_FEATURES_tune-armv6t} callconvention-hard"
24PACKAGE_EXTRA_ARCHS_tune-armv6-novfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5e} armv6"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025PACKAGE_EXTRA_ARCHS_tune-armv6t-novfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5te} armv6 armv6t"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026PACKAGE_EXTRA_ARCHS_tune-armv6 = "${PACKAGE_EXTRA_ARCHS_tune-armv5e-vfp} armv6 armv6-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027PACKAGE_EXTRA_ARCHS_tune-armv6t = "${PACKAGE_EXTRA_ARCHS_tune-armv5te-vfp} armv6 armv6t armv6-vfp armv6t-vfp"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050028PACKAGE_EXTRA_ARCHS_tune-armv6hf = "${PACKAGE_EXTRA_ARCHS_tune-armv5ehf-vfp} armv6hf-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050029PACKAGE_EXTRA_ARCHS_tune-armv6thf = "${PACKAGE_EXTRA_ARCHS_tune-armv5tehf-vfp} armv6hf-vfp armv6thf-vfp"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030
31# Big Endian
32AVAILTUNES += "armv6b-novfp armv6tb-novfp armv6b armv6tb armv6hfb armv6thfb"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050033ARMPKGARCH_tune-armv6b-novfp ?= "armv6"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050034ARMPKGARCH_tune-armv6tb-novfp ?= "armv6"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050035ARMPKGARCH_tune-armv6b ?= "armv6"
36ARMPKGARCH_tune-armv6tb ?= "armv6"
37ARMPKGARCH_tune-armv6hfb ?= "armv6"
38ARMPKGARCH_tune-armv6thfb ?= "armv6"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050039TUNE_FEATURES_tune-armv6b-novfp = "${TUNE_FEATURES_tune-armv6-novfp} bigendian"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050040TUNE_FEATURES_tune-armv6tb-novfp = "${TUNE_FEATURES_tune-armv6t-novfp} bigendian"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050041TUNE_FEATURES_tune-armv6b = "${TUNE_FEATURES_tune-armv6} bigendian"
42TUNE_FEATURES_tune-armv6tb = "${TUNE_FEATURES_tune-armv6t} bigendian"
43TUNE_FEATURES_tune-armv6hfb = "${TUNE_FEATURES_tune-armv6hf} bigendian"
44TUNE_FEATURES_tune-armv6thfb = "${TUNE_FEATURES_tune-armv6thf} bigendian"
45PACKAGE_EXTRA_ARCHS_tune-armv6b-novfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5eb} armv6b"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046PACKAGE_EXTRA_ARCHS_tune-armv6tb-novfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5teb} armv6b armv6tb"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050047PACKAGE_EXTRA_ARCHS_tune-armv6b = "${PACKAGE_EXTRA_ARCHS_tune-armv5eb-vfp} armv6b armv6b-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050048PACKAGE_EXTRA_ARCHS_tune-armv6tb = "${PACKAGE_EXTRA_ARCHS_tune-armv5teb-vfp} armv6b armv6tb armv6b-vfp armv6tb-vfp"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050049PACKAGE_EXTRA_ARCHS_tune-armv6hfb = "${PACKAGE_EXTRA_ARCHS_tune-armv5ehfb-vfp} armv6hfb-vfp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050050PACKAGE_EXTRA_ARCHS_tune-armv6thfb = "${PACKAGE_EXTRA_ARCHS_tune-armv5tehfb-vfp} armv6hfb-vfp armv6thfb-vfp"