[PATCH v1] config/arm: correct cpu arch for cross build

Joyce Kong Joyce.Kong at arm.com
Tue Nov 7 03:42:08 CET 2023


> -----Original Message-----
> From: Thomas Monjalon <thomas at monjalon.net>
> Sent: Monday, November 6, 2023 11:38 PM
> To: Ruifeng Wang <Ruifeng.Wang at arm.com>
> Cc: dev at dpdk.org; Bruce Richardson <bruce.richardson at intel.com>; nd
> <nd at arm.com>; Paul Szczepanek <Paul.Szczepanek at arm.com>; Joyce Kong
> <Joyce.Kong at arm.com>
> Subject: Re: [PATCH v1] config/arm: correct cpu arch for cross build
> 
> 06/11/2023 15:31, Joyce Kong:
> > > -----Original Message-----
> > > From: Thomas Monjalon <thomas at monjalon.net>
> > > Sent: Monday, November 6, 2023 10:10 PM
> > > To: Ruifeng Wang <Ruifeng.Wang at arm.com>; Joyce Kong
> > > <Joyce.Kong at arm.com>
> > > Cc: dev at dpdk.org; Bruce Richardson <bruce.richardson at intel.com>;
> > > dev at dpdk.org; nd <nd at arm.com>; Paul Szczepanek
> > > <Paul.Szczepanek at arm.com>
> > > Subject: Re: [PATCH v1] config/arm: correct cpu arch for cross build
> > >
> > > 18/10/2023 07:40, Joyce Kong:
> > > > > From: Thomas Monjalon <thomas at monjalon.net>
> > > > > 22/08/2023 09:47, Joyce Kong:
> > > > > > The cn10k cross build file sets cpu to 'armv8.6-a' while
> > > > > > N2 is armv8.5-a arch.
> > > > > > The cpu field in the cross file doesn't take effect as
> > > > > > config/arm/meson.build controls machine_args for march.
> > > > > > Then correct the value in arm cross files to 'auto'.
> > > > >
> > > > > I don't get it.
> > > > > Why setting a value if it has no impact?
> > > > > Looks like something is overcomplicated.
> > > > >
> > > > We still have to declare them here because meson would check the 'cpu'
> > > line in the config file, otherwise it would report missing {'cpu'}.
> > >
> > > OK
> > >
> > > Then why not all cross files are set to auto?
> > >
> > Actually, I set all the Arm cross files to auto in this patch. Maybe I have to
> figure it out in the commit line?
> 
> What about these ones?
> 
> git grep 'cpu = ' config/arm | grep -v auto
> 
> config/arm/arm64_altra_linux_gcc:cpu = 'armv8.2-a'
> config/arm/arm64_ampereone_linux_gcc:cpu = 'armv8.6-a'
> config/arm/arm64_bluefield3_linux_gcc:cpu = 'armv8.4-a'
> config/arm/arm64_cdx_linux_gcc:cpu = 'armv8-a'
> config/arm/arm64_hip10_linux_gcc:cpu = 'armv8-a'
> 
> 
Really sorry for missing them as I didn't update the version, I shall correct them in next patch.


More information about the dev mailing list