]> code.ossystems Code Review - openembedded-core.git/commitdiff
libgomp: add libgomp (openmp) library, and build for powerpc targets by default
authorMatthew McClintock <msm@freescale.com>
Tue, 10 Jul 2012 16:12:29 +0000 (16:12 +0000)
committerScott Garman <scott.a.garman@intel.com>
Wed, 18 Jul 2012 17:18:57 +0000 (10:18 -0700)
Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-4.6.inc
meta/recipes-devtools/gcc/gcc-configure-runtime.inc
meta/recipes-devtools/gcc/gcc-package-runtime.inc

index c71312e89272158a656c859a8aa06d348b688008..4c6fe28f5d7b455977eb451a674ccf54e2be3506 100644 (file)
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r27"
+PR = "r28"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.6.0
index 34bfaeb9604c174cae6749f00986aa330e315eee..c9e8dd62417f80be9be7eca658d39eefbf1dcb4c 100644 (file)
@@ -9,6 +9,8 @@ EXTRA_OECONF_PATHS = " \
     --with-build-sysroot=${STAGING_DIR_TARGET}"
 
 RUNTIMETARGET = "libssp libstdc++-v3"
+RUNTIMETARGET_append_powerpc = " libgomp"
+RUNTIMETARGET_append_powerpc64 = " libgomp"
 #  ?
 # libiberty
 # libmudflap
@@ -36,6 +38,11 @@ do_install () {
        for d in ${RUNTIMETARGET}; do
                cd ${B}/$d/
                oe_runmake 'DESTDIR=${D}' install
+               if [ "$d" = "libgomp" ]; then
+                       rm -rf ${D}${datadir}/info/libgomp.info ${D}${datadir}/info/dir
+                       rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
+                       rmdir --ignore-fail-on-non-empty -p ${D}${datadir}/info
+               fi
        done
        chown -R root:root ${D}
 }
index feb8735e05c23bf593c1c20f8e755e011c0c169e..996261592030bf2c269d2a2996c156345c070c11 100644 (file)
@@ -13,6 +13,9 @@ PACKAGES = "\
   libgfortran-dev \
   libmudflap \
   libmudflap-dev \
+  libgomp \
+  libgomp-dev \
+  libgomp-staticdev \
 "
 # The base package doesn't exist, so we clear the recommends.
 RRECOMMENDS_${PN}-dbg = ""
@@ -61,3 +64,12 @@ FILES_libmudflap-dev = "\
   ${libdir}/libmudflap*.a \
   ${libdir}/libmudflap*.la"
 
+FILES_libgomp-dev = "\
+  ${libdir}/libgomp*.so \
+  ${libdir}/libgomp*.la \
+  ${libdir}/libgomp.spec \
+  ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/omp.h \
+  "
+FILES_libgomp-staticdev = "\
+  ${libdir}/libgomp*.a \
+  "