[PATCH v6 03/10] dts: add dpdk build on sut
David Marchand
david.marchand at redhat.com
Mon Mar 20 14:22:32 CET 2023
On Mon, Mar 20, 2023 at 2:12 PM Juraj Linkeš <juraj.linkes at pantheon.tech> wrote:
> On Mon, Mar 20, 2023 at 9:30 AM David Marchand
> <david.marchand at redhat.com> wrote:
> > On Fri, Mar 3, 2023 at 11:25 AM Juraj Linkeš <juraj.linkes at pantheon.tech> wrote:
> > > +class MesonArgs(object):
> > > + """
> > > + Aggregate the arguments needed to build DPDK:
> > > + default_library: Default library type, Meson allows "shared", "static" and "both".
> > > + Defaults to None, in which case the argument won't be used.
> > > + Keyword arguments: The arguments found in meson_options.txt in root DPDK directory.
> > > + Do not use -D with them, for example:
> > > + meson_args = MesonArgs(enable_kmods=True).
> > > + """
> > > +
> > > + _default_library: str
> > > +
> > > + def __init__(self, default_library: str | None = None, **dpdk_args: str | bool):
> > > + self._default_library = (
> > > + f"--default-library={default_library}" if default_library else ""
> > > + )
> > > + self._dpdk_args = " ".join(
> > > + (
> > > + f"-D{dpdk_arg_name}={dpdk_arg_value}"
> > > + for dpdk_arg_name, dpdk_arg_value in dpdk_args.items()
> > > + )
> > > + )
> >
> > I am missing something here.
> > Afair, meson accepts the -Ddefault_library form.
> >
> > Why do we need this special case?
>
> I did not know that specifying default_library with -D is possible.
> Should I submit a fix?
This is not a big/pressing issue.
This can go in the next release.
Thanks.
--
David Marchand
More information about the dev
mailing list