Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # Power Architecture definition |
| 2 | # Four defined ABIs, all combinations of: |
| 3 | # *) Hard/Soft Floating Point |
| 4 | # *) 32-bit/64-bit |
| 5 | |
| 6 | DEFAULTTUNE ?= "powerpc" |
| 7 | |
| 8 | TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}" |
| 9 | ABIEXTENSION ?= "" |
| 10 | |
| 11 | TUNEVALID[m32] = "Power ELF32 standard ABI" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 12 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', ' -m32', '', d)}" |
| 13 | TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', 'powerpc', '', d)}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | |
| 15 | TUNEVALID[fpu-hard] = "Use hardware FPU." |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 16 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', ' -mhard-float', '', d)}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | |
| 18 | TUNEVALID[fpu-soft] = "Use software FPU." |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 19 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-soft', ' -msoft-float', '', d)}" |
| 20 | TARGET_FPU .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-soft', 'soft', '', d)}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | |
| 22 | TUNEVALID[altivec] = "Altivec" |
| 23 | |
| 24 | # Basic tune definitions |
| 25 | AVAILTUNES += "powerpc powerpc-nf" |
| 26 | TUNE_FEATURES_tune-powerpc-nf = "m32 fpu-soft" |
| 27 | BASE_LIB_tune-powerpc-nf = "lib" |
| 28 | TUNE_PKGARCH_tune-powerpc-nf = "powerpc-nf" |
| 29 | PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf" |
| 30 | |
| 31 | TUNE_FEATURES_tune-powerpc = "m32 fpu-hard" |
| 32 | BASE_LIB_tune-powerpc = "lib" |
| 33 | TUNE_PKGARCH_tune-powerpc = "powerpc" |
| 34 | PACKAGE_EXTRA_ARCHS_tune-powerpc = "powerpc" |