summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-kernel
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2015-12-30 17:02:10 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2016-01-14 11:24:00 +0100
commit3c7c7e1358b307e149eea00cb996e11debda387d (patch)
tree018e139b7319ca8f42b5526d0007c6be4128d9b1 /meta-networking/recipes-kernel
parent73af5c278f6617149a46b2d2a1549bc154fa79e5 (diff)
downloadmeta-openembedded-3c7c7e1358b307e149eea00cb996e11debda387d.tar.gz
netmap-modules: fix build with kernel < 3.17
* define NETMAP_LINUX_ALLOC_NETDEV_4ARGS only when MACHINE is using kernel 3.17 or newer Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-kernel')
-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 () {