[yocto] any success with spartan6-lx9mb?

Trevor Woerner twoerner at gmail.com
Mon Sep 3 19:25:41 PDT 2012


Hi,

I was playing around with the meta-xilinx layer and tried to build
"core-image-minimal" for the spartan6 without success. I was wondering
if anyone has tried this lately and/or if anyone has any tips to
suggest?

configuration:

I'm using the latest HEAD:
    BB_VERSION        = "1.15.3"
    TARGET_ARCH       = "microblaze"
    TARGET_OS         = "linux"
    MACHINE           = "spartan6-lx9mb"
    DISTRO            = "poky"
    DISTRO_VERSION    = "1.2+snapshot-20120904"
    TUNE_FEATURES     = "m32 microblazeel"
    TARGET_FPU        = "soft"
    meta
    meta-yocto        = "master:37c8597e7600385367257e8a513e003947ebef5b"
    meta-xilinx       = "master:d196fa93c7ff5e080d4c44e2b83aed472f32b2c7"

conf/local.conf:
    BB_NUMBER_THREADS = "4"
    PARALLEL_MAKE = "-j 4"
    MACHINE ??= "spartan6-lx9mb"
    DL_DIR = "/home/trevor/devel/Downloads"
    DISTRO ?= "poky"
    PACKAGE_CLASSES ?= "package_rpm"
    EXTRA_IMAGE_FEATURES = "debug-tweaks"
    USER_CLASSES ?= "buildstats image-mklibs image-prelink"
    PATCHRESOLVE = "noop"
    CONF_VERSION = "1"

conf/bblayers.conf:
    LCONF_VERSION = "5"
    BBPATH = "${TOPDIR}"
    BBFILES ?= ""
    BBLAYERS ?= " \
      /home/trevor/devel/yocto/git-method/poky/meta \
      /home/trevor/devel/yocto/git-method/poky/meta-yocto \
      /home/trevor/devel/yocto/git-method/poky/meta-xilinx \
      "

issues:

The first problem I encountered was trying to build gcc-cross-initial:
    This target does not support --with-float.

I was able to get around this with the following (very silly) patch:
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc
b/meta/recipes-devtools/gcc/gcc-common.inc
index 72180db..cb3a8cf 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -12,8 +12,6 @@ FILESDIR = "${@os.path.dirname(d.getVar('FILE',1))}/gcc-${PV}"
 def get_gcc_fpu_setting(bb, d):
     if d.getVar('ARMPKGSFX_EABI', True) == "hf" and
d.getVar('TRANSLATED_TARGET_ARCH', True) == "arm":
         return "--with-float=hard"
-    if d.getVar('TARGET_FPU', True) in [ 'soft' ]:
-        return "--with-float=soft"
     if d.getVar('TARGET_FPU', True) in [ 'ppc-efd' ]:
         return "--enable-e500_double"
     return ""
-- 


Although I could get past this point, bitbaking again led to the
following problem with the same, gcc-cross-initial, recipe:

opening microblaze-c.o: No such file or directory
make[1]: *** [cc1-checksum.c] Error 1
rm cpp.pod gcov.pod gfdl.pod gcc.pod fsf-funding.pod
make[1]: Leaving directory
`/home/trevor/devel/yocto/git-method/spartan6-lx9/tmp/work/microblazeel-poky-linux/gcc-cross-initial-4.7.1.0+git1+d07e24f4ab59f264d68d21838795349faab5dede-r11/gcc-4_7-branch/build.x86_64-linux.microblaze-poky-linux/gcc'
make: *** [all-gcc] Error 2
ERROR: oe_runmake failed
ERROR: Function failed: do_compile



More information about the yocto mailing list