summaryrefslogtreecommitdiff
path: root/meta/conf/machine
diff options
context:
space:
mode:
authorArmin Kuster <akuster@mvista.com>2015-08-16 14:49:42 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-19 17:57:55 +0100
commit151ee1ace5bc5237d361ffb5c8a152b7d56ff0b9 (patch)
treeb2b0a8fe234b095c6ead772a63eec716389e85df /meta/conf/machine
parenta3d3dc83a1ef73162f548594241c587ad12d8226 (diff)
downloadopenembedded-core-151ee1ace5bc5237d361ffb5c8a152b7d56ff0b9.tar.gz
openembedded-core-151ee1ace5bc5237d361ffb5c8a152b7d56ff0b9.tar.bz2
openembedded-core-151ee1ace5bc5237d361ffb5c8a152b7d56ff0b9.zip
tune-octeon: add tune file for MIPS Octeon
This add MIPS Octeon tune features. Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/conf/machine')
-rw-r--r--meta/conf/machine/include/tune-octeon.inc27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/conf/machine/include/tune-octeon.inc b/meta/conf/machine/include/tune-octeon.inc
new file mode 100644
index 0000000000..f80f97067f
--- /dev/null
+++ b/meta/conf/machine/include/tune-octeon.inc
@@ -0,0 +1,27 @@
+DEFAULTTUNE ?="octeon2"
+
+require conf/machine/include/tune-mips64.inc
+
+AVAILTUNES += "octeon2 octeon2_64 octeon3 octeon3_64"
+
+TUNEVALID[octeon2] = "Enable optimization related to octeon2 support"
+TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "octeon2", " -march=octeon2 ", "",d)}"
+TUNE_FEATURES_tune-octeon2 = "${TUNE_FEATURES_tune-mips64-n32} octeon2"
+MIPSPKGSFX_VARIANT_tune-octeon2 = "${TUNE_ARCH}"
+PACKAGE_EXTRA_ARCHS_tune-octeon2 = "mips64-n32 octeon2 octeon2_64-n32"
+
+TUNE_FEATURES_tune-octeon2_64 = "${TUNE_FEATURES_tune-mips64} octeon2"
+MIPSPKGSFX_VARIANT_tune-octeon2_64 = "${TUNE_ARCH}"
+PACKAGE_EXTRA_ARCHS_tune-octeon2_64 = "mips64 octeon2_64"
+
+
+TUNEVALID[octeon3] = "Enable optimization related to octeon3 support"
+TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "octeon3", " -march=octeon3 ", "",d)}"
+
+TUNE_FEATURES_tune-octeon3 = "${TUNE_FEATURES_tune-mips64-n32} octeon3"
+MIPSPKGSFX_VARIANT_tune-octeon3 = "${TUNE_ARCH}"
+PACKAGE_EXTRA_ARCHS_tune-octeon3 = "mips64-n32 octeon3 octeon3_64-n32"
+
+TUNE_FEATURES_tune-octeon3_64 = "${TUNE_FEATURES_tune-mips64} octeon3"
+MIPSPKGSFX_VARIANT_tune-octeon3_64 = "${TUNE_ARCH}"
+PACKAGE_EXTRA_ARCHS_tune-octeon3_64 = "mips64 octeon3_64"