Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: ChenQi <Qi.Chen@windriver.com>
To: akuster808 <akuster808@gmail.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-networking][PATCH] netmap-modules: fix compilation failure
Date: Fri, 9 Oct 2015 15:36:29 +0800	[thread overview]
Message-ID: <56176E7D.1050905@windriver.com> (raw)
In-Reply-To: <56162A4A.5090502@gmail.com>

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



      reply	other threads:[~2015-10-09  7:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56176E7D.1050905@windriver.com \
    --to=qi.chen@windriver.com \
    --cc=akuster808@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox