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 | |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 11 | # Endian |
| 12 | TUNEVALID[bigendian] = "Use PowerPC Big Endian" |
| 13 | |
| 14 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endian", " -mlittle-endian", d)}" |
| 15 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | TUNEVALID[m32] = "Power ELF32 standard ABI" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 17 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', ' -m32', '', d)}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 18 | TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', 'powerpc${ENDIAN_SFX}', '', d)}" |
| 19 | ENDIAN_SFX = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', '', 'le', d)}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | |
| 21 | TUNEVALID[fpu-hard] = "Use hardware FPU." |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 22 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', ' -mhard-float', '', d)}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | |
| 24 | TUNEVALID[fpu-soft] = "Use software FPU." |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 25 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-soft', ' -msoft-float', '', d)}" |
| 26 | TARGET_FPU .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-soft', 'soft', '', d)}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | |
| 28 | TUNEVALID[altivec] = "Altivec" |
| 29 | |
| 30 | # Basic tune definitions |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 31 | AVAILTUNES += "powerpc powerpc-nf powerpcle powerpcle-nf" |
| 32 | |
| 33 | TUNE_FEATURES_tune-powerpc-nf = "m32 fpu-soft bigendian" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 34 | BASE_LIB_tune-powerpc-nf = "lib" |
| 35 | TUNE_PKGARCH_tune-powerpc-nf = "powerpc-nf" |
| 36 | PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf" |
| 37 | |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 38 | TUNE_FEATURES_tune-powerpc = "m32 fpu-hard bigendian" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | BASE_LIB_tune-powerpc = "lib" |
| 40 | TUNE_PKGARCH_tune-powerpc = "powerpc" |
| 41 | PACKAGE_EXTRA_ARCHS_tune-powerpc = "powerpc" |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 42 | |
| 43 | TUNE_FEATURES_tune-powerpcle-nf = "m32 fpu-soft" |
| 44 | BASE_LIB_tune-powerpcle-nf = "lib" |
| 45 | TUNE_PKGARCH_tune-powerpcle-nf = "powerpcle-nf" |
| 46 | PACKAGE_EXTRA_ARCHS_tune-powerpcle-nf = "powerpcle-nf" |
| 47 | |
| 48 | TUNE_FEATURES_tune-powerpcle = "m32 fpu-hard" |
| 49 | BASE_LIB_tune-powerpcle = "lib" |
| 50 | TUNE_PKGARCH_tune-powerpcle = "powerpcle" |
| 51 | PACKAGE_EXTRA_ARCHS_tune-powerpcle = "powerpcle" |