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

akuster808 akuster808 at gmail.com
Thu Oct 8 08:33:14 UTC 2015


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

>  LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,-O1', '')}"
>  LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,--as-needed', '')}"
>  
> 



More information about the Openembedded-devel mailing list