Patchwork [meta-xilinx] tune-ppc440.inc: Add support for PowerPC 440 processor for Xilinx Virtex-5 FXT FPGA.

login
register
mail settings
Submitter Elvis Dowson
Date May 31, 2012, 6:12 a.m.
Message ID <CB6A0F89-6140-4F12-9A26-16FC72305E2E@gmail.com>
Download mbox | patch
Permalink /patch/28981/
State Superseded
Headers show

Comments

Elvis Dowson - May 31, 2012, 6:12 a.m.
Hi Adrian,

On May 30, 2012, at 9:38 PM, Adrian Alonso wrote:

> the tune file its ok, but it should be better if you rather provide a
> fix for the tune-ppc440.inc
> that is part of meta-xilinx layer;

Here is a diff against the existing tune-ppc440.inc file in the meta-xilinx layer. I'll submit a patch shortly.


Best regards,

Elvis Dowson

Patch

diff --git a/conf/machine/include/tune-ppc440.inc b/conf/machine/include/tune-ppc440.inc
index f77f628..394364d 100644
--- a/conf/machine/include/tune-ppc440.inc
+++ b/conf/machine/include/tune-ppc440.inc
@@ -4,11 +4,11 @@  require conf/machine/include/powerpc/arch-powerpc.inc
 
 TUNEVALID[ppc440] = "Enable ppc440 specific processor optimizations"
 TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-mcpu=440", "", d)}"
-TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "ppc440", "${PPCPKGARCH}", d)}"
 
-TARGET_FPU = "soft"
 AVAILTUNES += "ppc440"
-TUNE_FEATURES_tune-ppc440 = "m32 ppc440"
-PACKAGE_EXTRA_ARCHS_tune-ppc440 = "ppc440"
+TUNE_FEATURES_tune-ppc440 = "m32 fpu-soft ppc440"
+TUNE_PKGARCH_tune-ppc440 = "ppc440"
+PACKAGE_EXTRA_ARCHS_tune-ppc440 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppc440"
 
-#MACHINEOVERRIDES .= "ppc440"
+# glibc configure options to get 440 specific library (for sqrt)
+GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-with-cpu=440", "", d)}"