Patchwork [meta-xilinx,4/7] tune-ppc440e: Add tune-ppc440e file.

login
register
mail settings
Submitter Elvis Dowson
Date Aug. 22, 2012, 7:20 p.m.
Message ID <1345663224-42350-4-git-send-email-elvis.dowson@gmail.com>
Download mbox | patch
Permalink /patch/35169/
State Superseded
Headers show

Comments

Elvis Dowson - Aug. 22, 2012, 7:20 p.m.
* Tune option for ppc440e with hard-float.

Signed-off-by: Elvis Dowson <elvis.dowson@gmail.com>
---
 conf/machine/include/tune-ppc440e.inc |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 conf/machine/include/tune-ppc440e.inc

Patch

diff --git a/conf/machine/include/tune-ppc440e.inc b/conf/machine/include/tune-ppc440e.inc
new file mode 100644
index 0000000..1769e05
--- /dev/null
+++ b/conf/machine/include/tune-ppc440e.inc
@@ -0,0 +1,14 @@ 
+DEFAULTTUNE ?= "ppc440e"
+
+require conf/machine/include/powerpc/arch-powerpc.inc
+
+TUNEVALID[ppc440e] = "Enable ppc440e specific processor optimizations"
+TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc440e", "-mcpu=440fp", "", d)}"
+
+AVAILTUNES += "ppc440e"
+TUNE_FEATURES_tune-ppc440e = "m32 ppc440e fpu-hard"
+TUNE_PKGARCH_tune-ppc440e = "ppc440e"
+PACKAGE_EXTRA_ARCHS_tune-ppc440e = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppc440e"
+
+# glibc configure options to get ppc440e specific library (for sqrt)
+GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppc440e", "-with-cpu=440fp", "", d)}"