summaryrefslogtreecommitdiffstats
path: root/meta/conf
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-26 12:32:29 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-27 15:45:48 +0100
commitf06bce4882e82d49f1f9ae88546ce3ee41f65b78 (patch)
tree322f427a3b3772ecc8efe18ca2b9d85a089d5b2d /meta/conf
parent6afd21bced6513986f27d8cbc7d83bb2d804b5b0 (diff)
downloadpoky-f06bce4882e82d49f1f9ae88546ce3ee41f65b78.tar.gz
Add basic Mips core tune config
Acked-by: Mark Hatle <mark.hatle@windriver.com> (From OE-Core rev: b33cdc23c04acfa55df0f764e1648bf030ae5e9c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r--meta/conf/machine/include/mips/arch-mips.inc68
-rw-r--r--meta/conf/machine/include/tune-mips32.inc11
2 files changed, 76 insertions, 3 deletions
diff --git a/meta/conf/machine/include/mips/arch-mips.inc b/meta/conf/machine/include/mips/arch-mips.inc
index f7f4eeddff..b7ded765c1 100644
--- a/meta/conf/machine/include/mips/arch-mips.inc
+++ b/meta/conf/machine/include/mips/arch-mips.inc
@@ -1 +1,67 @@
1TUNE_ARCH = "mips" 1# MIPS Architecture definition
2# 12 defined ABIs, all combinations of:
3# *) Big/Little Endian
4# *) Hardware/Software Floating Point
5# *) o32, n32, n64 ABI
6
7DEFAULTTUNE ?= "mips"
8
9# Endianess
10TUNEVALID[bigendian] = "Enable big-endian mode"
11TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "-meb", "-mel", d)}"
12
13# ABI flags
14TUNEVALID[o32] = "MIPS o32 ABI"
15TUNECONFLICT[o32] = "n32 n64"
16TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "o32", "-mabi=32", "", d)}"
17
18TUNEVALID[n32] = "MIPS64 n32 ABI"
19TUNECONFLICT[n32] = "o32 n64"
20TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "n32", "-mabi=n32", "", d)}"
21
22TUNEVALID[n64] = "MIPS64 n64 ABI"
23TUNECONFLICT[n64] = "o32 n32"
24TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "n64", "-mabi=64", "", d)}"
25
26# Floating point
27TUNEVALID[fpu-hard] = "Use hardware FPU"
28TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard", "-mhard-float", "-msoft-float", d)}"
29TARGET_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard", "", "soft", d)}"
30
31# Package naming
32MIPSPKGSFX_ENDIAN = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "", "el", d)}"
33MIPSPKGSFX_BYTE = "${@bb.utils.contains("TUNE_FEATURES", "n64" , "64", "", d)}"
34MIPSPKGSFX_BYTE .= "${@bb.utils.contains("TUNE_FEATURES", "n32" , "64", "", d)}"
35MIPSPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"
36MIPSPKGSFX_ABI = "${@bb.utils.contains("TUNE_FEATURES", "n32", "-n32", "", d)}"
37
38TUNE_ARCH = "mips${MIPSPKGSFX_BYTE}${MIPSPKGSFX_ENDIAN}"
39TUNE_PKGARCH ?= "${TUNE_ARCH}${MIPSPKGSFX_FPU}${MIPSPKGSFX_ABI}"
40
41# Base tunes
42AVAILTUNES += "mips mips64-n32 mips64 mipsel mips64el-n32 mips64el mips-nf mips64-nf-n32 mips64-nf mipsel-nf mips64el-nf-n32 mips64el-nf"
43TUNE_FEATURES_tune-mips = "o32 bigendian fpu-hard"
44BASE_LIB_tune-mips = "lib"
45TUNE_FEATURES_tune-mips64-n32 = "n32 bigendian fpu-hard"
46BASE_LIB_tune-mips64-n32 = "lib32"
47TUNE_FEATURES_tune-mips64 = "n64 bigendian fpu-hard"
48BASE_LIB_tune-mips64 = "lib64"
49TUNE_FEATURES_tune-mipsel = "o32 fpu-hard"
50BASE_LIB_tune-mipsel = "lib"
51TUNE_FEATURES_tune-mips64el-n32 = "n32 fpu-hard"
52BASE_LIB_tune-mips64el-n32 = "lib32"
53TUNE_FEATURES_tune-mips64el = "n64 fpu-hard"
54BASE_LIB_tune-mips64el = "lib64"
55TUNE_FEATURES_tune-mips-nf = "o32 bigendian"
56BASE_LIB_tune-mips-nf = "lib"
57TUNE_FEATURES_tune-mips64-nf-n32 = "n32 bigendian"
58BASE_LIB_tune-mips64-nf-n32 = "lib32"
59TUNE_FEATURES_tune-mips64-nf = "n64 bigendian"
60BASE_LIB_tune-mips64-nf = "lib64"
61TUNE_FEATURES_tune-mipsel-nf = "o32"
62BASE_LIB_tune-mipsel-nf = "lib"
63TUNE_FEATURES_tune-mips64el-nf-n32 = "n32"
64BASE_LIB_tune-mips64el-nf-n32 = "lib32"
65TUNE_FEATURES_tune-mips64el-nf = "n64"
66BASE_LIB_tune-mips64el-nf = "lib64"
67
diff --git a/meta/conf/machine/include/tune-mips32.inc b/meta/conf/machine/include/tune-mips32.inc
index 28b00479e2..45792d8fc4 100644
--- a/meta/conf/machine/include/tune-mips32.inc
+++ b/meta/conf/machine/include/tune-mips32.inc
@@ -1,4 +1,11 @@
1DEFAULTTUNE ?= "mips32"
2
1require conf/machine/include/mips/arch-mips.inc 3require conf/machine/include/mips/arch-mips.inc
2 4
3TUNE_CCARGS = "-march=mips32" 5TUNEVALID[mips32] = "Enable mips32 specific processor optimizations"
4TUNE_PKGARCH = "mips" 6TUNE_CONFLICTS[mips32] = "n64 n32"
7TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "mips32", "-march=mips32", "", d)}"
8
9AVAILTUNES += "mips32"
10TUNE_FEATURES_tune-mips32 = "${TUNE_FEATURES_tune-mips} mips32"
11PACKAGE_EXTRA_ARCHS_tune-mips32 = "mips"