[oe] [meta-networking][PATCH] netmap-modules: fix compilation failure

ChenQi Qi.Chen at windriver.com
Fri Oct 9 07:36:29 UTC 2015


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 at 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', '')}"
>>   
>>
>




More information about the Openembedded-devel mailing list