summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-kernel/netmap/netmap-modules_git.bb')
-rw-r--r--meta-networking/recipes-kernel/netmap/netmap-modules_git.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
index 6e6f02ce5..51e7cce9d 100644
--- a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
+++ b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
@@ -61,7 +61,6 @@ do_configure_append () {
61#define NETMAP_LINUX_HAVE_PHYS_ADDR_T 61#define NETMAP_LINUX_HAVE_PHYS_ADDR_T
62#define NETMAP_LINUX_HAVE_ACCESS_ONCE 62#define NETMAP_LINUX_HAVE_ACCESS_ONCE
63#define NETMAP_LINUX_HAVE_NETDEV_OPS 63#define NETMAP_LINUX_HAVE_NETDEV_OPS
64#define NETMAP_LINUX_ALLOC_NETDEV_4ARGS
65#define NETMAP_LINUX_HAVE_INIT_NET 64#define NETMAP_LINUX_HAVE_INIT_NET
66#define NETMAP_LINUX_HAVE_LIVE_ADDR_CHANGE 65#define NETMAP_LINUX_HAVE_LIVE_ADDR_CHANGE
67#define NETMAP_LINUX_HAVE_TX_SKB_SHARING 66#define NETMAP_LINUX_HAVE_TX_SKB_SHARING
@@ -75,6 +74,13 @@ do_configure_append () {
75#define NETMAP_LINUX_HAVE_E1000E_EXT_RXDESC 74#define NETMAP_LINUX_HAVE_E1000E_EXT_RXDESC
76#define NETMAP_LINUX_HAVE_E1000E_DOWN2 75#define NETMAP_LINUX_HAVE_E1000E_DOWN2
77EOF 76EOF
77
78if ${@ 'false' if (bb.utils.vercmp_string(d.getVar('KERNEL_VERSION', True), '3.17') < 0) else 'true' } ; then
79 echo OK
80 cat >> ${S}/LINUX/netmap_linux_config.h <<EOF
81#define NETMAP_LINUX_ALLOC_NETDEV_4ARGS
82EOF
83fi
78} 84}
79 85
80do_compile () { 86do_compile () {