From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [RFC PATCH] build for DPDK with meson and ninja Date: Thu, 8 Jun 2017 12:50:38 +0530 Message-ID: References: <20170607104743.275149-1-bruce.richardson@intel.com> <20170607104743.275149-2-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: To: Bruce Richardson Return-path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0045.outbound.protection.outlook.com [104.47.41.45]) by dpdk.org (Postfix) with ESMTP id DD56B2BB8 for ; Thu, 8 Jun 2017 09:12:04 +0200 (CEST) In-Reply-To: <20170607104743.275149-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" Hello Bruce, On Wednesday 07 June 2017 04:17 PM, Bruce Richardson wrote: > to use, need to have meson >= 0.4 and ninja-build packages installed. > > Then do the following in main DPDK directory: > > meson build > cd build > ninja > sudo ninja install > > This will compile up some DPDK libs, the FVL PMD and testpmd and install > them in /usr/local/. [On Fedora you will need to add /usr/local/lib64 to > your ld path, it's not there by default.] > Then you can run testpmd as e.g. > <...snip...> > diff --git a/test/test/meson.build b/test/test/meson.build > new file mode 100644 > index 0000000..cc85408 > --- /dev/null > +++ b/test/test/meson.build > @@ -0,0 +1,23 @@ > +executable('dpdk-test', > + sources: [ > + 'commands.c', > + 'packet_burst_generator.c', > + 'test.c', > + 'test_acl.c', > + 'test_cmdline.c', > + 'test_cmdline_cirbuf.c', > + 'test_cmdline_etheraddr.c', > + 'test_cmdline_ipaddr.c', > + 'test_cmdline_lib.c', > + 'test_cmdline_num.c', > + 'test_cmdline_portlist.c', > + 'test_cmdline_string.c', > + 'test_cpuflags.c', > + 'test_mp_secondary.c', > + 'test_pmd_perf.c', > + 'test_ring.c', > + 'test_ring_perf.c' > + ], > + dependencies: [rte_eal, rte_ring, rte_mempool, rte_cmdline, > + rte_mbuf, rte_net, rte_ether, rte_acl], > + install: true) <..snip..> I tried this with x86 and it worked like a charm. Really nice and clean way to build DPDK - and super fast. Awesome. I want to use this for an ARM target. Any idea what I should change in meson.build? Or, is that even straightforward? (Yes, I can lookup documentation for meson - just being lazy. If you don't have much idea, I will give this a spin on ARM in a couple of days) - Shreyansh