[yocto] Unable to get serial console login prompt - PowerPC 440 Virtex 5 processor

Elvis Dowson elvis.dowson at gmail.com
Sat Aug 18 23:36:17 PDT 2012


Hi Khem,
                  What should I do to enable multilib in gcc-4.7? 

I think at the moment, in gcc-configure-common.inc, it is disabled.

If I were to re-enable it as follows, based on what I've diff'd from the Denx ELDK repo, what how does the GCCMULTILIB variable evaluate?

-GCCMULTILIB = "--disable-multilib"
+GCCMULTILIB = '${@base_contains("MULTILIB_ARCH_LIST", "${TARGET_ARCH}", "--enable-multilib", "--disable-multilib",d)}'

I think multilib has to be enabled, no? 

In file gcc/config/rs6000/t-ppcos.c

# Multilibs for a powerpc hosted ELF target (linux, SVR4)

MULTILIB_OPTIONS	= msoft-float
MULTILIB_DIRNAMES	= nof
MULTILIB_EXTRA_OPTS	= fPIC mstrict-align
MULTILIB_EXCEPTIONS	= 

MULTILIB_MATCHES	= ${MULTILIB_MATCHES_FLOAT}


Here is the full patch, which I am assuming enables multilib, and get libgcc to generate the nof libraries to the target:

diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index 908ad3e..a3fa294 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -25,7 +25,7 @@ EXTRA_OECONF_PATHS ?= ""
 EXTRA_OECONF_INITIAL ?= ""
 EXTRA_OECONF_INTERMEDIATE ?= ""
 
-GCCMULTILIB = "--disable-multilib"
+GCCMULTILIB = '${@base_contains("MULTILIB_ARCH_LIST", "${TARGET_ARCH}", "--enable-multilib", "--disable-multilib",d)}'
 
 EXTRA_OECONF = "${@['--enable-clocale=generic', ''][d.getVar('USE_NLS', True) != 'no']} \
                 --with-gnu-ld \
diff --git a/meta/recipes-devtools/gcc/libgcc_4.7.bb b/meta/recipes-devtools/gcc/libgcc_4.7.bb
index c796253..aac81f6 100644
--- a/meta/recipes-devtools/gcc/libgcc_4.7.bb
+++ b/meta/recipes-devtools/gcc/libgcc_4.7.bb
@@ -18,7 +18,9 @@ FILES_${PN} = "${base_libdir}/libgcc*.so.*"
 FILES_${PN}-dev = " \
   ${base_libdir}/libgcc*.so \
   ${libdir}/${TARGET_SYS}/${BINV}/*crt* \
-  ${libdir}/${TARGET_SYS}/${BINV}/libgcc*"
+  ${libdir}/${TARGET_SYS}/${BINV}/libgcc* \
+  ${libdir}/${TARGET_SYS}/${BINV}/nof/crt* \
+  ${libdir}/${TARGET_SYS}/${BINV}/nof/libgcc*"
 FILES_libgcov${PKGSUFFIX}-dev = " \
   ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \
   "

Best regards,

Elvis Dowson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120819/7397f397/attachment.html>


More information about the yocto mailing list