* [PATCH] libpcap.inc: Add PACKAGECONFIG support for bluez
@ 2014-04-01 10:16 Florin Sarbu
2014-04-01 10:47 ` Martin Jansa
0 siblings, 1 reply; 3+ messages in thread
From: Florin Sarbu @ 2014-04-01 10:16 UTC (permalink / raw)
To: openembedded-core
This patch adds support for having bluez5 in PACKAGECONFIG
and get libpcap DEPEND on bluez5.
Signed-off-by: Florin Sarbu <florin.sarbu@windriver.com>
---
meta/recipes-connectivity/libpcap/libpcap.inc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-connectivity/libpcap/libpcap.inc b/meta/recipes-connectivity/libpcap/libpcap.inc
index a984e05..1613567 100644
--- a/meta/recipes-connectivity/libpcap/libpcap.inc
+++ b/meta/recipes-connectivity/libpcap/libpcap.inc
@@ -10,8 +10,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867 \
file://pcap.h;beginline=1;endline=34;md5=8d6cf7e17d5745010d633e30bc529ea9"
DEPENDS = "flex-native bison-native libnl"
-PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluetooth', '', d)}"
-PACKAGECONFIG[bluetooth] = "--enable-bluetooth,--disable-bluetooth,bluez4"
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluez4', '', d)}"
+PACKAGECONFIG[bluez4] = "--enable-bluetooth,--disable-bluetooth,bluez4"
+PACKAGECONFIG[bluez5] = "--enable-bluetooth,--disable-bluetooth,bluez5"
PACKAGECONFIG[canusb] = "--enable-canusb,--enable-canusb=no,libusb"
PACKAGECONFIG[libnl1] = "--with-libnl,--without-libnl,libnl1,libnl1"
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] libpcap.inc: Add PACKAGECONFIG support for bluez
2014-04-01 10:16 [PATCH] libpcap.inc: Add PACKAGECONFIG support for bluez Florin Sarbu
@ 2014-04-01 10:47 ` Martin Jansa
2014-04-01 12:58 ` Florin Sarbu
0 siblings, 1 reply; 3+ messages in thread
From: Martin Jansa @ 2014-04-01 10:47 UTC (permalink / raw)
To: Florin Sarbu; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1898 bytes --]
On Tue, Apr 01, 2014 at 01:16:40PM +0300, Florin Sarbu wrote:
> This patch adds support for having bluez5 in PACKAGECONFIG
> and get libpcap DEPEND on bluez5.
>
> Signed-off-by: Florin Sarbu <florin.sarbu@windriver.com>
> ---
> meta/recipes-connectivity/libpcap/libpcap.inc | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-connectivity/libpcap/libpcap.inc b/meta/recipes-connectivity/libpcap/libpcap.inc
> index a984e05..1613567 100644
> --- a/meta/recipes-connectivity/libpcap/libpcap.inc
> +++ b/meta/recipes-connectivity/libpcap/libpcap.inc
> @@ -10,8 +10,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867 \
> file://pcap.h;beginline=1;endline=34;md5=8d6cf7e17d5745010d633e30bc529ea9"
> DEPENDS = "flex-native bison-native libnl"
>
> -PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluetooth', '', d)}"
> -PACKAGECONFIG[bluetooth] = "--enable-bluetooth,--disable-bluetooth,bluez4"
> +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluez4', '', d)}"
> +PACKAGECONFIG[bluez4] = "--enable-bluetooth,--disable-bluetooth,bluez4"
> +PACKAGECONFIG[bluez5] = "--enable-bluetooth,--disable-bluetooth,bluez5"
Does it work correctly?
If you don't enable both you will always get at least one
--disable-bluetooth and depending on order how packageconfigs were
processed it will be disabled or not.
> PACKAGECONFIG[canusb] = "--enable-canusb,--enable-canusb=no,libusb"
> PACKAGECONFIG[libnl1] = "--with-libnl,--without-libnl,libnl1,libnl1"
>
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] libpcap.inc: Add PACKAGECONFIG support for bluez
2014-04-01 10:47 ` Martin Jansa
@ 2014-04-01 12:58 ` Florin Sarbu
0 siblings, 0 replies; 3+ messages in thread
From: Florin Sarbu @ 2014-04-01 12:58 UTC (permalink / raw)
To: Martin Jansa; +Cc: openembedded-core
On 04/01/2014 01:47 PM, Martin Jansa wrote:
> On Tue, Apr 01, 2014 at 01:16:40PM +0300, Florin Sarbu wrote:
>> This patch adds support for having bluez5 in PACKAGECONFIG
>> and get libpcap DEPEND on bluez5.
>>
>> Signed-off-by: Florin Sarbu <florin.sarbu@windriver.com>
>> ---
>> meta/recipes-connectivity/libpcap/libpcap.inc | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/recipes-connectivity/libpcap/libpcap.inc b/meta/recipes-connectivity/libpcap/libpcap.inc
>> index a984e05..1613567 100644
>> --- a/meta/recipes-connectivity/libpcap/libpcap.inc
>> +++ b/meta/recipes-connectivity/libpcap/libpcap.inc
>> @@ -10,8 +10,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867 \
>> file://pcap.h;beginline=1;endline=34;md5=8d6cf7e17d5745010d633e30bc529ea9"
>> DEPENDS = "flex-native bison-native libnl"
>>
>> -PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluetooth', '', d)}"
>> -PACKAGECONFIG[bluetooth] = "--enable-bluetooth,--disable-bluetooth,bluez4"
>> +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluez4', '', d)}"
>> +PACKAGECONFIG[bluez4] = "--enable-bluetooth,--disable-bluetooth,bluez4"
>> +PACKAGECONFIG[bluez5] = "--enable-bluetooth,--disable-bluetooth,bluez5"
> Does it work correctly?
>
> If you don't enable both you will always get at least one
> --disable-bluetooth and depending on order how packageconfigs were
> processed it will be disabled or not.
>
You are correct, the line:
+PACKAGECONFIG[bluez5] = "--enable-bluetooth,--disable-bluetooth,bluez5"
should be:
+PACKAGECONFIG[bluez5] = "--enable-bluetooth,,bluez5"
to get it to work as expected until bluez5 is replacing entirely bluez4.
Florin
>> PACKAGECONFIG[canusb] = "--enable-canusb,--enable-canusb=no,libusb"
>> PACKAGECONFIG[libnl1] = "--with-libnl,--without-libnl,libnl1,libnl1"
>>
>> --
>> 1.9.1
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-01 12:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 10:16 [PATCH] libpcap.inc: Add PACKAGECONFIG support for bluez Florin Sarbu
2014-04-01 10:47 ` Martin Jansa
2014-04-01 12:58 ` Florin Sarbu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox