* [PATCH 141/141] boost-asio: Add recipe
@ 2026-08-26 9:02 Gustav Lindberg
0 siblings, 0 replies; 4+ messages in thread
From: Gustav Lindberg @ 2026-08-26 9:02 UTC (permalink / raw)
To: openembedded-core; +Cc: Gustav Lindberg
This is needed to build boost asio as a shared library rather than a
header-only library, which is needed to save memory.
Change-Id: I3ac5ed0ccadae3e9d042b9c4eed3a1ab7220a009
Signed-off-by: Gustav Lindberg <gustali@axis.com>
---
.../boost-asio/boost-asio_1.90.0.bb | 33 +++++++++++++++++++
.../boost-asio/files/boost_asio.cpp | 2 ++
2 files changed, 35 insertions(+)
create mode 100644 meta/recipes-support/boost-asio/boost-asio_1.90.0.bb
create mode 100644 meta/recipes-support/boost-asio/files/boost_asio.cpp
diff --git a/meta/recipes-support/boost-asio/boost-asio_1.90.0.bb b/meta/recipes-support/boost-asio/boost-asio_1.90.0.bb
new file mode 100644
index 0000000000..ea534ff172
--- /dev/null
+++ b/meta/recipes-support/boost-asio/boost-asio_1.90.0.bb
@@ -0,0 +1,33 @@
+SUMMARY = "Boost.Asio shared library shim"
+DESCRIPTION = "Builds libboost_asio as a shared library from boost/asio/impl/src.hpp"
+HOMEPAGE = "https://www.boost.org/doc/libs/1_90_0/doc/html/boost_asio.html"
+
+# Reuse Boost source and licensing metadata from openembedded-core.
+require recipes-support/boost/boost-${PV}.inc
+
+SRC_URI += " file://boost_asio.cpp"
+
+DEPENDS = "boost"
+
+do_compile() {
+ ${CXX} ${CPPFLAGS} ${CXXFLAGS} \
+ -std=c++23 \
+ -DBOOST_ASIO_DYN_LINK=1 \
+ -fPIC \
+ -shared \
+ -Wl,-soname,libboost_asio.so.1 \
+ ${UNPACKDIR}/boost_asio.cpp \
+ ${LDFLAGS} \
+ -o ${B}/libboost_asio.so.${PV}
+}
+
+do_install() {
+ install -d ${D}${libdir}
+ install -m 0755 ${B}/libboost_asio.so.${PV} ${D}${libdir}/
+ ln -sf libboost_asio.so.${PV} ${D}${libdir}/libboost_asio.so.1
+ ln -sf libboost_asio.so.1 ${D}${libdir}/libboost_asio.so
+}
+
+FILES:${PN} += "${libdir}/libboost_asio.so.*"
+
+BBCLASSEXTEND = "native"
diff --git a/meta/recipes-support/boost-asio/files/boost_asio.cpp b/meta/recipes-support/boost-asio/files/boost_asio.cpp
new file mode 100644
index 0000000000..b10a8f3997
--- /dev/null
+++ b/meta/recipes-support/boost-asio/files/boost_asio.cpp
@@ -0,0 +1,2 @@
+#include <boost/asio/impl/src.hpp>
+#include <boost/asio/ssl/impl/src.hpp>
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 141/141] boost-asio: Add recipe
@ 2026-08-26 9:59 Gustav Lindberg
2026-08-26 13:36 ` [OE-core] " Peter Kjellerstedt
[not found] ` <18CF5E6A5FC73F8D.3446132@lists.openembedded.org>
0 siblings, 2 replies; 4+ messages in thread
From: Gustav Lindberg @ 2026-08-26 9:59 UTC (permalink / raw)
To: openembedded-core; +Cc: Gustav Lindberg
This is needed to build boost asio as a shared library rather than a
header-only library, which is needed to save memory.
Change-Id: I3ac5ed0ccadae3e9d042b9c4eed3a1ab7220a009
Signed-off-by: Gustav Lindberg <gustali@axis.com>
---
.../boost-asio/boost-asio_1.90.0.bb | 33 +++++++++++++++++++
.../boost-asio/files/boost_asio.cpp | 1 +
2 files changed, 34 insertions(+)
create mode 100644 meta/recipes-support/boost-asio/boost-asio_1.90.0.bb
create mode 100644 meta/recipes-support/boost-asio/files/boost_asio.cpp
diff --git a/meta/recipes-support/boost-asio/boost-asio_1.90.0.bb b/meta/recipes-support/boost-asio/boost-asio_1.90.0.bb
new file mode 100644
index 0000000000..ea534ff172
--- /dev/null
+++ b/meta/recipes-support/boost-asio/boost-asio_1.90.0.bb
@@ -0,0 +1,33 @@
+SUMMARY = "Boost.Asio shared library shim"
+DESCRIPTION = "Builds libboost_asio as a shared library from boost/asio/impl/src.hpp"
+HOMEPAGE = "https://www.boost.org/doc/libs/1_90_0/doc/html/boost_asio.html"
+
+# Reuse Boost source and licensing metadata from openembedded-core.
+require recipes-support/boost/boost-${PV}.inc
+
+SRC_URI += " file://boost_asio.cpp"
+
+DEPENDS = "boost"
+
+do_compile() {
+ ${CXX} ${CPPFLAGS} ${CXXFLAGS} \
+ -std=c++23 \
+ -DBOOST_ASIO_DYN_LINK=1 \
+ -fPIC \
+ -shared \
+ -Wl,-soname,libboost_asio.so.1 \
+ ${UNPACKDIR}/boost_asio.cpp \
+ ${LDFLAGS} \
+ -o ${B}/libboost_asio.so.${PV}
+}
+
+do_install() {
+ install -d ${D}${libdir}
+ install -m 0755 ${B}/libboost_asio.so.${PV} ${D}${libdir}/
+ ln -sf libboost_asio.so.${PV} ${D}${libdir}/libboost_asio.so.1
+ ln -sf libboost_asio.so.1 ${D}${libdir}/libboost_asio.so
+}
+
+FILES:${PN} += "${libdir}/libboost_asio.so.*"
+
+BBCLASSEXTEND = "native"
diff --git a/meta/recipes-support/boost-asio/files/boost_asio.cpp b/meta/recipes-support/boost-asio/files/boost_asio.cpp
new file mode 100644
index 0000000000..bf00c8ff26
--- /dev/null
+++ b/meta/recipes-support/boost-asio/files/boost_asio.cpp
@@ -0,0 +1 @@
+#include <boost/asio/impl/src.hpp>
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [OE-core] [PATCH 141/141] boost-asio: Add recipe
2026-08-26 9:59 [PATCH 141/141] boost-asio: Add recipe Gustav Lindberg
@ 2026-08-26 13:36 ` Peter Kjellerstedt
[not found] ` <18CF5E6A5FC73F8D.3446132@lists.openembedded.org>
1 sibling, 0 replies; 4+ messages in thread
From: Peter Kjellerstedt @ 2026-08-26 13:36 UTC (permalink / raw)
To: Gustav Lindberg, openembedded-core@lists.openembedded.org
> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> On Behalf Of Gustav Lindberg via lists.openembedded.org
> Sent: den 26 augusti 2026 12:00
> To: openembedded-core@lists.openembedded.org
> Cc: Gustav Lindberg <Gustav.Lindberg@axis.com>
> Subject: [OE-core] [PATCH 141/141] boost-asio: Add recipe
>
> This is needed to build boost asio as a shared library rather than a
> header-only library, which is needed to save memory.
>
> Change-Id: I3ac5ed0ccadae3e9d042b9c4eed3a1ab7220a009
Remove the Change-Id.
> Signed-off-by: Gustav Lindberg <gustali@axis.com>
> ---
> .../boost-asio/boost-asio_1.90.0.bb | 33 +++++++++++++++++++
> .../boost-asio/files/boost_asio.cpp | 1 +
> 2 files changed, 34 insertions(+)
> create mode 100644 meta/recipes-support/boost-asio/boost-asio_1.90.0.bb
> create mode 100644 meta/recipes-support/boost-asio/files/boost_asio.cpp
>
> diff --git a/meta/recipes-support/boost-asio/boost-asio_1.90.0.bb b/meta/recipes-support/boost-asio/boost-asio_1.90.0.bb
> new file mode 100644
> index 0000000000..ea534ff172
> --- /dev/null
> +++ b/meta/recipes-support/boost-asio/boost-asio_1.90.0.bb
> @@ -0,0 +1,33 @@
> +SUMMARY = "Boost.Asio shared library shim"
> +DESCRIPTION = "Builds libboost_asio as a shared library from boost/asio/impl/src.hpp"
> +HOMEPAGE = "https://www.boost.org/doc/libs/1_90_0/doc/html/boost_asio.html"
> +
> +# Reuse Boost source and licensing metadata from openembedded-core.
Since this is aimed for OE-Core, the "from openembedded-core" is redundant
and can be removed.
> +require recipes-support/boost/boost-${PV}.inc
> +
> +SRC_URI += " file://boost_asio.cpp"
> +
> +DEPENDS = "boost"
Move DEPENDS up to between HOMEPAGE and the require.
> +
> +do_compile() {
> + ${CXX} ${CPPFLAGS} ${CXXFLAGS} \
> + -std=c++23 \
> + -DBOOST_ASIO_DYN_LINK=1 \
> + -fPIC \
> + -shared \
> + -Wl,-soname,libboost_asio.so.1 \
> + ${UNPACKDIR}/boost_asio.cpp \
> + ${LDFLAGS} \
> + -o ${B}/libboost_asio.so.${PV}
> +}
> +
> +do_install() {
> + install -d ${D}${libdir}
> + install -m 0755 ${B}/libboost_asio.so.${PV} ${D}${libdir}/
> + ln -sf libboost_asio.so.${PV} ${D}${libdir}/libboost_asio.so.1
> + ln -sf libboost_asio.so.1 ${D}${libdir}/libboost_asio.so
This assumes the major of ${PV} is 1 and updating it will be easy to
miss if the major is ever increased. There is a function that can be
used to extract part(s) of the version number, e.g.:
MAJOR_VER = "${@oe.utils.trim_version("${PV}", 1)}"
> +}
Use tabs to indent the shell functions above.
> +
> +FILES:${PN} += "${libdir}/libboost_asio.so.*"
This should not be needed.
> +
> +BBCLASSEXTEND = "native"
> diff --git a/meta/recipes-support/boost-asio/files/boost_asio.cpp b/meta/recipes-support/boost-asio/files/boost_asio.cpp
> new file mode 100644
> index 0000000000..bf00c8ff26
> --- /dev/null
> +++ b/meta/recipes-support/boost-asio/files/boost_asio.cpp
> @@ -0,0 +1 @@
> +#include <boost/asio/impl/src.hpp>
> --
> 2.43.0
//Peter
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [OE-core] [PATCH 141/141] boost-asio: Add recipe
[not found] ` <18CF5E6A5FC73F8D.3446132@lists.openembedded.org>
@ 2026-08-26 13:40 ` Peter Kjellerstedt
0 siblings, 0 replies; 4+ messages in thread
From: Peter Kjellerstedt @ 2026-08-26 13:40 UTC (permalink / raw)
To: Peter Kjellerstedt, Gustav Lindberg,
openembedded-core@lists.openembedded.org
> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> On Behalf Of Peter Kjellerstedt via lists.openembedded.org
> Sent: den 26 augusti 2026 15:36
> To: Gustav Lindberg <Gustav.Lindberg@axis.com>; openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH 141/141] boost-asio: Add recipe
>
> > -----Original Message-----
> > From: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> On Behalf Of Gustav Lindberg via lists.openembedded.org
> > Sent: den 26 augusti 2026 12:00
> > To: openembedded-core@lists.openembedded.org
> > Cc: Gustav Lindberg <Gustav.Lindberg@axis.com>
> > Subject: [OE-core] [PATCH 141/141] boost-asio: Add recipe
> >
> > This is needed to build boost asio as a shared library rather than a
> > header-only library, which is needed to save memory.
> >
> > Change-Id: I3ac5ed0ccadae3e9d042b9c4eed3a1ab7220a009
>
> Remove the Change-Id.
>
> > Signed-off-by: Gustav Lindberg <gustali@axis.com>
> > ---
> > .../boost-asio/boost-asio_1.90.0.bb | 33 +++++++++++++++++++
> > .../boost-asio/files/boost_asio.cpp | 1 +
It would probably also make more sense to put the recipe in
"meta/recipes-support/boost" together with the current boost recipe,
and put the .cpp file in "meta/recipes-support/boost/boost-asio".
> > 2 files changed, 34 insertions(+)
> > create mode 100644 meta/recipes-support/boost-asio/boost-asio_1.90.0.bb
> > create mode 100644 meta/recipes-support/boost-asio/files/boost_asio.cpp
> >
> > diff --git a/meta/recipes-support/boost-asio/boost-asio_1.90.0.bb b/meta/recipes-support/boost-asio/boost-asio_1.90.0.bb
> > new file mode 100644
> > index 0000000000..ea534ff172
> > --- /dev/null
> > +++ b/meta/recipes-support/boost-asio/boost-asio_1.90.0.bb
> > @@ -0,0 +1,33 @@
> > +SUMMARY = "Boost.Asio shared library shim"
> > +DESCRIPTION = "Builds libboost_asio as a shared library from boost/asio/impl/src.hpp"
> > +HOMEPAGE = "https://www.boost.org/doc/libs/1_90_0/doc/html/boost_asio.html"
> > +
> > +# Reuse Boost source and licensing metadata from openembedded-core.
>
> Since this is aimed for OE-Core, the "from openembedded-core" is redundant
> and can be removed.
>
> > +require recipes-support/boost/boost-${PV}.inc
> > +
> > +SRC_URI += " file://boost_asio.cpp"
> > +
> > +DEPENDS = "boost"
>
> Move DEPENDS up to between HOMEPAGE and the require.
>
> > +
> > +do_compile() {
> > + ${CXX} ${CPPFLAGS} ${CXXFLAGS} \
> > + -std=c++23 \
> > + -DBOOST_ASIO_DYN_LINK=1 \
> > + -fPIC \
> > + -shared \
> > + -Wl,-soname,libboost_asio.so.1 \
> > + ${UNPACKDIR}/boost_asio.cpp \
> > + ${LDFLAGS} \
> > + -o ${B}/libboost_asio.so.${PV}
> > +}
> > +
> > +do_install() {
> > + install -d ${D}${libdir}
> > + install -m 0755 ${B}/libboost_asio.so.${PV} ${D}${libdir}/
> > + ln -sf libboost_asio.so.${PV} ${D}${libdir}/libboost_asio.so.1
> > + ln -sf libboost_asio.so.1 ${D}${libdir}/libboost_asio.so
>
> This assumes the major of ${PV} is 1 and updating it will be easy to
> miss if the major is ever increased. There is a function that can be
> used to extract part(s) of the version number, e.g.:
>
> MAJOR_VER = "${@oe.utils.trim_version("${PV}", 1)}"
>
> > +}
>
> Use tabs to indent the shell functions above.
>
> > +
> > +FILES:${PN} += "${libdir}/libboost_asio.so.*"
>
> This should not be needed.
>
> > +
> > +BBCLASSEXTEND = "native"
> > diff --git a/meta/recipes-support/boost-asio/files/boost_asio.cpp b/meta/recipes-support/boost-asio/files/boost_asio.cpp
> > new file mode 100644
> > index 0000000000..bf00c8ff26
> > --- /dev/null
> > +++ b/meta/recipes-support/boost-asio/files/boost_asio.cpp
> > @@ -0,0 +1 @@
> > +#include <boost/asio/impl/src.hpp>
> > --
> > 2.43.0
>
> //Peter
//Peter
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-08-26 13:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-26 9:59 [PATCH 141/141] boost-asio: Add recipe Gustav Lindberg
2026-08-26 13:36 ` [OE-core] " Peter Kjellerstedt
[not found] ` <18CF5E6A5FC73F8D.3446132@lists.openembedded.org>
2026-08-26 13:40 ` Peter Kjellerstedt
-- strict thread matches above, loose matches on Subject: below --
2026-08-26 9:02 Gustav Lindberg
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.