diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-26 12:36:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-27 15:45:49 +0100 |
commit | 9f54793089eb355bb83b8026557f07bfe1cc721f (patch) | |
tree | bc4fffdb46b4461b9f1db3f15d10f800ce0186af /meta/conf/machine/include/powerpc | |
parent | f06bce4882e82d49f1f9ae88546ce3ee41f65b78 (diff) | |
download | poky-9f54793089eb355bb83b8026557f07bfe1cc721f.tar.gz |
Add basic PowerPC core tune config
(From OE-Core rev: 3212029f0967dd353fec8cc147d2b95031d1018a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine/include/powerpc')
-rw-r--r-- | meta/conf/machine/include/powerpc/arch-powerpc.inc | 33 | ||||
-rw-r--r-- | meta/conf/machine/include/powerpc/arch-powerpc64.inc | 10 |
2 files changed, 41 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 @@ | |||
1 | TUNE_ARCH = "powerpc" | 1 | # Power Architecture definition |
2 | # Four defined ABIs, all combinations of: | ||
3 | # *) Hard/Soft Floating Point | ||
4 | # *) 32-bit/64-bit | ||
5 | |||
6 | DEFAULTTUNE ?= "powerpc" | ||
7 | |||
8 | TUNEVALID[m32] = "Power ELF32 standard ABI" | ||
9 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "m32", "-m32", "", d)}" | ||
10 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m32", "powerpc", "", d)}" | ||
11 | |||
12 | TUNEVALID[fpu-hard] = "Use hardware FPU." | ||
13 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard", "-mhard-float", "", d)}" | ||
14 | |||
15 | TUNEVALID[fpu-soft] = "Use software FPU." | ||
16 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "-msoft-float", "", d)}" | ||
17 | TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)}" | ||
18 | |||
19 | ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-efs']]}" | ||
20 | |||
21 | PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}" | ||
22 | |||
23 | TUNE_PKGARCH ?= "${TUNE_ARCH}${PPCPKGSFX_FPU}" | ||
24 | |||
25 | # Basic tune definitions | ||
26 | AVAILTUNES += "powerpc powerpc-nf" | ||
27 | TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" | ||
28 | BASE_LIB_tune-powerpc = "lib" | ||
29 | TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft" | ||
30 | BASE_LIB_tune-powerpc-nf = "lib" | ||
31 | |||
2 | 32 | ||
3 | ABIEXTENSION = "${@['','spe'][bb.data.getVar('TARGET_FPU',d,1) in ['ppc-efd', 'ppc-efs']]}" | ||
diff --git a/meta/conf/machine/include/powerpc/arch-powerpc64.inc b/meta/conf/machine/include/powerpc/arch-powerpc64.inc new file mode 100644 index 0000000000..a99f18d479 --- /dev/null +++ b/meta/conf/machine/include/powerpc/arch-powerpc64.inc | |||
@@ -0,0 +1,10 @@ | |||
1 | TUNEVALID[m64] = "Power ELF64 standard ABI" | ||
2 | TUNE_CONFLICTS[m64] = "m32" | ||
3 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "n64", "-m64", "", d)}" | ||
4 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", [ "m64" ], "powerpc64", "", d)}" | ||
5 | |||
6 | AVAILTUNES += "powerpc64 powerpc64-nf" | ||
7 | TUNE_FEATURES_tune-powerpc64 ?= "m64 fpu-hard" | ||
8 | BASE_LIB_tune-powerpc64 = "lib64" | ||
9 | TUNE_FEATURES_tune-powerpc64-nf ?= "m64 fpu-soft" | ||
10 | BASE_LIB_tune-powerpc64-nf = "lib64" | ||