From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavan Nikhilesh Subject: Re: [PATCH v5 2/2] build: add support for detecting march on ARM Date: Mon, 22 Jan 2018 18:07:18 +0530 Message-ID: <20180122123717.7ku5z6yr5dz6mit3@Pavan-LT> References: <20171219105338.198727-1-bruce.richardson@intel.com> <20180122114649.5907-1-pbhagavatula@caviumnetworks.com> <20180122114649.5907-2-pbhagavatula@caviumnetworks.com> <20180122123053.GA19076@bricha3-MOBL3.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Bruce Richardson , jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com, herbert.guan@arm.com, hemant.agrawal@nxp.com Return-path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0086.outbound.protection.outlook.com [104.47.33.86]) by dpdk.org (Postfix) with ESMTP id 5F09A322C for ; Mon, 22 Jan 2018 13:37:53 +0100 (CET) Content-Disposition: inline In-Reply-To: <20180122123053.GA19076@bricha3-MOBL3.ger.corp.intel.com> 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, Jan 22, 2018 at 12:30:53PM +0000, Bruce Richardson wrote: > On Mon, Jan 22, 2018 at 05:16:49PM +0530, Pavan Nikhilesh wrote: > > Added support for detecting march and mcpu by reading midr_el1 register. > > The implementer, primary part number values read can be used to figure > > out the underlying arm cpu. > > > > Signed-off-by: Pavan Nikhilesh > > --- > > app/test-pmd/meson.build | 2 +- > > config/arm/armv8_machine.py | 18 +++++++++ > > config/arm/meson.build | 95 +++++++++++++++++++++++++++++++++++++++++---- > > config/meson.build | 19 ++++----- > > drivers/meson.build | 2 +- > > examples/meson.build | 2 +- > > lib/meson.build | 2 +- > > meson.build | 2 +- > > test/test/meson.build | 2 +- > > 9 files changed, 121 insertions(+), 23 deletions(-) > > create mode 100755 config/arm/armv8_machine.py > > > > + > > + if machine == 'generic' > > + machine = impl_generic > > + cmd_output = cmd_generic > > + endif > > + > > + message('Implementer : ' + machine[0]) > > When cross-compiling for arm I get an error at this line: > > Meson encountered an error in file config/arm/meson.build, line 69, column 1: > Index 0 out of bounds of array of size 0. > Will be sending v2 of the cross patch soon(once directory structure and file name is fininlized) that would resolve this issue. > Regards, > /Bruce Thanks, Pavan. > >