blob: cc67dcd304d2f509a686814dda85f07bd8e32b52 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001DEFAULTTUNE ?= "armv5te"
2
3require conf/machine/include/arm/arch-armv5-dsp.inc
4
5TUNEVALID[xscale] = "Enable PXA255/PXA26x Xscale specific processor optimizations"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'xscale', ' -mcpu=xscale', '', d)}"
Andrew Geisslerc3d88e42020-10-02 09:45:00 -05007MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'xscale', 'armv5:', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008
9AVAILTUNES += "xscale"
Patrick Williams213cb262021-08-07 19:21:33 -050010ARMPKGARCH:tune-xscale = "xscale"
Brad Bishop19323692019-04-05 15:28:33 -040011# mcpu is used so don't use armv5te as we don't want march
Patrick Williams213cb262021-08-07 19:21:33 -050012TUNE_FEATURES:tune-xscale = "arm thumb dsp xscale"
13PACKAGE_EXTRA_ARCHS:tune-xscale = "${PACKAGE_EXTRA_ARCHS:tune-armv5te} xscale xscalet xscalee xscalete"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014
15AVAILTUNES += "xscale-be"
Patrick Williams213cb262021-08-07 19:21:33 -050016ARMPKGARCH:tune-xscale-be = "xscale"
Brad Bishop19323692019-04-05 15:28:33 -040017# mcpu is used so don't use armv5te as we don't want march
Patrick Williams213cb262021-08-07 19:21:33 -050018TUNE_FEATURES:tune-xscale-be = "${TUNE_FEATURES:tune-xscale} bigendian"
19PACKAGE_EXTRA_ARCHS:tune-xscale-be = "${PACKAGE_EXTRA_ARCHS:tune-armv5teb} xscaleb xscaletb xscaleeb xscaleteb"