diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-31 11:19:54 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-31 11:19:54 +0100 |
commit | 95fd9943663d97f146065f23448721480743c0dc (patch) | |
tree | 25282c822edd9908e001e181f8d9fd314a3f9c79 /meta/packages/gcc | |
parent | ccebaa67df90e8c3a250cf401d616f40dc69daa7 (diff) | |
download | openembedded-core-95fd9943663d97f146065f23448721480743c0dc.tar.gz openembedded-core-95fd9943663d97f146065f23448721480743c0dc.tar.bz2 openembedded-core-95fd9943663d97f146065f23448721480743c0dc.tar.xz openembedded-core-95fd9943663d97f146065f23448721480743c0dc.zip |
gcc-runtime: Move core code to the main include file
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/gcc')
-rw-r--r-- | meta/packages/gcc/gcc-configure-runtime.inc | 46 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-package-runtime.inc | 14 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-runtime_4.3.3.bb | 36 |
3 files changed, 47 insertions, 49 deletions
diff --git a/meta/packages/gcc/gcc-configure-runtime.inc b/meta/packages/gcc/gcc-configure-runtime.inc index 8b169a7c5..e20c72fa0 100644 --- a/meta/packages/gcc/gcc-configure-runtime.inc +++ b/meta/packages/gcc/gcc-configure-runtime.inc @@ -3,3 +3,49 @@ require gcc-configure-common.inc EXTRA_OECONF_PATHS = " \ --with-local-prefix=${STAGING_DIR_TARGET}${prefix} \ --with-gxx-include-dir=${includedir}/c++/" + +RUNTIMETARGET = "libgcc libssp libstdc++-v3" +# ? +# libiberty +# libmudflap +# libgfortran + +do_configure () { + cp ${CROSS_DIR}/include/gcc-build-internal/* ${S}/gcc + for d in ${RUNTIMETARGET}; do + echo "Configuring $d" + mkdir -p ${B}/$d/ + cd ${B}/$d/ + chmod a+x ${S}/$d/configure + ${S}/$d/configure ${CONFIGUREOPTS} ${EXTRA_OECONF_PATHS} + done +} + +do_compile () { + for d in ${RUNTIMETARGET}; do + cd ${B}/$d/ + oe_runmake + done +} + +do_install () { + for d in ${RUNTIMETARGET}; do + cd ${B}/$d/ + oe_runmake 'DESTDIR=${D}' install + done + + # Move libgcc_s into /lib + mkdir -p ${D}${base_libdir} + if [ -f ${D}${libdir}/nof/libgcc_s.so ]; then + mv ${D}${libdir}/nof/libgcc* ${D}${base_libdir} + else + mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true + fi +} + +INHIBIT_DEFAULT_DEPS = "1" +DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" +PROVIDES = "virtual/${TARGET_PREFIX}compilerlibs" + +BBCLASSEXTEND = "nativesdk" + diff --git a/meta/packages/gcc/gcc-package-runtime.inc b/meta/packages/gcc/gcc-package-runtime.inc index 055753b8e..908d2d513 100644 --- a/meta/packages/gcc/gcc-package-runtime.inc +++ b/meta/packages/gcc/gcc-package-runtime.inc @@ -35,7 +35,7 @@ FILES_libstdc++-dev = "\ ${libdir}/libsupc++.la \ ${libdir}/libsupc++.a" -FILES_libstdc++-precompile-dev = "${includedir}/c++/${BINV}/${TARGET_SYS}/bits/*.gch" +FILES_libstdc++-precompile-dev = "${includedir}/c++/${TARGET_SYS}/bits/*.gch" FILES_libssp = "${libdir}/libssp.so.*" FILES_libssp-dev = " \ @@ -56,15 +56,3 @@ FILES_libmudflap-dev = "\ ${libdir}/libmudflap*.a \ ${libdir}/libmudflap*.la" - -do_install () { - oe_runmake 'DESTDIR=${D}' install-target - - # Move libgcc_s into /lib - mkdir -p ${D}${base_libdir} - if [ -f ${D}${libdir}/nof/libgcc_s.so ]; then - mv ${D}${libdir}/nof/libgcc* ${D}${base_libdir} - else - mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true - fi -} diff --git a/meta/packages/gcc/gcc-runtime_4.3.3.bb b/meta/packages/gcc/gcc-runtime_4.3.3.bb index 0119a4147..b625668be 100644 --- a/meta/packages/gcc/gcc-runtime_4.3.3.bb +++ b/meta/packages/gcc/gcc-runtime_4.3.3.bb @@ -8,39 +8,3 @@ SRC_URI_append = "file://fortran-cross-compile-hack.patch;patch=1" ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_INCDIR}" -RUNTIMETARGET = "libgcc libssp libstdc++-v3" -# ? -# libiberty -# libmudflap -# libgfortran - -do_configure () { - cp ${CROSS_DIR}/include/gcc-build-internal/* ${S}/gcc - for d in ${RUNTIMETARGET}; do - echo "Configuring $d" - mkdir -p ${B}/$d/ - cd ${B}/$d/ - chmod a+x ${S}/$d/configure - ${S}/$d/configure ${CONFIGUREOPTS} ${EXTRA_OECONF_PATHS} - done -} - -do_compile () { - for d in ${RUNTIMETARGET}; do - cd ${B}/$d/ - oe_runmake - done -} - -do_install () { - for d in ${RUNTIMETARGET}; do - cd ${B}/$d/ - oe_runmake 'DESTDIR=${D}' install - done -} - -INHIBIT_DEFAULT_DEPS = "1" -DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" -PROVIDES = "virtual/${TARGET_PREFIX}compilerlibs" - -BBCLASSEXTEND = "nativesdk" |