* [meta-networking][PATCH] netmap-modules: fix compilation failure
@ 2015-10-08 5:02 Chen Qi
2015-10-08 8:33 ` akuster808
0 siblings, 1 reply; 3+ messages in thread
From: Chen Qi @ 2015-10-08 5:02 UTC (permalink / raw)
To: openembedded-devel, Joe_MacDonald
If CONFIG_IXGBE is enabled in kernel. This package fails to build with
error messages like below.
| #error "unsupported ixgbe driver version"
| ^
.......
error: request for member 'count' in something not a structure or union
| na.num_rx_desc = NM_IXGBE_RX_RING(adapter, 0)->count;
| ^
| cc1: some warnings being treated as errors
Fix this problem by disabling igxbe driver in netmap-modules.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta-networking/recipes-kernel/netmap/netmap-modules_git.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
index f9ac9cc..c1c319d 100644
--- a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
+++ b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
@@ -15,6 +15,8 @@ EXTRA_OECONF = "--kernel-dir=${STAGING_KERNEL_BUILDDIR} \
--driver-suffix="-netmap" \
"
+EXTRA_OECONF += "--no-drivers=ixgbe"
+
LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,-O1', '')}"
LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,--as-needed', '')}"
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [meta-networking][PATCH] netmap-modules: fix compilation failure
2015-10-08 5:02 [meta-networking][PATCH] netmap-modules: fix compilation failure Chen Qi
@ 2015-10-08 8:33 ` akuster808
2015-10-09 7:36 ` ChenQi
0 siblings, 1 reply; 3+ messages in thread
From: akuster808 @ 2015-10-08 8:33 UTC (permalink / raw)
To: Chen Qi; +Cc: openembedded-devel
Chen Qi,
On 10/07/2015 10:02 PM, Chen Qi wrote:
> If CONFIG_IXGBE is enabled in kernel. This package fails to build with
> error messages like below.
>
> | #error "unsupported ixgbe driver version"
> | ^
>
> .......
>
> error: request for member 'count' in something not a structure or union
> | na.num_rx_desc = NM_IXGBE_RX_RING(adapter, 0)->count;
> | ^
> | cc1: some warnings being treated as errors
>
> Fix this problem by disabling igxbe driver in netmap-modules.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> meta-networking/recipes-kernel/netmap/netmap-modules_git.bb | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
> index f9ac9cc..c1c319d 100644
> --- a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
> +++ b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
> @@ -15,6 +15,8 @@ EXTRA_OECONF = "--kernel-dir=${STAGING_KERNEL_BUILDDIR} \
> --driver-suffix="-netmap" \
> "
>
> +EXTRA_OECONF += "--no-drivers=ixgbe"
> +
Would the following also work?
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[IXGBE] = "--drivers=ixgbe,--no-drivers=ixgbe"
Then we replicate that for the other kernel modules.
- armin
> LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,-O1', '')}"
> LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,--as-needed', '')}"
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [meta-networking][PATCH] netmap-modules: fix compilation failure
2015-10-08 8:33 ` akuster808
@ 2015-10-09 7:36 ` ChenQi
0 siblings, 0 replies; 3+ messages in thread
From: ChenQi @ 2015-10-09 7:36 UTC (permalink / raw)
To: akuster808; +Cc: openembedded-devel
On 10/08/2015 04:33 PM, akuster808 wrote:
> Chen Qi,
>
>
> On 10/07/2015 10:02 PM, Chen Qi wrote:
>> If CONFIG_IXGBE is enabled in kernel. This package fails to build with
>> error messages like below.
>>
>> | #error "unsupported ixgbe driver version"
>> | ^
>>
>> .......
>>
>> error: request for member 'count' in something not a structure or union
>> | na.num_rx_desc = NM_IXGBE_RX_RING(adapter, 0)->count;
>> | ^
>> | cc1: some warnings being treated as errors
>>
>> Fix this problem by disabling igxbe driver in netmap-modules.
>>
>> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
>> ---
>> meta-networking/recipes-kernel/netmap/netmap-modules_git.bb | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
>> index f9ac9cc..c1c319d 100644
>> --- a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
>> +++ b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
>> @@ -15,6 +15,8 @@ EXTRA_OECONF = "--kernel-dir=${STAGING_KERNEL_BUILDDIR} \
>> --driver-suffix="-netmap" \
>> "
>>
>> +EXTRA_OECONF += "--no-drivers=ixgbe"
>> +
> Would the following also work?
>
> +PACKAGECONFIG ?= ""
> +PACKAGECONFIG[IXGBE] = "--drivers=ixgbe,--no-drivers=ixgbe"
>
> Then we replicate that for the other kernel modules.
>
> - armin
The problem is that if 'IXGBE' is enabled, the compilation fails.
I tried three values for the macro, none of them works.
Best Regards,
Chen Qi
>> LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,-O1', '')}"
>> LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,--as-needed', '')}"
>>
>>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-09 7:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-08 5:02 [meta-networking][PATCH] netmap-modules: fix compilation failure Chen Qi
2015-10-08 8:33 ` akuster808
2015-10-09 7:36 ` ChenQi
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.