summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>2016-09-23 14:47:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-24 07:30:09 +0100
commit2f4b80b3061368917ecad432094e7128f8f3b740 (patch)
tree433a5be0f21a2bc16117382e1bd1b80f007551a3
parent0f16c904c6169c85e600000a9d2ea2ac195fa265 (diff)
downloadpoky-2f4b80b3061368917ecad432094e7128f8f3b740.tar.gz
arch-mips: Add mips64r2 tunes
Add MIPS64r2 optimizations (From OE-Core rev: 4c10376bdfd54af75de840bd4a31386e6e89477e) Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/machine/include/tune-mips64r2.inc84
1 files changed, 84 insertions, 0 deletions
diff --git a/meta/conf/machine/include/tune-mips64r2.inc b/meta/conf/machine/include/tune-mips64r2.inc
new file mode 100644
index 0000000000..75d7535add
--- /dev/null
+++ b/meta/conf/machine/include/tune-mips64r2.inc
@@ -0,0 +1,84 @@
1DEFAULTTUNE ?= "mips64r2"
2
3require conf/machine/include/tune-mips64.inc
4
5TUNEVALID[mips64r2] = "Enable mips64r2 specific processor optimizations"
6TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'mips64r2', ' -march=mips64r2', '', d)}"
7
8# Base tunes
9AVAILTUNES += "mips64r2 mips64r2el"
10
11TUNE_FEATURES_tune-mips64r2 = "${TUNE_FEATURES_tune-mips64} mips64r2"
12BASE_LIB_tune-mips64r2 = "lib64"
13MIPSPKGSFX_VARIANT_tune-mips64r2 = "mips64r2"
14PACKAGE_EXTRA_ARCHS_tune-mips64r2 = "mips64 mips64r2"
15
16TUNE_FEATURES_tune-mips64r2el = "${TUNE_FEATURES_tune-mips64el} mips64r2"
17BASE_LIB_tune-mips64r2el = "lib64"
18MIPSPKGSFX_VARIANT_tune-mips64r2el = "mips64r2el"
19PACKAGE_EXTRA_ARCHS_tune-mips64r2el = "mips64el mips64r2el"
20
21# MIPS 64r2 Soft Float
22AVAILTUNES += "mips64r2-nf mips64r2el-nf"
23
24TUNE_FEATURES_tune-mips64r2-nf = "${TUNE_FEATURES_tune-mips64-nf} mips64r2"
25BASE_LIB_tune-mips64r2-nf = "lib64"
26MIPSPKGSFX_VARIANT_tune-mips64r2-nf = "${TUNE_ARCH}"
27PACKAGE_EXTRA_ARCHS_tune-mips64r2-nf = "mips64-nf mips64r2-nf"
28
29TUNE_FEATURES_tune-mips64r2el-nf = "${TUNE_FEATURES_tune-mips64el-nf} mips64r2"
30BASE_LIB_tune-mips64r2el-nf = "lib64"
31MIPSPKGSFX_VARIANT_tune-mips64r2el-nf = "${TUNE_ARCH}"
32PACKAGE_EXTRA_ARCHS_tune-mips64r2el-nf = "mips64el-nf mips64r2el-nf"
33
34# MIPS 64r2 n32
35AVAILTUNES += "mips64r2-n32 mips64r2el-n32"
36
37TUNE_FEATURES_tune-mips64r2-n32 = "${TUNE_FEATURES_tune-mips64-n32} mips64r2"
38BASE_LIB_tune-mips64r2-n32 = "lib32"
39MIPSPKGSFX_VARIANT_tune-mips64r2-n32 = "${TUNE_ARCH}"
40PACKAGE_EXTRA_ARCHS_tune-mips64r2-n32 = "mips64-n32 mips64r2-n32"
41
42TUNE_FEATURES_tune-mips64r2el-n32 = "${TUNE_FEATURES_tune-mips64el-n32} mips64r2"
43BASE_LIB_tune-mips64r2el-n32 = "lib32"
44MIPSPKGSFX_VARIANT_tune-mips64r2el-n32 = "${TUNE_ARCH}"
45PACKAGE_EXTRA_ARCHS_tune-mips64r2el-n32 = "mips64el-n32 mips64r2el-n32"
46
47# MIPS 64r2 n32 and Soft Float
48AVAILTUNES += "mips64r2-nf-n32 mips64r2el-nf-n32"
49
50TUNE_FEATURES_tune-mips64r2-nf-n32 = "${TUNE_FEATURES_tune-mips64-nf-n32} mips64r2"
51BASE_LIB_tune-mips64r2-nf-n32 = "lib32"
52MIPSPKGSFX_VARIANT_tune-mips64r2-nf-n32 = "${TUNE_ARCH}"
53PACKAGE_EXTRA_ARCHS_tune-mips64r2-nf-n32 = "mips64-nf-n32 mips64r2-nf-n32"
54
55TUNE_FEATURES_tune-mips64r2el-nf-n32 = "${TUNE_FEATURES_tune-mips64el-nf-n32} mips64r2"
56BASE_LIB_tune-mips64r2el-nf-n32 = "lib32"
57MIPSPKGSFX_VARIANT_tune-mips64r2el-nf-n32 = "${TUNE_ARCH}"
58PACKAGE_EXTRA_ARCHS_tune-mips64r2el-nf-n32 = "mips64el-nf-n32 mips64r2el-nf-n32"
59
60# MIPS 64r2 o32
61AVAILTUNES += "mips64r2-o32 mips64r2el-o32"
62
63TUNE_FEATURES_tune-mips64r2-o32 = "${TUNE_FEATURES_tune-mips64-o32} mips64r2"
64BASE_LIB_tune-mips64r2-o32 = "lib"
65MIPSPKGSFX_VARIANT_tune-mips64r2-o32 = "${TUNE_ARCH}"
66PACKAGE_EXTRA_ARCHS_tune-mips64r2-o32 = "mips mips64-o32 mips64r2-o32"
67
68TUNE_FEATURES_tune-mips64r2el-o32 = "${TUNE_FEATURES_tune-mips64el-o32} mips64r2"
69BASE_LIB_tune-mips64r2el-o32 = "lib"
70MIPSPKGSFX_VARIANT_tune-mips64r2el-o32 = "${TUNE_ARCH}"
71PACKAGE_EXTRA_ARCHS_tune-mips64r2el-o32 = "mipsel mips64el-o32 mips64r2el-o32"
72
73# MIPS 64r2 o32 and Soft Float
74AVAILTUNES += "mips64r2-nf-o32 mips64r2el-nf-o32"
75
76TUNE_FEATURES_tune-mips64r2-nf-o32 = "${TUNE_FEATURES_tune-mips64-nf-o32} mips64r2"
77BASE_LIB_tune-mips64r2-nf-o32 = "lib"
78MIPSPKGSFX_VARIANT_tune-mips64r2-nf-o32 = "${TUNE_ARCH}"
79PACKAGE_EXTRA_ARCHS_tune-mips64r2-nf-o32 = "mips-nf mips64r2-nf-o32"
80
81TUNE_FEATURES_tune-mips64r2el-nf-o32 = "${TUNE_FEATURES_tune-mips64el-nf-o32} mips64r2"
82BASE_LIB_tune-mips64r2el-nf-o32 = "lib"
83MIPSPKGSFX_VARIANT_tune-mips64r2el-nf-o32 = "${TUNE_ARCH}"
84PACKAGE_EXTRA_ARCHS_tune-mips64r2el-nf-o32 = "mipsel-nf mips64r2el-nf-o32"