Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: akuster808 <akuster808@gmail.com>
To: Chen Qi <Qi.Chen@windriver.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-networking][PATCH] netmap-modules: fix compilation failure
Date: Thu, 08 Oct 2015 01:33:14 -0700	[thread overview]
Message-ID: <56162A4A.5090502@gmail.com> (raw)
In-Reply-To: <1444280569-4385-1-git-send-email-Qi.Chen@windriver.com>

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


  reply	other threads:[~2015-10-08  8:33 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 [this message]
2015-10-09  7:36   ` ChenQi

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=56162A4A.5090502@gmail.com \
    --to=akuster808@gmail.com \
    --cc=Qi.Chen@windriver.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