> -----Original Message-----
> From: Juraj Linkeš <[email protected]>
> Sent: Wednesday, March 31, 2021 2:17 PM
> To: Juraj Linkeš <[email protected]>; [email protected];
> [email protected]; [email protected];
> [email protected]
> Cc: [email protected]
> Subject: RE: [PATCH v4] build: add platform meson option
> 
> Bruce, what do you think of the patch now? Do we need to add/change anything
> else, like documentation?
> 
> One thing to note is that we're changing the default behavior in this patch 
> from
> machine=native to machine=generic (or more accurately, to
> cpu_instruction_set=generic). Do we want to do that?
> 

This change in behavior is likely behind the CI failure: 
http://patches.dpdk.org/project/dpdk/patch/[email protected]/

The generic build should work everywhere, which hints at something we may need 
to look at. 

> > -----Original Message-----
> > From: Juraj Linkeš <[email protected]>
> > Sent: Monday, March 29, 2021 2:51 PM
> > To: [email protected]; [email protected];
> > [email protected]; [email protected]
> > Cc: [email protected]; Juraj Linkeš <[email protected]>
> > Subject: [PATCH v4] build: add platform meson option
> >
> > The current meson option 'machine' should only specify the ISA, which
> > is not sufficient for Arm, where setting ISA implies other setting as well.
> > Add a new meson option, 'platform', which differentiates the type of
> > the build
> > (native/generic) and sets machine accordingly, unless the user chooses
> > to override it.
> > The 'machine' option also doesn't describe very well what it sets, so
> > introduce a new option 'cpu_instruction_set', but keep 'machine' for
> > backwards compatibility.
> > These two new variables, taken together, achieve what 'machine' was
> > setting per architecture - setting the ISA in x86 build and setting
> > native/default 'build type' in aarch64 build - is now properly being
> > set for all architectures in a uniform manner.
> >
> > Signed-off-by: Juraj Linkeš <[email protected]>
> > ---
> >  config/arm/meson.build        |  6 ++---
> >  config/meson.build            | 47 +++++++++++++++++++++++++----------
> >  devtools/test-meson-builds.sh |  9 ++++---
> >  meson_options.txt             |  8 ++++--
> >  4 files changed, 48 insertions(+), 22 deletions(-)
> >

Reply via email to