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

Elvis Dowson elvis.dowson at gmail.com
Thu May 31 06:12:06 UTC 2012


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.

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)}"

Best regards,

Elvis Dowson



More information about the Openembedded-devel mailing list