From 80cf5e0ee961436fbcb2fa2c03cb709f79fa9e3c Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 2 Jun 2016 10:34:05 +0100 Subject: netmap-modules: Avoid type warning with python v3 Python 3 is stricter about type comparisions, this avoids warnings. Signed-off-by: Richard Purdie Signed-off-by: Martin Jansa --- meta-networking/recipes-kernel/netmap/netmap-modules_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-networking') diff --git a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb index 406a4f3cff..6544bb5db7 100644 --- a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb +++ b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb @@ -70,7 +70,7 @@ do_configure_append () { #define NETMAP_LINUX_HAVE_E1000E_DOWN2 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 cat >> ${S}/LINUX/netmap_linux_config.h <