Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | DEFAULTTUNE ?= "armv5" |
| 2 | |
| 3 | TUNEVALID[armv5] = "Enable instructions for ARMv5" |
| 4 | TUNECONFLICTS[armv5] = "armv4" |
| 5 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "armv5", " -march=armv5${ARMPKGSFX_THUMB}${ARMPKGSFX_DSP}", "", d)}" |
| 6 | MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "armv5", "armv5:", "" ,d)}" |
| 7 | |
| 8 | ARMPKGSFX_DSP = "${@bb.utils.contains("TUNE_FEATURES", [ "armv5", "dsp" ], "e", "", d)}" |
| 9 | |
| 10 | require conf/machine/include/arm/arch-armv4.inc |
| 11 | require conf/machine/include/arm/feature-arm-vfp.inc |
| 12 | |
| 13 | # Little Endian |
| 14 | AVAILTUNES += "armv5 armv5t" |
| 15 | ARMPKGARCH_tune-armv5 ?= "armv5" |
| 16 | ARMPKGARCH_tune-armv5t ?= "armv5" |
| 17 | TUNE_FEATURES_tune-armv5 ?= "arm armv5" |
| 18 | TUNE_FEATURES_tune-armv5t ?= "${TUNE_FEATURES_tune-armv5} thumb" |
| 19 | PACKAGE_EXTRA_ARCHS_tune-armv5 = "${PACKAGE_EXTRA_ARCHS_tune-armv4} armv5" |
| 20 | PACKAGE_EXTRA_ARCHS_tune-armv5t = "${PACKAGE_EXTRA_ARCHS_tune-armv4t} armv5 armv5t" |
| 21 | |
| 22 | # Little Endian + VFP/DSP |
| 23 | AVAILTUNES += "armv5-vfp armv5t-vfp armv5hf-vfp armv5thf-vfp" |
| 24 | ARMPKGARCH_tune-armv5-vfp ?= "armv5" |
| 25 | ARMPKGARCH_tune-armv5t-vfp ?= "armv5" |
| 26 | ARMPKGARCH_tune-armv5hf-vfp ?= "armv5" |
| 27 | ARMPKGARCH_tune-armv5thf-vfp ?= "armv5" |
| 28 | TUNE_FEATURES_tune-armv5-vfp ?= "${TUNE_FEATURES_tune-armv5} vfp" |
| 29 | TUNE_FEATURES_tune-armv5t-vfp ?= "${TUNE_FEATURES_tune-armv5t} vfp" |
| 30 | TUNE_FEATURES_tune-armv5hf-vfp ?= "${TUNE_FEATURES_tune-armv5-vfp} callconvention-hard" |
| 31 | TUNE_FEATURES_tune-armv5thf-vfp ?= "${TUNE_FEATURES_tune-armv5t-vfp} callconvention-hard" |
| 32 | PACKAGE_EXTRA_ARCHS_tune-armv5-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5} armv5-vfp" |
| 33 | PACKAGE_EXTRA_ARCHS_tune-armv5t-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5t} armv5-vfp armv5t-vfp" |
| 34 | PACKAGE_EXTRA_ARCHS_tune-armv5hf-vfp = "armv5hf-vfp" |
| 35 | PACKAGE_EXTRA_ARCHS_tune-armv5thf-vfp = "armv5hf-vfp armv5thf-vfp" |
| 36 | PACKAGE_EXTRA_ARCHS_tune-armv5tehf-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5thf-vfp} armv5ehf-vfp armv5tehf-vfp" |
| 37 | |
| 38 | # Big Endian |
| 39 | AVAILTUNES += "armv5b armv5tb" |
| 40 | ARMPKGARCH_tune-armv5b ?= "armv5" |
| 41 | ARMPKGARCH_tune-armv5tb ?= "armv5" |
| 42 | TUNE_FEATURES_tune-armv5b ?= "${TUNE_FEATURES_tune-armv5} bigendian" |
| 43 | TUNE_FEATURES_tune-armv5tb ?= "${TUNE_FEATURES_tune-armv5t} bigendian" |
| 44 | PACKAGE_EXTRA_ARCHS_tune-armv5b = "${PACKAGE_EXTRA_ARCHS_tune-armv4b} armv5b" |
| 45 | PACKAGE_EXTRA_ARCHS_tune-armv5tb = "${PACKAGE_EXTRA_ARCHS_tune-armv4tb} armv5b armv5tb" |
| 46 | |
| 47 | # Big Endian + VFP/DSP |
| 48 | AVAILTUNES += "armv5b-vfp armv5tb-vfp armv5hfb-vfp armv5thfb-vfp" |
| 49 | ARMPKGARCH_tune-armv5b-vfp ?= "armv5" |
| 50 | ARMPKGARCH_tune-armv5tb-vfp ?= "armv5" |
| 51 | ARMPKGARCH_tune-armv5hfb-vfp ?= "armv5" |
| 52 | ARMPKGARCH_tune-armv5thfb-vfp ?= "armv5" |
| 53 | TUNE_FEATURES_tune-armv5b-vfp ?= "${TUNE_FEATURES_tune-armv5-vfp} bigendian" |
| 54 | TUNE_FEATURES_tune-armv5tb-vfp ?= "${TUNE_FEATURES_tune-armv5t-vfp} bigendian" |
| 55 | TUNE_FEATURES_tune-armv5hfb-vfp ?= "${TUNE_FEATURES_tune-armv5hf-vfp} bigendian" |
| 56 | TUNE_FEATURES_tune-armv5thfb-vfp ?= "${TUNE_FEATURES_tune-armv5thf-vfp} bigendian" |
| 57 | PACKAGE_EXTRA_ARCHS_tune-armv5b-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5b} armv5b-vfp" |
| 58 | PACKAGE_EXTRA_ARCHS_tune-armv5tb-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5tb} armv5b-vfp armv5tb-vfp" |
| 59 | PACKAGE_EXTRA_ARCHS_tune-armv5hfb-vfp = "armv5hfb-vfp" |
| 60 | PACKAGE_EXTRA_ARCHS_tune-armv5thfb-vfp = "armv5hfb-vfp armv5thfb-vfp" |