From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4B008A09EF; Mon, 21 Dec 2020 15:47:48 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A54DCCA4A; Mon, 21 Dec 2020 15:47:46 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 835AFCA2C for ; Mon, 21 Dec 2020 15:47:44 +0100 (CET) IronPort-SDR: Om1veckurONV1EEPv2oz4d1VQu0jrJl8GOADZsTlPLMnNMpm87vy4KGIHNUciivN+fcinWRwMk 9BwzfSIBCXLQ== X-IronPort-AV: E=McAfee;i="6000,8403,9841"; a="154949169" X-IronPort-AV: E=Sophos;i="5.78,436,1599548400"; d="scan'208";a="154949169" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2020 06:47:43 -0800 IronPort-SDR: YNGeNs0q2odSebWOvbHb0Kfp6zTKexzAsRaaElwFMq6ImeXQdSYdCDHwKifYUW7vno8Kyc7mWR fGZjBkNfAXtg== X-IronPort-AV: E=Sophos;i="5.78,436,1599548400"; d="scan'208";a="372558287" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.15.169]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 21 Dec 2020 06:47:42 -0800 Date: Mon, 21 Dec 2020 14:47:39 +0000 From: Bruce Richardson To: Hemant Agrawal Cc: "dev@dpdk.org" Message-ID: <20201221144739.GC1753@bricha3-MOBL.ger.corp.intel.com> References: <20201221140402.GB1753@bricha3-MOBL.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dpdk-dev] meson: wrong dependency in cross compilation on ARM 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Dec 21, 2020 at 02:28:42PM +0000, Hemant Agrawal wrote: > > > -----Original Message----- > > From: dev On Behalf Of Bruce Richardson > > > > On Mon, Dec 21, 2020 at 12:19:17PM +0000, Hemant Agrawal wrote: > > > Hi, > > > I am trying to cross compile DPDK for arm64 on a ubuntu machine, > > which has a zlib pre-installed for native env. > > > > > > I am encountering following build error in net_bnx2x as it has dependency > > on zlib. It is trying to link with x86 arch based zlib. > > > > > > Cross compiling zlib and setting the PKG_CONFIG_PATH solve the issue. > > But, Is their an easy way to disable these dependencies? > > > > > Can you try with setting PKG_CONFIG_LIBDIR rather than > > PKG_CONFIG_PATH? > > PKG_CONFIG_PATH simply extends the search locations, which means that > > host-paths will still be searched, while PKG_CONFIG_LIBDIR replaces the > > default path, eliminating the host-based search paths. > > [Hemant] I will try. > > Also, is there a way to disable certain drivers (e.g. bnx2x) and libraries (e.g. compress) in meson config file statically, so that they don't get build. > Using disable_driver options is still not working as the dpdk-test has dependency on zlib. > No support to disable libraries has been put in place yet, but the autotest binary should be possible to disable using the "tests" build time option (and as you already know individual drivers can be disabled too). Setting PKG_CONFIG_LIBDIR to a new location should for all these cases prevent detection of the host-installed zlib-dev package. /Bruce