Skip to contentSkip to conversation

netmap-modules: fix compilation failure

PATCH New Chen Qi 1 participant 1 message Oct 8, 2015

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 netmap-modules: fix compilation failure

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.

---
 meta-networking/recipes-kernel/netmap/netmap-modules_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-kernel/netmap/netmap-modules_git.bb +2 -0
index f9ac9cc..c1c319d 100644
@@ -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', '')}"
 
Signature · 1 line
1.9.1