blob: d9916d43da9273012717a2982292d194a7507ba3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001DEFAULTTUNE ?= "powerpc64"
2
3require conf/machine/include/powerpc/arch-powerpc.inc
4
5TUNEVALID[m64] = "Power ELF64 standard ABI"
6TUNECONFLICTS[m64] = "m32 nf"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05007TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'm64', ' -m64', '', d)}"
8TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', [ 'm64' ], 'powerpc64', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009
Brad Bishop19323692019-04-05 15:28:33 -040010# musl only supports elfv2 ABI for ppc64
11TUNE_CCARGS .= "${@['', ' -mabi=elfv2']['libc-musl' in d.getVar('OVERRIDES').split(':')]}"
12
Patrick Williamsc0f7c042017-02-23 20:41:17 -060013# user mode qemu doesn't support ppc64
14MACHINE_FEATURES_BACKFILL_CONSIDERED_append = " ${@bb.utils.contains('TUNE_FEATURES', 'm64', 'qemu-usermode', '', d)}"
15
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016AVAILTUNES += "powerpc64"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050017TUNE_FEATURES_tune-powerpc64 = "m64 fpu-hard"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018BASE_LIB_tune-powerpc64 = "lib64"
19TUNE_PKGARCH_tune-powerpc64 = "powerpc64"
20PACKAGE_EXTRA_ARCHS_tune-powerpc64 = "powerpc64"