Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | DEFAULTTUNE ?= "powerpc64" |
| 2 | |
| 3 | require conf/machine/include/powerpc/arch-powerpc.inc |
| 4 | |
| 5 | TUNEVALID[m64] = "Power ELF64 standard ABI" |
| 6 | TUNECONFLICTS[m64] = "m32 nf" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 7 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'm64', ' -m64', '', d)}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 8 | TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', [ 'm64' ], 'powerpc64${ENDIAN_SFX}', '', d)}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 10 | # musl only supports elfv2 ABI for ppc64 |
| 11 | TUNE_CCARGS .= "${@['', ' -mabi=elfv2']['libc-musl' in d.getVar('OVERRIDES').split(':')]}" |
| 12 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 13 | # user mode qemu doesn't support ppc64 |
| 14 | MACHINE_FEATURES_BACKFILL_CONSIDERED_append = " ${@bb.utils.contains('TUNE_FEATURES', 'm64', 'qemu-usermode', '', d)}" |
| 15 | |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 16 | AVAILTUNES += "powerpc64 powerpc64le" |
| 17 | |
| 18 | TUNE_FEATURES_tune-powerpc64 = "m64 fpu-hard bigendian" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | BASE_LIB_tune-powerpc64 = "lib64" |
| 20 | TUNE_PKGARCH_tune-powerpc64 = "powerpc64" |
| 21 | PACKAGE_EXTRA_ARCHS_tune-powerpc64 = "powerpc64" |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 22 | |
| 23 | TUNE_FEATURES_tune-powerpc64le = "m64 fpu-hard" |
| 24 | BASE_LIB_tune-powerpc64le = "lib64" |
| 25 | TUNE_PKGARCH_tune-powerpc64le = "powerpc64le" |
| 26 | PACKAGE_EXTRA_ARCHS_tune-powerpc64le = "powerpc64le" |