All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 2/2] libgomp: add libgomp (openmp) library, and build for powerpc targets by default
@ 2012-07-10 14:50 Matthew McClintock
  2012-07-10 15:26 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew McClintock @ 2012-07-10 14:50 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Matthew McClintock <msm@freescale.com>
---
 meta/recipes-devtools/gcc/gcc-4.7.inc               |    2 +-
 meta/recipes-devtools/gcc/gcc-configure-runtime.inc |    7 +++++++
 meta/recipes-devtools/gcc/gcc-package-runtime.inc   |   14 +++++++++++++-
 3 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
index c7dbc3c..be142a1 100644
--- a/meta/recipes-devtools/gcc/gcc-4.7.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r3"
+PR = "r4"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.7.1
diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
index 095d6c1..acd6599 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
@@ -8,6 +8,8 @@ EXTRA_OECONF_PATHS = " \
     --with-build-sysroot=${STAGING_DIR_TARGET}"
 
 RUNTIMETARGET = "libssp libstdc++-v3"
+RUNTIMETARGET_append_powerpc = " libgomp"
+RUNTIMETARGET_append_powerpc64 = " libgomp"
 #  ?
 # libiberty
 # libmudflap
@@ -41,6 +43,11 @@ do_install () {
 	for d in ${RUNTIMETARGET}; do
 		cd ${B}/$target/$d/
 		oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/$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}
 }
diff --git a/meta/recipes-devtools/gcc/gcc-package-runtime.inc b/meta/recipes-devtools/gcc/gcc-package-runtime.inc
index e0cb51b..a81e3b7 100644
--- a/meta/recipes-devtools/gcc/gcc-package-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-runtime.inc
@@ -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,7 +64,16 @@ 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 \
+  "
+
 do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_package"
 do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_package"
 do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_package"
-
-- 
1.7.10





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v3 2/2] libgomp: add libgomp (openmp) library, and build for powerpc targets by default
  2012-07-10 14:50 [PATCH v3 2/2] libgomp: add libgomp (openmp) library, and build for powerpc targets by default Matthew McClintock
@ 2012-07-10 15:26 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2012-07-10 15:26 UTC (permalink / raw)
  To: openembedded-core

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 7/10/2012 7:50 AM, Matthew McClintock wrote:
> Signed-off-by: Matthew McClintock <msm@freescale.com> --- 
> meta/recipes-devtools/gcc/gcc-4.7.inc               |    2 +- 
> meta/recipes-devtools/gcc/gcc-configure-runtime.inc |    7 +++++++ 
> meta/recipes-devtools/gcc/gcc-package-runtime.inc   |   14
> +++++++++++++- 3 files changed, 21 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc
> b/meta/recipes-devtools/gcc/gcc-4.7.inc index c7dbc3c..be142a1
> 100644 --- a/meta/recipes-devtools/gcc/gcc-4.7.inc +++
> b/meta/recipes-devtools/gcc/gcc-4.7.inc @@ -1,6 +1,6 @@ require
> gcc-common.inc
> 
> -PR = "r3" +PR = "r4"
> 
> # Third digit in PV should be incremented after a minor release #
> happens from this branch on gcc e.g. currently its 4.7.1 diff --git
> a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
> b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc index
> 095d6c1..acd6599 100644 ---
> a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc +++
> b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc @@ -8,6 +8,8
> @@ EXTRA_OECONF_PATHS = " \ 
> --with-build-sysroot=${STAGING_DIR_TARGET}"
> 
> RUNTIMETARGET = "libssp libstdc++-v3" +RUNTIMETARGET_append_powerpc
> = " libgomp" +RUNTIMETARGET_append_powerpc64 = " libgomp" #  ? #
> libiberty # libmudflap @@ -41,6 +43,11 @@ do_install () { for d in
> ${RUNTIMETARGET}; do cd ${B}/$target/$d/ oe_runmake 'DESTDIR=${D}'
> MULTIBUILDTOP=${B}/$target/$d/ install +		if [ "$d" == "libgomp" ];
> then

== is still bash :) use = instead
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/8SZkACgkQuwUzVZGdMxS67QCeL7wjlRjmmhS7XdnAXm8EnaE0
3mQAnjwC9nKb6MLXEuvPmAJLUxkxwoTk
=gxTt
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-10 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-10 14:50 [PATCH v3 2/2] libgomp: add libgomp (openmp) library, and build for powerpc targets by default Matthew McClintock
2012-07-10 15:26 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.