mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
netmap-modules: Avoid type warning with python v3
Python 3 is stricter about type comparisions, this avoids warnings. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
55cb2ec6db
commit
80cf5e0ee9
@@ -70,7 +70,7 @@ do_configure_append () {
|
|||||||
#define NETMAP_LINUX_HAVE_E1000E_DOWN2
|
#define NETMAP_LINUX_HAVE_E1000E_DOWN2
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if ${@ 'false' if (bb.utils.vercmp_string(d.getVar('KERNEL_VERSION', True), '3.17') < 0) else 'true' } ; then
|
if ${@ 'false' if (bb.utils.vercmp_string(d.getVar('KERNEL_VERSION', True) or "0", '3.17') < 0) else 'true' } ; then
|
||||||
echo OK
|
echo OK
|
||||||
cat >> ${S}/LINUX/netmap_linux_config.h <<EOF
|
cat >> ${S}/LINUX/netmap_linux_config.h <<EOF
|
||||||
#define NETMAP_LINUX_ALLOC_NETDEV_4ARGS
|
#define NETMAP_LINUX_ALLOC_NETDEV_4ARGS
|
||||||
|
|||||||
Reference in New Issue
Block a user