From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version Date: Thu, 19 Nov 2015 10:08:14 +0100 Message-ID: <1803345.zFkyeP7B7G@xps13> References: <20150820085106.32188573@miho> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Simon Kagstrom Return-path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 84F7C8DA7 for ; Thu, 19 Nov 2015 10:09:28 +0100 (CET) Received: by wmvv187 with SMTP id v187so14869409wmv.1 for ; Thu, 19 Nov 2015 01:09:28 -0800 (PST) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > /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 > > Signed-off-by: Johan Faltstrom > Acked-by: Helin Zhang It doesn't fix every cases but Ubuntu chroot in Ubuntu, so Applied, thanks