blob: ef18e9ac8bd60cf96d655c7162f0e547de1d355f [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# Power Architecture definition
2# Four defined ABIs, all combinations of:
3# *) Hard/Soft Floating Point
4# *) 32-bit/64-bit
5
6DEFAULTTUNE ?= "powerpc"
7
8TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}"
9ABIEXTENSION ?= ""
10
Brad Bishop79641f22019-09-10 07:20:22 -040011# Endian
12TUNEVALID[bigendian] = "Use PowerPC Big Endian"
13
14TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endian", " -mlittle-endian", d)}"
15
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016TUNEVALID[m32] = "Power ELF32 standard ABI"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050017TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', ' -m32', '', d)}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050018TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', 'powerpc${ENDIAN_SFX}', '', d)}"
19ENDIAN_SFX = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', '', 'le', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020
21TUNEVALID[fpu-hard] = "Use hardware FPU."
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050022TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', ' -mhard-float', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023
24TUNEVALID[fpu-soft] = "Use software FPU."
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-soft', ' -msoft-float', '', d)}"
26TARGET_FPU .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-soft', 'soft', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027
28TUNEVALID[altivec] = "Altivec"
29
30# Basic tune definitions
Brad Bishop79641f22019-09-10 07:20:22 -040031AVAILTUNES += "powerpc powerpc-nf powerpcle powerpcle-nf"
32
33TUNE_FEATURES_tune-powerpc-nf = "m32 fpu-soft bigendian"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050034BASE_LIB_tune-powerpc-nf = "lib"
35TUNE_PKGARCH_tune-powerpc-nf = "powerpc-nf"
36PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf"
37
Brad Bishop79641f22019-09-10 07:20:22 -040038TUNE_FEATURES_tune-powerpc = "m32 fpu-hard bigendian"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039BASE_LIB_tune-powerpc = "lib"
40TUNE_PKGARCH_tune-powerpc = "powerpc"
41PACKAGE_EXTRA_ARCHS_tune-powerpc = "powerpc"
Brad Bishop79641f22019-09-10 07:20:22 -040042
43TUNE_FEATURES_tune-powerpcle-nf = "m32 fpu-soft"
44BASE_LIB_tune-powerpcle-nf = "lib"
45TUNE_PKGARCH_tune-powerpcle-nf = "powerpcle-nf"
46PACKAGE_EXTRA_ARCHS_tune-powerpcle-nf = "powerpcle-nf"
47
48TUNE_FEATURES_tune-powerpcle = "m32 fpu-hard"
49BASE_LIB_tune-powerpcle = "lib"
50TUNE_PKGARCH_tune-powerpcle = "powerpcle"
51PACKAGE_EXTRA_ARCHS_tune-powerpcle = "powerpcle"