Patchwork gcc-runtime: Build libatomic

login
register
mail settings
Submitter Cosmin Paraschiv
Date March 7, 2014, 1:39 p.m.
Message ID <1394199544-19668-1-git-send-email-cosmin.paraschiv@freescale.com>
Download mbox | patch
Permalink /patch/68255/
State Accepted
Commit ea8640ee0d99f183b32cd2ca42e4e7ec45be8a19
Headers show

Comments

Cosmin Paraschiv - March 7, 2014, 1:39 p.m.
GCC 4.8 includes a new runtime library, libatomic, which supports
atomic operations not supported by hardware or the OS. Build it,
so other packages can link against it, if needed.

Signed-off-by: Cosmin Paraschiv <cosmin.paraschiv@freescale.com>
---
 meta/recipes-devtools/gcc/gcc-runtime.inc |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
Khem Raj - March 8, 2014, 12:13 a.m.
On Fri, Mar 7, 2014 at 5:39 AM, Cosmin Paraschiv
<cosmin.paraschiv@freescale.com> wrote:
> GCC 4.8 includes a new runtime library, libatomic, which supports
> atomic operations not supported by hardware or the OS. Build it,
> so other packages can link against it, if needed.

what all architectures did you test

>
> Signed-off-by: Cosmin Paraschiv <cosmin.paraschiv@freescale.com>
> ---
>  meta/recipes-devtools/gcc/gcc-runtime.inc |   12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
> index d3b11a7..f8c1109 100644
> --- a/meta/recipes-devtools/gcc/gcc-runtime.inc
> +++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
> @@ -12,7 +12,7 @@ ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_INCDIR}"
>  EXTRA_OECONF += "--disable-libunwind-exceptions"
>  EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu"
>
> -RUNTIMETARGET = "libssp libstdc++-v3 libgomp"
> +RUNTIMETARGET = "libssp libstdc++-v3 libgomp libatomic"
>  #  ?
>  # libiberty
>  # libmudflap
> @@ -87,6 +87,9 @@ PACKAGES = "\
>    libgomp \
>    libgomp-dev \
>    libgomp-staticdev \
> +  libatomic \
> +  libatomic-dev \
> +  libatomic-staticdev \
>  "
>  # The base package doesn't exist, so we clear the recommends.
>  RRECOMMENDS_${PN}-dbg = ""
> @@ -161,6 +164,13 @@ FILES_libgomp-staticdev = "\
>    ${libdir}/libgomp*.a \
>    "
>
> +FILES_libatomic = "${libdir}/libatomic.so.*"
> +FILES_libatomic-dev = " \
> +  ${libdir}/libatomic.so \
> +  ${libdir}/libatomic.la"
> +FILES_libatomic-staticdev = " \
> +  ${libdir}/libatomic.a"
> +
>  do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
>  do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
>  do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
> --
> 1.7.9.5
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
Cosmin Paraschiv - March 8, 2014, 11:45 a.m.
On 3/8/2014 2:13 AM, Khem Raj wrote:
> On Fri, Mar 7, 2014 at 5:39 AM, Cosmin Paraschiv
> <cosmin.paraschiv@freescale.com> wrote:
>> GCC 4.8 includes a new runtime library, libatomic, which supports
>> atomic operations not supported by hardware or the OS. Build it,
>> so other packages can link against it, if needed.
> what all architectures did you test

I have tested the patch on powerpc, powerpc64, i586, x86_64 and arm.
Khem Raj - March 8, 2014, 6:27 p.m.
-Khem
On Mar 8, 2014 3:46 AM, "Cosmin Paraschiv" <cosmin.paraschiv@freescale.com>
wrote:
>
> On 3/8/2014 2:13 AM, Khem Raj wrote:
>>
>> On Fri, Mar 7, 2014 at 5:39 AM, Cosmin Paraschiv
>> <cosmin.paraschiv@freescale.com> wrote:
>>>
>>> GCC 4.8 includes a new runtime library, libatomic, which supports
>>> atomic operations not supported by hardware or the OS. Build it,
>>> so other packages can link against it, if needed.
>>
>> what all architectures did you test
>
>
> I have tested the patch on powerpc, powerpc64, i586, x86_64 and arm.

thanks for info
Cosmin Paraschiv - March 19, 2014, 9:01 a.m.
Ping!

Patch

diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
index d3b11a7..f8c1109 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -12,7 +12,7 @@  ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_INCDIR}"
 EXTRA_OECONF += "--disable-libunwind-exceptions"
 EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu"
 
-RUNTIMETARGET = "libssp libstdc++-v3 libgomp"
+RUNTIMETARGET = "libssp libstdc++-v3 libgomp libatomic"
 #  ?
 # libiberty
 # libmudflap
@@ -87,6 +87,9 @@  PACKAGES = "\
   libgomp \
   libgomp-dev \
   libgomp-staticdev \
+  libatomic \
+  libatomic-dev \
+  libatomic-staticdev \
 "
 # The base package doesn't exist, so we clear the recommends.
 RRECOMMENDS_${PN}-dbg = ""
@@ -161,6 +164,13 @@  FILES_libgomp-staticdev = "\
   ${libdir}/libgomp*.a \
   "
 
+FILES_libatomic = "${libdir}/libatomic.so.*"
+FILES_libatomic-dev = " \
+  ${libdir}/libatomic.so \
+  ${libdir}/libatomic.la"
+FILES_libatomic-staticdev = " \
+  ${libdir}/libatomic.a"
+
 do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
 do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
 do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata"