summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/include/powerpc/arch-powerpc.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf/machine/include/powerpc/arch-powerpc.inc')
-rw-r--r--meta/conf/machine/include/powerpc/arch-powerpc.inc33
1 files changed, 31 insertions, 2 deletions
diff --git a/meta/conf/machine/include/powerpc/arch-powerpc.inc b/meta/conf/machine/include/powerpc/arch-powerpc.inc
index 17ace32a42..8cc76ab734 100644
--- a/meta/conf/machine/include/powerpc/arch-powerpc.inc
+++ b/meta/conf/machine/include/powerpc/arch-powerpc.inc
@@ -1,3 +1,32 @@
1TUNE_ARCH = "powerpc" 1# Power Architecture definition
2# Four defined ABIs, all combinations of:
3# *) Hard/Soft Floating Point
4# *) 32-bit/64-bit
5
6DEFAULTTUNE ?= "powerpc"
7
8TUNEVALID[m32] = "Power ELF32 standard ABI"
9TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "m32", "-m32", "", d)}"
10TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m32", "powerpc", "", d)}"
11
12TUNEVALID[fpu-hard] = "Use hardware FPU."
13TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard", "-mhard-float", "", d)}"
14
15TUNEVALID[fpu-soft] = "Use software FPU."
16TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "-msoft-float", "", d)}"
17TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)}"
18
19ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-efs']]}"
20
21PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"
22
23TUNE_PKGARCH ?= "${TUNE_ARCH}${PPCPKGSFX_FPU}"
24
25# Basic tune definitions
26AVAILTUNES += "powerpc powerpc-nf"
27TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard"
28BASE_LIB_tune-powerpc = "lib"
29TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft"
30BASE_LIB_tune-powerpc-nf = "lib"
31
2 32
3ABIEXTENSION = "${@['','spe'][bb.data.getVar('TARGET_FPU',d,1) in ['ppc-efd', 'ppc-efs']]}"