diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2016-09-26 15:56:29 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-28 10:16:03 +0100 |
commit | b7fac3f2607097aafa20a09efe3fb5f3a507bc2f (patch) | |
tree | 2b856717d160e0cb411d783b1b05794b4de262c9 /meta | |
parent | 55cab158e45bd3f2b961ddbe7faf625c0be64d8c (diff) | |
download | poky-b7fac3f2607097aafa20a09efe3fb5f3a507bc2f.tar.gz |
boost: add support for additional boost libs
* Added libs:
- container
- context
- coroutine
- exception
- graph_parallel
- locale
- math
- mpi
- wave
* Add PACKAGECONFIG to add proper dependencies for:
graph_parallel, locale, and mpi.
* boost-mpi depends on mpich which is in meta-oe,
and boost-graph_parallel depends on boost-mpi,
so they are disabled by default, but can be enabled
in a distro that needs them.
* context and coroutine are added only for x86 and powerpc.
(From OE-Core rev: a715a4ef10eed0ccffac1c38af89e16090d8159e)
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-support/boost/boost.inc | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc index 5696b6adb6..7637a4e932 100644 --- a/meta/recipes-support/boost/boost.inc +++ b/meta/recipes-support/boost/boost.inc | |||
@@ -8,11 +8,14 @@ ARM_INSTRUCTION_SET_armv5 = "arm" | |||
8 | BOOST_LIBS = "\ | 8 | BOOST_LIBS = "\ |
9 | atomic \ | 9 | atomic \ |
10 | chrono \ | 10 | chrono \ |
11 | container \ | ||
11 | date_time \ | 12 | date_time \ |
13 | exception \ | ||
12 | filesystem \ | 14 | filesystem \ |
13 | graph \ | 15 | graph \ |
14 | iostreams \ | 16 | iostreams \ |
15 | log \ | 17 | log \ |
18 | math \ | ||
16 | program_options \ | 19 | program_options \ |
17 | random \ | 20 | random \ |
18 | regex \ | 21 | regex \ |
@@ -22,12 +25,28 @@ BOOST_LIBS = "\ | |||
22 | timer \ | 25 | timer \ |
23 | test \ | 26 | test \ |
24 | thread \ | 27 | thread \ |
28 | wave \ | ||
25 | " | 29 | " |
26 | 30 | ||
27 | # optional boost-python library | 31 | # only supported by x86 and powerpc |
28 | PACKAGECONFIG ??= "" | 32 | BOOST_LIBS_append_x86 = " context coroutine" |
33 | BOOST_LIBS_append_x86-64 = " context coroutine" | ||
34 | BOOST_LIBS_append_powerpc = " context coroutine" | ||
35 | |||
36 | # optional libraries | ||
37 | PACKAGECONFIG ??= "locale" | ||
38 | PACKAGECONFIG[locale] = ",,icu" | ||
39 | PACKAGECONFIG[graph_parallel] = ",,,boost-mpi mpich" | ||
40 | PACKAGECONFIG[mpi] = ",,mpich" | ||
29 | PACKAGECONFIG[python] = ",,python python3" | 41 | PACKAGECONFIG[python] = ",,python python3" |
30 | BOOST_LIBS += "${@bb.utils.contains('PACKAGECONFIG', 'python', 'python python3', '', d)}" | 42 | |
43 | BOOST_LIBS += "\ | ||
44 | ${@bb.utils.contains('PACKAGECONFIG', 'locale', 'locale', '', d)} \ | ||
45 | ${@bb.utils.contains('PACKAGECONFIG', 'graph_parallel', 'graph_parallel mpi', \ | ||
46 | bb.utils.contains('PACKAGECONFIG', 'mpi', 'mpi', '', d), d)} \ | ||
47 | ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python python3', '', d)} \ | ||
48 | " | ||
49 | |||
31 | inherit python-dir | 50 | inherit python-dir |
32 | PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}" | 51 | PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}" |
33 | 52 | ||
@@ -54,6 +73,10 @@ python __anonymous () { | |||
54 | } | 73 | } |
55 | 74 | ||
56 | # Override the contents of specific packages | 75 | # Override the contents of specific packages |
76 | FILES_${PN}-graph = "${libdir}/libboost_graph.so.*" | ||
77 | FILES_${PN}-graph_parallel = "${libdir}/libboost_graph_parallel.so.*" | ||
78 | FILES_${PN}-locale = "${libdir}/libboost_locale.so.*" | ||
79 | FILES_${PN}-mpi = "${libdir}/mpi.so ${libdir}/libboost_mpi*.so.*" | ||
57 | FILES_boost-serialization = "${libdir}/libboost_serialization*.so.* \ | 80 | FILES_boost-serialization = "${libdir}/libboost_serialization*.so.* \ |
58 | ${libdir}/libboost_wserialization*.so.*" | 81 | ${libdir}/libboost_wserialization*.so.*" |
59 | FILES_boost-test = "${libdir}/libboost_prg_exec_monitor*.so.* \ | 82 | FILES_boost-test = "${libdir}/libboost_prg_exec_monitor*.so.* \ |
@@ -159,6 +182,10 @@ do_configure() { | |||
159 | echo "using python : ${PYTHON_BASEVERSION} : : ${STAGING_INCDIR}/python${PYTHON_BASEVERSION} ;" >> ${WORKDIR}/user-config.jam | 182 | echo "using python : ${PYTHON_BASEVERSION} : : ${STAGING_INCDIR}/python${PYTHON_BASEVERSION} ;" >> ${WORKDIR}/user-config.jam |
160 | echo "using python : 3.5 : : ${STAGING_INCDIR}/python3.5m ;" >> ${WORKDIR}/user-config.jam | 183 | echo "using python : 3.5 : : ${STAGING_INCDIR}/python3.5m ;" >> ${WORKDIR}/user-config.jam |
161 | 184 | ||
185 | if ${@bb.utils.contains('BOOST_LIBS', 'mpi', 'true', 'false', d)}; then | ||
186 | echo "using mpi : : <find-shared-library>mpi ;" >> ${WORKDIR}/user-config.jam | ||
187 | fi | ||
188 | |||
162 | CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" ./bootstrap.sh --with-bjam=bjam --with-toolset=gcc --with-python-root=${PYTHON_ROOT} | 189 | CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" ./bootstrap.sh --with-bjam=bjam --with-toolset=gcc --with-python-root=${PYTHON_ROOT} |
163 | sed -i '/^using python/d' ${S}/project-config.jam | 190 | sed -i '/^using python/d' ${S}/project-config.jam |
164 | } | 191 | } |