kni: use utsrelease to determine Ubuntu kernel version
authorSimon Kagstrom <simon.kagstrom@netinsight.net>
Thu, 20 Aug 2015 06:51:06 +0000 (08:51 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 19 Nov 2015 09:06:56 +0000 (10:06 +0100)
commitb0fb5155f85a3926b82c28803ac7cbfa9da17576
tree07373b37a3bacf1277de390abb82a54432433641
parentc07ce2d90774e9ed318bc36481ac5498d2d91978
kni: use utsrelease to determine Ubuntu kernel version

/proc/version_signature is the version for the host machine, but in
e.g., chroots, this does not necessarily match that DPDK is built
for. DPDK will then build for the wrong kernel version - that of the
server, and not that installed in the (build) chroot.

The patch uses utsrelease.h from the kernel sources instead and fakes
the upload version.

Tested on a server with Ubuntu 12.04, building in a chroot for Ubuntu
14.04.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Signed-off-by: Johan Faltstrom <johan.faltstrom@netinsight.net>
Acked-by: Helin Zhang <helin.zhang@intel.com>
lib/librte_eal/linuxapp/kni/Makefile