[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-11-19 Thread Thomas Monjalon
> > /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. > > > >

[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-11-05 Thread Simon Kågström
On 2015-11-04 19:21, Stephen Hemminger wrote: > On Wed, 4 Nov 2015 12:29:01 +0100 > Simon K?gstr?m wrote: > >> On 2015-11-04 11:35, Thomas Monjalon wrote: >>> 2015-08-20 08:51, Simon Kagstrom: -ifeq ($(shell test -f /proc/version_signature && lsb_release -si 2>/dev/null),Ubuntu)

[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-11-04 Thread Simon Kågström
On 2015-11-04 11:35, Thomas Monjalon wrote: > 2015-08-20 08:51, Simon Kagstrom: >> -ifeq ($(shell test -f /proc/version_signature && lsb_release -si >> 2>/dev/null),Ubuntu) >> +ifeq ($(shell lsb_release -si 2>/dev/null),Ubuntu) >> MODULE_CFLAGS += -DUBUNTU_RELEASE_CODE=$(shell lsb_release -sr |

[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-11-04 Thread Thomas Monjalon
2015-08-20 08:51, Simon Kagstrom: > /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.

[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-11-04 Thread Stephen Hemminger
On Wed, 4 Nov 2015 12:29:01 +0100 Simon K?gstr?m wrote: > On 2015-11-04 11:35, Thomas Monjalon wrote: > > 2015-08-20 08:51, Simon Kagstrom: > >> -ifeq ($(shell test -f /proc/version_signature && lsb_release -si > >> 2>/dev/null),Ubuntu) > >> +ifeq ($(shell lsb_release -si 2>/dev/null),Ubuntu) >

[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-11-04 Thread Simon Kågström
Ping? (Also including Stephen, Patrice and Pawel which has had comments on an earlier iteration of this patch). // Simon On 2015-08-20 08:51, Simon Kagstrom wrote: > /proc/version_signature is the version for the host machine, but in > e.g., chroots, this does not necessarily match that DPDK is

[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-11-04 Thread Zhang, Helin
> -Original Message- > From: Simon Kagstrom [mailto:simon.kagstrom at netinsight.net] > Sent: Thursday, August 20, 2015 2:51 PM > To: Zhang, Helin; thomas.monjalon at 6wind.com; dev at dpdk.org > Subject: [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version > >

[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-10-13 Thread Tom Ghyselinck
Hi Simon, I'm looking forward to this patch since we also build the DPDK for kernel versions which differ from the host kernel. IMHO, the check for "Ubuntu" also needs change since this is also a "host system" check instead of "target system" check. I.e. A user may want to build for Ubuntu on a

[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-10-13 Thread Simon Kagstrom
Ping? // Simon On Thu, 20 Aug 2015 08:51:06 +0200 Simon Kagstrom wrote: > /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

[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-08-20 Thread Simon Kagstrom
/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