From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: Re: [PATCH 1/2] build: fix kernel compile on cross-build Date: Thu, 19 Apr 2018 15:46:14 +0000 Message-ID: References: <20180418210521.277384-1-bruce.richardson@intel.com> <20180418210521.277384-2-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: Bruce Richardson , "dev@dpdk.org" Return-path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0049.outbound.protection.outlook.com [104.47.0.49]) by dpdk.org (Postfix) with ESMTP id 9D87AAAB7 for ; Thu, 19 Apr 2018 17:46:15 +0200 (CEST) In-Reply-To: <20180418210521.277384-2-bruce.richardson@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Bruce Richardson >=20 > When cross-compiling, if no kernel_dir was specified, then the kernel mod= ules > were still being compiled for the build machine. Fix this by only buildin= g modules > on cross-compile when we have a kernel_dir value set. >=20 > Fixes: a52f4574f798 ("igb_uio: build with meson") >=20 > Signed-off-by: Bruce Richardson > --- > meson.build | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/meson.build b/meson.build > index cc16595cb..9e3b44931 100644 > --- a/meson.build > +++ b/meson.build > @@ -26,10 +26,14 @@ subdir('config') >=20 > # build libs and drivers > subdir('lib') > -subdir('kernel') > subdir('buildtools') > subdir('drivers') >=20 > +# build kernel modules if we have a kernel path, or we are not cross > +compiling if get_option('kernel_dir') !=3D '' or not meson.is_cross_buil= d() > + subdir('kernel') > +endif [Hemant] actually kernel_dir may not be always available on host. So unless kernel_dir is available - irrespective of host/cross - it=20 shall not try kernel compilation.=20 > + > # build binaries and installable tools > subdir('usertools') > subdir('app') > -- > 2.14.3