[Buildroot] [PATCH 1/1] package/wireless_tools: add option to build ifrename

Maier, Brandon L Collins Brandon.Maier at collins.com
Tue Oct 24 18:52:40 UTC 2023


Hi Yann,

> -----Original Message-----
> From: Yann E. MORIN <yann.morin.1998 at free.fr>
> Sent: Sunday, October 22, 2023 1:48 PM
>
> Those are two semantically disjoint changes, so they should be two
> patches, preferably in this order:
>  1. one to allow only building the library (and make iwconfig optional)
>  2. one to add ifrename

Agreed, sent a v2 series with the changes split apart

> So, if none of ifrename, iwconfig, or the library is enabled, then there
> is nothjing to build (or to install, below). In this case, it does not
> make sense to enable the package altogether.
>
> I think we must ensure that at least one of those are enabled, and
> iwconfig looks like the obvious candidate. So (elided for the sake of
> example):
>
>     config BR2_PACKAGE_WIRELESS_TOOLS
>         bool "wireless tools"
>         select BR2_PACKAGE_WIRELESS_TOOLS_IWCONFIG if \
>             !BR2_PACKAGE_WIRELESS_TOOLS_IFRENAME && \
>             !BR2_PACKAGE_WIRELESS_TOOLS_LIB
>
> Of course, in the first patch, only BR2_PACKAGE_WIRELESS_TOOLS_LIB would
> be needed in the condition, with BR2_PACKAGE_WIRELESS_TOOLS_IFRENAME
> added in patch 2.

Agreed, it makes sense to require one of the tools to be built. Didn't know about this KConfig trick. Fixed as suggested in v2.

Thanks,
Brandon Maier




More information about the buildroot mailing list