summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-24 10:48:18 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 09:38:50 +0000
commit4b144b55acbd43b38d92d29829d8ec68ff372e9d (patch)
tree4834be38982b5c7e1b4358fdab7929dba723494c /meta
parent7e30a0db7b587a72a50d6d981ba8cf275ca61b23 (diff)
downloadopenembedded-core-4b144b55acbd43b38d92d29829d8ec68ff372e9d.tar.gz
openembedded-core-4b144b55acbd43b38d92d29829d8ec68ff372e9d.tar.bz2
openembedded-core-4b144b55acbd43b38d92d29829d8ec68ff372e9d.zip
gcc-runtime: Add libmpx supprt for x86
Enabling building the Intel Memory Protection Extension library for x86. Leave this disabled in musl builds as it doesn't build there yet. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/gcc/gcc-runtime.inc21
1 files changed, 20 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
index 745cf74f86..ec8f4a42d0 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -24,8 +24,9 @@ RUNTIMELIBITM_microblaze = ""
RUNTIMETARGET = "libssp libstdc++-v3 libgomp libatomic ${RUNTIMELIBITM} \
${@bb.utils.contains_any('FORTRAN', [',fortran',',f77'], 'libquadmath', '', d)} \
"
+RUNTIMETARGET_append_x86 = " libmpx"
+RUNTIMETARGET_remove_libc-musl = "libmpx"
-# ?
# libiberty
# libmudflap
# libgfortran needs separate recipe due to libquadmath dependency
@@ -139,6 +140,11 @@ PACKAGES = "\
libitm-dev \
libitm-staticdev \
"
+PACKAGES_append_x86 = "\
+ libmpx \
+ libmpx-dev \
+ libmpx-staticdev \
+"
# The base package doesn't exist, so we clear the recommends.
RRECOMMENDS_${PN}-dbg = ""
@@ -243,6 +249,19 @@ SUMMARY_libitm-dev = "GNU transactional memory support library - development fil
FILES_libitm-staticdev = "${libdir}/libitm.a"
SUMMARY_libitm-staticdev = "GNU transactional memory support library - static development files"
+
+FILES_libmpx = "${libdir}/libmpx.so.* ${libdir}/libmpxwrappers.so.*"
+SUMMARY_libmpx = "Intel Memory Protection Extension library"
+FILES_libmpx-dev = "\
+ ${libdir}/libmpxwrappers.so \
+ ${libdir}/libmpx.so \
+ ${libdir}/libmpx.la \
+ ${libdir}/libmpx.spec \
+"
+SUMMARY_libmpx-dev = "Intel Memory Protection Extension library - development files"
+FILES_libmpx-staticdev = "${libdir}/libmpx.a ${libdir}/libmpxwrappers.a"
+SUMMARY_libmpx-staticdev = "Intel Memory Protection Extension library - static development files"
+
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"