Thread (33 messages) 33 messages, 5 authors, 2021-07-09

Re: [dpdk-dev] [PATCH v4] build: add platform meson option

From: Juraj Linkeš <hidden>
Date: 2021-03-31 12:19:08

-----Original Message-----
From: Juraj Linkeš <redacted>
Sent: Wednesday, March 31, 2021 2:17 PM
To: Juraj Linkeš <redacted>; thomas@monjalon.net;
david.marchand@redhat.com; bruce.richardson@intel.com;
Honnappa.Nagarahalli@arm.com
Cc: dev@dpdk.org
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/1617022234-13618-1-git-send-email-juraj.linkes@pantheon.tech/

The generic build should work everywhere, which hints at something we may need to look at. 
quoted
-----Original Message-----
From: Juraj Linkeš <redacted>
Sent: Monday, March 29, 2021 2:51 PM
To: thomas@monjalon.net; david.marchand@redhat.com;
bruce.richardson@intel.com; Honnappa.Nagarahalli@arm.com
Cc: dev@dpdk.org; Juraj Linkeš <redacted>
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š <redacted>
---
 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(-)
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help