From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B06E569D4 for ; Wed, 18 Apr 2018 23:05:28 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Apr 2018 14:05:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,466,1517904000"; d="scan'208";a="48963255" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.223]) by orsmga001.jf.intel.com with ESMTP; 18 Apr 2018 14:05:26 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Wed, 18 Apr 2018 22:05:20 +0100 Message-Id: <20180418210521.277384-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180418210521.277384-1-bruce.richardson@intel.com> References: <20180418210521.277384-1-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH 1/2] build: fix kernel compile on cross-build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2018 21:05:29 -0000 When cross-compiling, if no kernel_dir was specified, then the kernel modules were still being compiled for the build machine. Fix this by only building modules on cross-compile when we have a kernel_dir value set. Fixes: a52f4574f798 ("igb_uio: build with meson") Signed-off-by: Bruce Richardson --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index cc16595cb..9e3b44931 100644 --- a/meson.build +++ b/meson.build @@ -26,10 +26,14 @@ subdir('config') # build libs and drivers subdir('lib') -subdir('kernel') subdir('buildtools') subdir('drivers') +# build kernel modules if we have a kernel path, or we are not cross compiling +if get_option('kernel_dir') != '' or not meson.is_cross_build() + subdir('kernel') +endif + # build binaries and installable tools subdir('usertools') subdir('app') -- 2.14.3