package/rtl8189es: fix build failure due to missing Linux options
PATCH 1/1 package/rtl8189es: fix build failure due to missing Linux options
This driver requires CONFIG_CFG80211 and CONFIG_MMC to build so let's add them to RTL8189ES_LINUX_CONFIG_FIXUPS.
--- package/rtl8189es/rtl8189es.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/rtl8189es/rtl8189es.mk +5 -0
@@ -13,5 +13,10 @@ RTL8189ES_MODULE_MAKE_OPTS = \ KVER=$(LINUX_VERSION_PROBED) \ KSRC=$(LINUX_DIR) +define RTL8189ES_LINUX_CONFIG_FIXUPS + $(call KCONFIG_ENABLE_OPT,CONFIG_CFG80211) + $(call KCONFIG_ENABLE_OPT,CONFIG_MMC) +endef + $(eval $(kernel-module)) $(eval $(generic-package))
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Giulio, All,
On 2022-09-11 21:57 +0200, Giulio Benetti spake thusly:
Quoted 13 lines
This driver requires
CONFIG_CFG80211andCONFIG_MMCto build so let's add them toRTL8189ES_LINUX_CONFIG_FIXUPS.Signed-off-by Giulio Benetti <[email protected]>--- package/rtl8189es/rtl8189es.mk | 5 +++++ 1 file changed, 5 insertions(+)package/rtl8189es/rtl8189es.mk +0
-0
package/rtl8189es/rtl8189es.mk RTL8189ES_MODULE_MAKE_OPTS = \ · line 17
Quoted 5 lines
package/rtl8189es/rtl8189es.mk +2
-0@@ -13,5 +13,10 @@ RTL8189ES_MODULE_MAKE_OPTS = \ KVER=$(LINUX_VERSION_PROBED) \ KSRC=$(LINUX_DIR) +define RTL8189ES_LINUX_CONFIG_FIXUPS + $(call KCONFIG_ENABLE_OPT,CONFIG_CFG80211)
Symbol: CFG80211 [=m]
Type : tristate
Defined at net/wireless/Kconfig:20
Prompt: cfg80211 - wireless configuration API
Depends on: NET [=y] && WIRELESS [=y] && (RFKILL [=y] || !RFKILL [=y])
So we need NET and WIRELESS (RFKILL is just to avoid it as a module).
WIRELESS depends on !s390, so rtl8189es should also not be available for BR2_s390x, but that's rthogonal to this change.
package/rtl8189es/rtl8189es.mk RTL8189ES_MODULE_MAKE_OPTS = \ · line 18
Quoted 1 line
package/rtl8189es/rtl8189es.mk +1
-0+ $(call KCONFIG_ENABLE_OPT,CONFIG_MMC)
MMC, for a wireless driver? I've loked at the code, and MMC is not required. It can be used, yes, but it is not required, i.e. the code is springled with "#ifdef CONFIG_MMC", so it does not look like mandatory at all.
Regards,
Yann E. MORIN.
Quoted 11 lines
package/rtl8189es/rtl8189es.mk +2
-0+endef + $(eval $(kernel-module)) $(eval $(generic-package))Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Yann,
Quoted 6 lines · Yann E. MORIN
Giulio, All,
On 2022-09-11 21:57 +0200, Giulio Benetti spake thusly:
Quoted 3 lines
This driver requires
CONFIG_CFG80211andCONFIG_MMCto build so let's add them toRTL8189ES_LINUX_CONFIG_FIXUPS.
I've forgotten the
Fixes:
http://autobuild.buildroot.net/results/4b7/4b7b5bbf5b3839d99397eb2597dd7be79f403233/
that gives more context
Quoted 22 lines
Quoted 10 lines
Signed-off-by Giulio Benetti <[email protected]>--- package/rtl8189es/rtl8189es.mk | 5 +++++ 1 file changed, 5 insertions(+)package/rtl8189es/rtl8189es.mk +0
-0package/rtl8189es/rtl8189es.mk RTL8189ES_MODULE_MAKE_OPTS = \ · line 17
Quoted 5 lines
package/rtl8189es/rtl8189es.mk +2
-0@@ -13,5 +13,10 @@ RTL8189ES_MODULE_MAKE_OPTS = \ KVER=$(LINUX_VERSION_PROBED) \ KSRC=$(LINUX_DIR) +define RTL8189ES_LINUX_CONFIG_FIXUPS + $(call KCONFIG_ENABLE_OPT,CONFIG_CFG80211)Symbol: CFG80211 [=m]
Type : tristate
Defined atnet/wireless/Kconfig:20
Prompt: cfg80211 - wireless configuration API
Depends on: NET [=y] && WIRELESS [=y] && (RFKILL [=y] || !RFKILL [=y])
Quoted 1 line
So we need NET and WIRELESS (RFKILL is just to avoid it as a module).
Aaah right!
So here I need:
``` CONFIG_NET CONFIG_WIRELESS ```
and
Quoted 9 lines
WIRELESS depends on !s390, so rtl8189es should also not be available for
BR2_s390x, but that's rthogonal to this change.package/rtl8189es/rtl8189es.mk RTL8189ES_MODULE_MAKE_OPTS = \ · line 18
Quoted 1 line
package/rtl8189es/rtl8189es.mk +1
-0+ $(call KCONFIG_ENABLE_OPT,CONFIG_MMC)MMC, for a wireless driver? I've loked at the code, and MMC is not required. It can be used, yes, but it is not required, i.e. the code is springled with "#ifdef
CONFIG_MMC", so it does not look like mandatory at all.
CONFIG_MMC is needed for SDIO interface and rtl8189es is driven with SDIO:
https://www.realtek.com/en/products/communications-network-ics/item/rtl8189es
And all the sdio_() APIs not found are enabled enabling CONFIG_MMC:
https://elixir.bootlin.com/linux/latest/source/drivers/mmc/core/Makefile#L7
``` obj-$(CONFIG_MMC) += mmc_core.o mmc_core-y := sdio.o sdio_ops.o ... ```
The upstream driver also covers other Realtek chips, that's why CONFIG_MMC is optional.
So the result should be:
``` CONFIG_NET CONFIG_WIRELESS CONFIG_MMC ```
Right?
Best regards
Signature · 6 lines
Giulio Benetti Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/1 package/rtl8189es: fix build failure due to missing Linux options
This driver requires:CONFIG_NETCONFIG_WIRELESSCONFIG_CFG80211CONFIG_MMC
to build so let's add them to RTL8189ES_LINUX_CONFIG_FIXUPS.
Fixes:
http://autobuild.buildroot.net/results/4b7/4b7b5bbf5b3839d99397eb2597dd7be79f403233/
---V1->V2:
* add also CONFIG_NET and CONFIG_WIRELESS to be sure CONFIG_CFG80211 is selectable
* add Fixes: in commit log
--- package/rtl8189es/rtl8189es.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/rtl8189es/rtl8189es.mk +7 -0
@@ -13,5 +13,12 @@ RTL8189ES_MODULE_MAKE_OPTS = \ KVER=$(LINUX_VERSION_PROBED) \ KSRC=$(LINUX_DIR) +define RTL8189ES_LINUX_CONFIG_FIXUPS + $(call KCONFIG_ENABLE_OPT,CONFIG_NET) + $(call KCONFIG_ENABLE_OPT,CONFIG_WIRELESS) + $(call KCONFIG_ENABLE_OPT,CONFIG_CFG80211) + $(call KCONFIG_ENABLE_OPT,CONFIG_MMC) +endef + $(eval $(kernel-module)) $(eval $(generic-package))
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni
AppliedQuoted 11 lines · On Sun, 11 Sep 2022 23:42:06 +0200 Giulio Benetti…
This driver requires:
CONFIG_NETCONFIG_WIRELESSCONFIG_CFG80211CONFIG_MMC
to build so let's add them toRTL8189ES_LINUX_CONFIG_FIXUPS.Fixes:
http://autobuild.buildroot.net/results/4b7/4b7b5bbf5b3839d99397eb2597dd7be79f403233/Signed-off-by Giulio Benetti <[email protected]>
Quoted 8 lines
---
V1->V2:
* add alsoCONFIG_NETandCONFIG_WIRELESSto be sureCONFIG_CFG80211is selectable
* add Fixes: in commit log--- package/rtl8189es/rtl8189es.mk | 7 +++++++ 1 file changed, 7 insertions(+)
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
This driver requires:
CONFIG_NETCONFIG_WIRELESSCONFIG_CFG80211CONFIG_MMC
to build so let's add them toRTL8189ES_LINUX_CONFIG_FIXUPS.
Quoted 5 lines
Fixes:
http://autobuild.buildroot.net/results/4b7/4b7b5bbf5b3839d99397eb2597dd7be79f403233/Signed-off-by Giulio Benetti <[email protected]>---
V1-> V2:
Quoted 3 lines
* add also
CONFIG_NETandCONFIG_WIRELESSto be sureCONFIG_CFG80211is selectable
* add Fixes: in commit log
Committed to 2022.02.x, 2022.05.x and 2022.08.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot