* [dpdk-dev] [PATCH v1] doc: update machine meson option in prog guide
@ 2021-10-05 7:44 Juraj Linkeš
2021-10-11 13:42 ` [dpdk-dev] [PATCH v2] " Juraj Linkeš
0 siblings, 1 reply; 4+ messages in thread
From: Juraj Linkeš @ 2021-10-05 7:44 UTC (permalink / raw)
To: thomas, david.marchand, bruce.richardson; +Cc: dev, Juraj Linkeš
Update the docs to reflect the two new variables, cpu_instruction_set
for non-arm builds and platform for arm builds.
Fixes: bf66003b51ec ("build: use platform for generic and native builds")
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
---
doc/guides/prog_guide/build-sdk-meson.rst | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/doc/guides/prog_guide/build-sdk-meson.rst b/doc/guides/prog_guide/build-sdk-meson.rst
index 877a64b061..0f5ce599be 100644
--- a/doc/guides/prog_guide/build-sdk-meson.rst
+++ b/doc/guides/prog_guide/build-sdk-meson.rst
@@ -91,7 +91,8 @@ Project-specific options are passed used -Doption=value::
meson -Denable_docs=true fullbuild # build and install docs
- meson -Dmachine=generic # use builder-independent baseline -march
+ meson -Dcpu_instruction_set=generic # use builder-independent
+ # baseline -march
meson -Ddisable_drivers=event/*,net/tap # disable tap driver and all
# eventdev PMDs for a smaller build
@@ -120,9 +121,16 @@ Examples of setting some of the same options using meson configure::
re-scan from meson.
.. note::
- machine=generic uses a config that works on all supported architectures
- regardless of the capabilities of the machine where the build is happening.
+ cpu_instruction_set=generic uses an instruction set that works on all
+ supported architectures regardless of the capabilities of the machine
+ where the build is happening.
+.. note::
+ cpu_instruction_set is not used in Arm builds, as setting the instruction
+ set without other parameters leads to inferior builds. The way to tailor
+ Arm builds is to build for a SoC using -Dplatform=<SoC>.
+
+]
As well as those settings taken from ``meson configure``, other options
such as the compiler to use can be passed via environment variables. For
example::
--
2.20.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dpdk-dev] [PATCH v2] doc: update machine meson option in prog guide
2021-10-05 7:44 [dpdk-dev] [PATCH v1] doc: update machine meson option in prog guide Juraj Linkeš
@ 2021-10-11 13:42 ` Juraj Linkeš
2021-11-26 13:41 ` Thomas Monjalon
0 siblings, 1 reply; 4+ messages in thread
From: Juraj Linkeš @ 2021-10-11 13:42 UTC (permalink / raw)
To: thomas, david.marchand, bruce.richardson; +Cc: dev, Juraj Linkeš
Update the docs to reflect the two new variables, cpu_instruction_set
for non-arm builds and platform for arm builds.
Fixes: bf66003b51ec ("build: use platform for generic and native builds")
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
---
v2: ci retest
---
doc/guides/prog_guide/build-sdk-meson.rst | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/doc/guides/prog_guide/build-sdk-meson.rst b/doc/guides/prog_guide/build-sdk-meson.rst
index 877a64b061..0f5ce599be 100644
--- a/doc/guides/prog_guide/build-sdk-meson.rst
+++ b/doc/guides/prog_guide/build-sdk-meson.rst
@@ -91,7 +91,8 @@ Project-specific options are passed used -Doption=value::
meson -Denable_docs=true fullbuild # build and install docs
- meson -Dmachine=generic # use builder-independent baseline -march
+ meson -Dcpu_instruction_set=generic # use builder-independent
+ # baseline -march
meson -Ddisable_drivers=event/*,net/tap # disable tap driver and all
# eventdev PMDs for a smaller build
@@ -120,9 +121,16 @@ Examples of setting some of the same options using meson configure::
re-scan from meson.
.. note::
- machine=generic uses a config that works on all supported architectures
- regardless of the capabilities of the machine where the build is happening.
+ cpu_instruction_set=generic uses an instruction set that works on all
+ supported architectures regardless of the capabilities of the machine
+ where the build is happening.
+.. note::
+ cpu_instruction_set is not used in Arm builds, as setting the instruction
+ set without other parameters leads to inferior builds. The way to tailor
+ Arm builds is to build for a SoC using -Dplatform=<SoC>.
+
+]
As well as those settings taken from ``meson configure``, other options
such as the compiler to use can be passed via environment variables. For
example::
--
2.20.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH v2] doc: update machine meson option in prog guide
2021-10-11 13:42 ` [dpdk-dev] [PATCH v2] " Juraj Linkeš
@ 2021-11-26 13:41 ` Thomas Monjalon
2021-11-26 14:16 ` Juraj Linkeš
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Monjalon @ 2021-11-26 13:41 UTC (permalink / raw)
To: Juraj Linkeš
Cc: david.marchand, bruce.richardson, dev, honnappa.nagarahalli,
Ruifeng Wang
11/10/2021 15:42, Juraj Linkeš:
> Update the docs to reflect the two new variables, cpu_instruction_set
> for non-arm builds and platform for arm builds.
>
> Fixes: bf66003b51ec ("build: use platform for generic and native builds")
>
> Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
> ---
> --- a/doc/guides/prog_guide/build-sdk-meson.rst
> +++ b/doc/guides/prog_guide/build-sdk-meson.rst
> - meson -Dmachine=generic # use builder-independent baseline -march
> + meson -Dcpu_instruction_set=generic # use builder-independent
> + # baseline -march
[...]
> .. note::
> - machine=generic uses a config that works on all supported architectures
> - regardless of the capabilities of the machine where the build is happening.
> + cpu_instruction_set=generic uses an instruction set that works on all
> + supported architectures regardless of the capabilities of the machine
> + where the build is happening.
>
> +.. note::
> + cpu_instruction_set is not used in Arm builds, as setting the instruction
> + set without other parameters leads to inferior builds. The way to tailor
> + Arm builds is to build for a SoC using -Dplatform=<SoC>.
> +
> +]
I assume this last line is a typo.
I would prefer having an Ack from Arm, but it did not happen.
Applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [dpdk-dev] [PATCH v2] doc: update machine meson option in prog guide
2021-11-26 13:41 ` Thomas Monjalon
@ 2021-11-26 14:16 ` Juraj Linkeš
0 siblings, 0 replies; 4+ messages in thread
From: Juraj Linkeš @ 2021-11-26 14:16 UTC (permalink / raw)
To: Thomas Monjalon
Cc: david.marchand, bruce.richardson, dev, honnappa.nagarahalli,
Ruifeng Wang
> -----Original Message-----
> From: Thomas Monjalon <thomas@monjalon.net>
> Sent: Friday, November 26, 2021 2:41 PM
> To: Juraj Linkeš <juraj.linkes@pantheon.tech>
> Cc: david.marchand@redhat.com; bruce.richardson@intel.com; dev@dpdk.org;
> honnappa.nagarahalli@arm.com; Ruifeng Wang <ruifeng.wang@arm.com>
> Subject: Re: [dpdk-dev] [PATCH v2] doc: update machine meson option in prog
> guide
>
> 11/10/2021 15:42, Juraj Linkeš:
> > Update the docs to reflect the two new variables, cpu_instruction_set
> > for non-arm builds and platform for arm builds.
> >
> > Fixes: bf66003b51ec ("build: use platform for generic and native
> > builds")
> >
> > Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
> > ---
> > --- a/doc/guides/prog_guide/build-sdk-meson.rst
> > +++ b/doc/guides/prog_guide/build-sdk-meson.rst
> > - meson -Dmachine=generic # use builder-independent baseline -march
> > + meson -Dcpu_instruction_set=generic # use builder-independent
> > + # baseline -march
> [...]
> > .. note::
> > - machine=generic uses a config that works on all supported architectures
> > - regardless of the capabilities of the machine where the build is
> happening.
> > + cpu_instruction_set=generic uses an instruction set that works on all
> > + supported architectures regardless of the capabilities of the machine
> > + where the build is happening.
> >
> > +.. note::
> > + cpu_instruction_set is not used in Arm builds, as setting the instruction
> > + set without other parameters leads to inferior builds. The way to tailor
> > + Arm builds is to build for a SoC using -Dplatform=<SoC>.
> > +
> > +]
>
> I assume this last line is a typo.
Yes, the square bracket shouldn't be there.
>
> I would prefer having an Ack from Arm, but it did not happen.
>
> Applied, thanks.
>
>
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-11-26 14:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 7:44 [dpdk-dev] [PATCH v1] doc: update machine meson option in prog guide Juraj Linkeš
2021-10-11 13:42 ` [dpdk-dev] [PATCH v2] " Juraj Linkeš
2021-11-26 13:41 ` Thomas Monjalon
2021-11-26 14:16 ` Juraj Linkeš
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).