summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-26 12:36:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-27 15:45:49 +0100
commit9f54793089eb355bb83b8026557f07bfe1cc721f (patch)
treebc4fffdb46b4461b9f1db3f15d10f800ce0186af /meta
parentf06bce4882e82d49f1f9ae88546ce3ee41f65b78 (diff)
downloadpoky-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')
-rw-r--r--meta/conf/machine/include/powerpc/arch-powerpc.inc33
-rw-r--r--meta/conf/machine/include/powerpc/arch-powerpc64.inc10
-rw-r--r--meta/conf/machine/include/tune-ppc603e.inc12
-rw-r--r--meta/conf/machine/include/tune-ppce300c2.inc12
-rw-r--r--meta/conf/machine/include/tune-ppce500.inc18
-rw-r--r--meta/conf/machine/include/tune-ppce500mc.inc12
-rw-r--r--meta/conf/machine/include/tune-ppce500v2.inc17
7 files changed, 96 insertions, 18 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']]}"
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 @@
1TUNEVALID[m64] = "Power ELF64 standard ABI"
2TUNE_CONFLICTS[m64] = "m32"
3TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "n64", "-m64", "", d)}"
4TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", [ "m64" ], "powerpc64", "", d)}"
5
6AVAILTUNES += "powerpc64 powerpc64-nf"
7TUNE_FEATURES_tune-powerpc64 ?= "m64 fpu-hard"
8BASE_LIB_tune-powerpc64 = "lib64"
9TUNE_FEATURES_tune-powerpc64-nf ?= "m64 fpu-soft"
10BASE_LIB_tune-powerpc64-nf = "lib64"
diff --git a/meta/conf/machine/include/tune-ppc603e.inc b/meta/conf/machine/include/tune-ppc603e.inc
index 61c0669acf..7c053944aa 100644
--- a/meta/conf/machine/include/tune-ppc603e.inc
+++ b/meta/conf/machine/include/tune-ppc603e.inc
@@ -1,5 +1,11 @@
1DEFAULTTUNE ?= "ppc603e"
2
1require conf/machine/include/powerpc/arch-powerpc.inc 3require conf/machine/include/powerpc/arch-powerpc.inc
2 4
3TUNE_CCARGS = "-mcpu=603e -mhard-float" 5TUNEVALID[ppc603e] = "Enable ppc603e specific processor optimizations"
4TUNE_PKGARCH = "ppc603e" 6TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "-mcpu=603e", "", d)}"
5PACKAGE_EXTRA_ARCHS = "powerpc ppc603e" 7TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "ppc603e", "", d)}"
8
9AVAILTUNES += "ppc603e"
10TUNE_FEATURES_tune-ppc603e = "m32 fpu-hard ppc603e"
11PACKAGE_EXTRA_ARCHS_tune-ppc603e = "powerpc ppc603e"
diff --git a/meta/conf/machine/include/tune-ppce300c2.inc b/meta/conf/machine/include/tune-ppce300c2.inc
index a38e97c18b..bad2611ca5 100644
--- a/meta/conf/machine/include/tune-ppce300c2.inc
+++ b/meta/conf/machine/include/tune-ppce300c2.inc
@@ -1,5 +1,11 @@
1DEFAULTTUNE ?= "ppce300c2"
2
1require conf/machine/include/powerpc/arch-powerpc.inc 3require conf/machine/include/powerpc/arch-powerpc.inc
2 4
3TUNE_CCARGS = "-mcpu=e300c2 -msoft-float" 5TUNEVALID[ppce300c2] = "Enable ppce300c2 specific processor optimizations"
4TUNE_PKGARCH = "ppce300" 6TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce300c2", "-mcpu=e300c2", "", d)}"
5PACKAGE_EXTRA_ARCHS = "powerpc ppce300" 7TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce300c2", "ppce300c2", "${TUNE_ARCH}", d)}"
8
9AVAILTUNES += "ppce300c2"
10TUNE_FEATURES_tune-ppce300c2 = "m32 fpu-soft ppce300c2"
11PACKAGE_EXTRA_ARCHS_tune-ppce300c2 = "powerpc-nf ppce300c2"
diff --git a/meta/conf/machine/include/tune-ppce500.inc b/meta/conf/machine/include/tune-ppce500.inc
index 22208f0722..c34d63149f 100644
--- a/meta/conf/machine/include/tune-ppce500.inc
+++ b/meta/conf/machine/include/tune-ppce500.inc
@@ -1,6 +1,16 @@
1DEFAULTTUNE ?= "ppce500"
2
1require conf/machine/include/powerpc/arch-powerpc.inc 3require conf/machine/include/powerpc/arch-powerpc.inc
2 4
3TUNE_CCARGS = "-mcpu=8540" 5TUNEVALID[ppce500] = "Enable ppce500 specific processor optimizations"
4BASE_PACKAGE_ARCH = "ppce500" 6TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500", "-mcpu=8540", "", d)}"
5TUNE_PKGARCH = "ppce500" 7TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "ppce500", "ppce500", "", d)}"
6PACKAGE_EXTRA_ARCHS = "powerpc ppce500" 8
9TUNEVALID[spe] = "Enable SPE ABI extensions"
10TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "spe", "-mabi=spe -mspe", "", d)}"
11
12TARGET_FPU = "ppc-efs"
13
14AVAILTUNES += "ppce500"
15TUNE_FEATURES_tune-ppce500 = "m32 spe ppce500"
16PACKAGE_EXTRA_ARCHS_tune-ppce500 = "ppce500"
diff --git a/meta/conf/machine/include/tune-ppce500mc.inc b/meta/conf/machine/include/tune-ppce500mc.inc
index 182d019c32..a4cdb1f729 100644
--- a/meta/conf/machine/include/tune-ppce500mc.inc
+++ b/meta/conf/machine/include/tune-ppce500mc.inc
@@ -1,5 +1,11 @@
1DEFAULTTUNE ?= "ppce500mc"
2
1require conf/machine/include/powerpc/arch-powerpc.inc 3require conf/machine/include/powerpc/arch-powerpc.inc
2 4
3TUNE_CCARGS = "-mcpu=e500mc" 5TUNEVALID[ppce500mc] = "Enable ppce500mc specific processor optimizations"
4TUNE_PKGARCH = "ppce500mc" 6TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "-mcpu=e500mc", "", d)}"
5PACKAGE_EXTRA_ARCHS = "powerpc ppce500mc" 7TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "ppce500mc", "", d)}"
8
9AVAILTUNES += "ppce500mc"
10TUNE_FEATURES_tune-ppce500mc = "m32 hard-fpu ppce500mc"
11PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "powerpc ppce500mc"
diff --git a/meta/conf/machine/include/tune-ppce500v2.inc b/meta/conf/machine/include/tune-ppce500v2.inc
index daf2d58005..819d68a50e 100644
--- a/meta/conf/machine/include/tune-ppce500v2.inc
+++ b/meta/conf/machine/include/tune-ppce500v2.inc
@@ -1,5 +1,16 @@
1DEFAULTTUNE ?= "ppce500v2"
2
1require conf/machine/include/powerpc/arch-powerpc.inc 3require conf/machine/include/powerpc/arch-powerpc.inc
2 4
3TUNE_CCARGS = "-mcpu=8548 -mabi=spe -mspe" 5TUNEVALID[ppce500v2] = "Enable ppce500v2 specific processor optimizations"
4TUNE_PKGARCH = "ppce500v2" 6TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500v2", "-mcpu=8548", "", d)}"
5PACKAGE_EXTRA_ARCHS = "powerpc ppce500v2" 7TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "ppce500v2", "ppce500v2", "", d)}"
8
9TUNEVALID[spe] = "Enable SPE ABI extensions"
10TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "spe", "-mabi=spe -mspe", "", d)}"
11
12TARGET_FPU = "ppc-efd"
13
14AVAILTUNES += "ppce500v2"
15TUNE_FEATURES_tune-ppce500v2 = "m32 spe ppce500v2"
16PACKAGE_EXTRA_ARCHS_tune-ppce500v2 = "ppce500v2"