libgomp: add libgomp (openmp) library, and build for powerpc targets by default

(From OE-Core rev: d58668c6770f519199192c7e3817fbc7d6576af3)

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Matthew McClintock
2012-07-10 16:12:29 +00:00
committed by Richard Purdie
parent 4899d07aa7
commit ffd554d2ff
3 changed files with 20 additions and 1 deletions

View 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

View 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}
}

View 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 \
"