blob: cf5c3ef8e662a676b499dec507300771e251bf9e [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)}"
Andrew Geissler82c905d2020-04-13 13:39:40 -05008TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', [ 'm64' ], 'powerpc64${ENDIAN_SFX}', '', 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
Brad Bishop79641f22019-09-10 07:20:22 -040016AVAILTUNES += "powerpc64 powerpc64le"
17
18TUNE_FEATURES_tune-powerpc64 = "m64 fpu-hard bigendian"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019BASE_LIB_tune-powerpc64 = "lib64"
20TUNE_PKGARCH_tune-powerpc64 = "powerpc64"
21PACKAGE_EXTRA_ARCHS_tune-powerpc64 = "powerpc64"
Brad Bishop79641f22019-09-10 07:20:22 -040022
23TUNE_FEATURES_tune-powerpc64le = "m64 fpu-hard"
24BASE_LIB_tune-powerpc64le = "lib64"
25TUNE_PKGARCH_tune-powerpc64le = "powerpc64le"
26PACKAGE_EXTRA_ARCHS_tune-powerpc64le = "powerpc64le"