blob: 678888e6380b059bd95488c6b973342cd87d9b77 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001# This is only for VFPv1 or VFPv2, other vfp* tunes are defined in
2# feature-arm-neon.inc, because they are available only for armv7*
3# and this .inc file is included from armv5
4
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005TUNEVALID[vfp] = "Enable Vector Floating Point (vfp) unit."
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfp', ' vfp', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
Brad Bishopd7bf8c12018-02-25 22:55:05 -05008TUNE_CCARGS .= "${@ (' -mfpu=%s' % d.getVar('TUNE_CCARGS_MFPU').split()[-1]) if (d.getVar('TUNE_CCARGS_MFPU') != '') else ''}"
Brad Bishop19323692019-04-05 15:28:33 -04009# The following deals with both vfpv3-d16 and vfpv4-d16
10ARMPKGSFX_FPU = "${@ ('-%s' % d.getVar('TUNE_CCARGS_MFPU').split()[-1].replace('-d16', 'd16')) if (d.getVar('TUNE_CCARGS_MFPU') != '') else ''}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
12TUNEVALID[callconvention-hard] = "Enable EABI hard float call convention, requires VFP."
Brad Bishop6e60e8b2018-02-01 10:27:11 -050013TUNE_CCARGS_MFLOAT = "${@ bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hard', 'softfp', d) if (d.getVar('TUNE_CCARGS_MFPU') != '') else '' }"
14TUNE_CCARGS .= "${@ ' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}"
15ARMPKGSFX_EABI = "${@ 'hf' if (d.getVar('TUNE_CCARGS_MFLOAT') == 'hard') else ''}"