[Buildroot] [PATCH 1/1] package/connman: enable wireguard
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sun Mar 8 21:30:04 UTC 2020
Hello,
On Sun, 8 Mar 2020 18:37:18 +0100
Petr Vorel <petr.vorel at gmail.com> wrote:
> > > diff --git a/package/connman/Config.in b/package/connman/Config.in
> > > index ac012dda54..614b826f96 100644
> > > --- a/package/connman/Config.in
> > > +++ b/package/connman/Config.in
> > > @@ -33,6 +33,7 @@ config BR2_PACKAGE_CONNMAN_NFTABLES
> > > bool "nftables"
> > > depends on BR2_USE_WCHAR
> > > depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
> > > + select BR2_PACKAGE_LIBMNL
>
> > How is this related to wireguard support ?
> Yes.
>
> > > select BR2_PACKAGE_NFTABLES
> > > help
> > > Use nftables as firewall.
> > > @@ -51,6 +52,10 @@ config BR2_PACKAGE_CONNMAN_WIFI
> > > setup). ConnMan detects the start of wpa_supplicant
> > > automatically.
>
> > > +config BR2_PACKAGE_CONNMAN_WIREGUARD
> > > + bool "enable wireguard support"
> > > + select BR2_PACKAGE_LIBMNL
>
> > We already had a patch from Petr at
> > http://patchwork.ozlabs.org/patch/1246181/ to add Wireguard support,
> > but he was also selecting BR2_PACKAGE_WIREGUARD_TOOLS.
>
> > Could you or Petr clarify this ?
> configure.ac
> found_libmnl="no"
> if (test "${firewall_type}" = "nftables" -o \
> "${enable_wireguard}" != "no"); then
> PKG_CHECK_MODULES(LIBMNL, [libmnl >= 1.0.0], [found_libmnl="yes"],
> AC_MSG_ERROR([libmnl >= 1.0.0 not found]))
> AC_SUBST(LIBMNL_CFLAGS)
> AC_SUBST(LIBMNL_LIBS)
> fi
> AM_CONDITIONAL(LIBMNL, test "${found_libmnl}" != "no")
Then the "select BR2_PACKAGE_LIBMNL" added to
BR2_PACKAGE_CONNMAN_NFTABLES is completely unrelated to wireguard
support. connman needs libmnl if nftables is used *or* if wireguard is
used.
So the missing select BR2_PACKAGE_LIBMNL in
BR2_PACKAGE_CONNMAN_NFTABLES should be added as a separate patch.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list