Re: [OE-core] [PATCH] asio: extend recipe to add native support

2020-08-20 Thread Andre McCurdy
On Thu, Aug 20, 2020 at 8:51 AM Bjarne Michelsen via
lists.openembedded.org
 wrote:
>
> Allows usage of asio for native packages

Comment should explain why.

> Signed-off-by: Bjarne Michelsen 
> ---
>  meta-oe/recipes-support/asio/asio_1.16.1.bb | 4 
>  1 file changed, 4 insertions(+)
>
> diff --git a/meta-oe/recipes-support/asio/asio_1.16.1.bb 
> b/meta-oe/recipes-support/asio/asio_1.16.1.bb
> index f381d12fb..dfc3b798d 100644
> --- a/meta-oe/recipes-support/asio/asio_1.16.1.bb
> +++ b/meta-oe/recipes-support/asio/asio_1.16.1.bb
> @@ -25,3 +25,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/asio/${BP}.tar.bz2"
>  PACKAGECONFIG ??= "boost"
>
>  PACKAGECONFIG[boost] = "--with-boost,--without-boost,boost"
> +
> +BBCLASSEXTEND += "native nativesdk"

By convention BBCLASSEXTEND should go at the end of the recipe and
assignment should be = rather than +=.

> +
> +EXTRA_OECONF_class-native += "--with-boost=${STAGING_LIBDIR_NATIVE}"

Don't use += with an override. It doesn't do what you expect.

If you want to append to a variable under the control of an override
then use _append.

> --
> 2.25.1
>
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141676): 
https://lists.openembedded.org/g/openembedded-core/message/141676
Mute This Topic: https://lists.openembedded.org/mt/76310921/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[OE-core] [PATCH] asio: extend recipe to add native support

2020-08-20 Thread Bjarne Michelsen via lists.openembedded.org
Allows usage of asio for native packages

Signed-off-by: Bjarne Michelsen 
---
 meta-oe/recipes-support/asio/asio_1.16.1.bb | 4 
 1 file changed, 4 insertions(+)

diff --git a/meta-oe/recipes-support/asio/asio_1.16.1.bb 
b/meta-oe/recipes-support/asio/asio_1.16.1.bb
index f381d12fb..dfc3b798d 100644
--- a/meta-oe/recipes-support/asio/asio_1.16.1.bb
+++ b/meta-oe/recipes-support/asio/asio_1.16.1.bb
@@ -25,3 +25,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/asio/${BP}.tar.bz2"
 PACKAGECONFIG ??= "boost"
 
 PACKAGECONFIG[boost] = "--with-boost,--without-boost,boost"
+
+BBCLASSEXTEND += "native nativesdk"
+
+EXTRA_OECONF_class-native += "--with-boost=${STAGING_LIBDIR_NATIVE}"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141674): 
https://lists.openembedded.org/g/openembedded-core/message/141674
Mute This Topic: https://lists.openembedded.org/mt/76310921/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-