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

Thomas Monjalon thomas.monjalon at 6wind.com
Thu Nov 19 10:08:14 CET 2015


> > /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 at netinsight.net>
> > Signed-off-by: Johan Faltstrom <johan.faltstrom at netinsight.net>
> Acked-by: Helin Zhang <helin.zhang at intel.com>

It doesn't fix every cases but Ubuntu chroot in Ubuntu, so
Applied, thanks


More information about the dev mailing list