Skip to contentSkip to conversation

package/wilc-driver: fix build failure due to missing Linux options

PATCH Applied Giulio Benetti 3 participants 5 messages Sep 20, 2022 – Dec 5, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/wilc-driver: fix build failure due to missing Linux options

Enable Linux options depending on the bus has been chosen, so:
1) enable by default common Linux options:
CONFIG_NET
CONFIG_WIRELESS
CONFIG_CFG80211
CONFIG_CRC_ITU_T
CONFIG_CRC7
2) enable for SDIO bus:
CONFIG_MMC
3) enable for SPI bus:
CONFIG_SPI

Fixes:
http://autobuild.buildroot.net/results/d8c4f0f959dd2ec110db8a75980f13172c3c116c/

---
 package/wilc-driver/wilc-driver.mk | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
package/wilc-driver/wilc-driver.mk +16 -0
index a89af30e29..a7a902b6db 100644
@@ -13,11 +13,17 @@ WILC_DRIVER_LICENSE_FILES = LICENSE
 ifeq ($(BR2_PACKAGE_WILC_DRIVER_SPI),y)
 WILC_DRIVER_MODULE_MAKE_OPTS += \
 	CONFIG_WILC_SPI=m
+define WILC_DRIVER_SPI_LINUX_CONFIG_FIXUPS
+	$(call KCONFIG_ENABLE_OPT,CONFIG_SPI)
+endef
 endif
 
 ifeq ($(BR2_PACKAGE_WILC_DRIVER_SDIO),y)
 WILC_DRIVER_MODULE_MAKE_OPTS += \
 	CONFIG_WILC_SDIO=m
+define WILC_DRIVER_SDIO_LINUX_CONFIG_FIXUPS
+	$(call KCONFIG_ENABLE_OPT,CONFIG_MMC)
+endef
 endif
 
 ifeq ($(BR2_PACKAGE_WILC_DRIVER_SDIO_OOB),y)
@@ -25,5 +31,15 @@ WILC_DRIVER_MODULE_MAKE_OPTS += \
 	CONFIG_WILC_HW_OOB_INTR=y
 endif
 
+define WILC_DRIVER_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_CRC_ITU_T)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_CRC7)
+	$(WILC_DRIVER_SPI_LINUX_CONFIG_FIXUPS)
+	$(WILC_DRIVER_SDIO_LINUX_CONFIG_FIXUPS)
+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
Reviewed-by Kris Bahnsen on v1 1/1
#1 lore raw
Quoted 48 lines · Giulio Benetti

Enable Linux options depending on the bus has been chosen, so:
1) enable by default common Linux options:
CONFIG_NET
CONFIG_WIRELESS
CONFIG_CFG80211
CONFIG_CRC_ITU_T
CONFIG_CRC7
2) enable for SDIO bus:
CONFIG_MMC
3) enable for SPI bus:
CONFIG_SPI

Fixes:
http://autobuild.buildroot.net/results/d8c4f0f959dd2ec110db8a75980f13172c3c116c/

---
 package/wilc-driver/wilc-driver.mk | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
package/wilc-driver/wilc-driver.mk +8 -0
index a89af30e29..a7a902b6db 100644
@@ -13,11 +13,17 @@ WILC_DRIVER_LICENSE_FILES = LICENSE
 ifeq ($(BR2_PACKAGE_WILC_DRIVER_SPI),y)
 WILC_DRIVER_MODULE_MAKE_OPTS += \
 	CONFIG_WILC_SPI=m
+define WILC_DRIVER_SPI_LINUX_CONFIG_FIXUPS
+	$(call KCONFIG_ENABLE_OPT,CONFIG_SPI)
+endef
 endif
 
 ifeq ($(BR2_PACKAGE_WILC_DRIVER_SDIO),y)
 WILC_DRIVER_MODULE_MAKE_OPTS += \
 	CONFIG_WILC_SDIO=m
+define WILC_DRIVER_SDIO_LINUX_CONFIG_FIXUPS
+	$(call KCONFIG_ENABLE_OPT,CONFIG_MMC)
+endef
 endif
 
 ifeq ($(BR2_PACKAGE_WILC_DRIVER_SDIO_OOB),y)
@@ -25,5 +31,15 @@ WILC_DRIVER_MODULE_MAKE_OPTS += \
 	CONFIG_WILC_HW_OOB_INTR=y
 endif
 
+define WILC_DRIVER_LINUX_CONFIG_FIXUPS
+	$(call KCONFIG_ENABLE_OPT,CONFIG_NET)

package/wilc-driver/wilc-driver.mk WILC_DRIVER_MODULE_MAKE_OPTS += \ · line 45

Quoted 10 lines
package/wilc-driver/wilc-driver.mk +8 -0
+	$(call KCONFIG_ENABLE_OPT,CONFIG_WIRELESS)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_CFG80211)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_CRC_ITU_T)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_CRC7)
+	$(WILC_DRIVER_SPI_LINUX_CONFIG_FIXUPS)
+	$(WILC_DRIVER_SDIO_LINUX_CONFIG_FIXUPS)
+endef
+
 $(eval $(kernel-module))
 $(eval $(generic-package))

Thanks for that! I was not readily aware of that syntax for kernel config fixups. I've also added auto-builds to my filter exception rules so I should be able to more readily look those over in the future.

-Kris
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw

Hi Kris,

Quoted 65 lines

Il giorno 20 set 2022, alle ore 19:10, Kris Bahnsen <[email protected]> ha scritto:

Quoted 56 lines · Giulio Benetti

Enable Linux options depending on the bus has been chosen, so:
1) enable by default common Linux options:
CONFIG_NET
CONFIG_WIRELESS
CONFIG_CFG80211
CONFIG_CRC_ITU_T
CONFIG_CRC7
2) enable for SDIO bus:
CONFIG_MMC
3) enable for SPI bus:
CONFIG_SPI

Fixes:
http://autobuild.buildroot.net/results/d8c4f0f959dd2ec110db8a75980f13172c3c116c/

---
package/wilc-driver/wilc-driver.mk | 16 ++++++++++++++++

1 file changed, 16 insertions(+)
package/wilc-driver/wilc-driver.mk +3 -0
index a89af30e29..a7a902b6db 100644
@@ -13,11 +13,17 @@ WILC_DRIVER_LICENSE_FILES = LICENSE
 ifeq ($(BR2_PACKAGE_WILC_DRIVER_SPI),y)
 WILC_DRIVER_MODULE_MAKE_OPTS += \
   CONFIG_WILC_SPI=m
+define WILC_DRIVER_SPI_LINUX_CONFIG_FIXUPS
+    $(call KCONFIG_ENABLE_OPT,CONFIG_SPI)
+endef

endif

ifeq ($(BR2_PACKAGE_WILC_DRIVER_SDIO),y)
WILC_DRIVER_MODULE_MAKE_OPTS += \
CONFIG_WILC_SDIO=m

package/wilc-driver/wilc-driver.mk +3 -0
+define WILC_DRIVER_SDIO_LINUX_CONFIG_FIXUPS
+    $(call KCONFIG_ENABLE_OPT,CONFIG_MMC)
+endef

endif

ifeq ($(BR2_PACKAGE_WILC_DRIVER_SDIO_OOB),y)

package/wilc-driver/wilc-driver.mk +0 -0
@@ -25,5 +31,15 @@ WILC_DRIVER_MODULE_MAKE_OPTS += \
   CONFIG_WILC_HW_OOB_INTR=y

endif

package/wilc-driver/wilc-driver.mk +10 -0
+define WILC_DRIVER_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_CRC_ITU_T)
+    $(call KCONFIG_ENABLE_OPT,CONFIG_CRC7)
+    $(WILC_DRIVER_SPI_LINUX_CONFIG_FIXUPS)
+    $(WILC_DRIVER_SDIO_LINUX_CONFIG_FIXUPS)
+endef
+
Quoted 2 lines

$(eval $(kernel-module))
$(eval $(generic-package))

Quoted 1 line

Thanks for that!

No problem!

Quoted 1 line

I was not readily aware of that syntax for kernel config fixups.

They are very helpful and easy to use.

Quoted 2 lines

I've also added auto-builds to my filter exception rules so I should be able to more readily look those over in the future.

Awesome :-)

Thanks for reviewing and
Kind regards
—
Giulio Benetti
Benetti Engineering sas

Quoted 2 lines

-Kris

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Giulio Benetti
Quoted 12 lines · On Tue, 20 Sep 2022 15:32:24 +0200 Giulio Benetti…

Enable Linux options depending on the bus has been chosen, so:
1) enable by default common Linux options:
CONFIG_NET
CONFIG_WIRELESS
CONFIG_CFG80211
CONFIG_CRC_ITU_T
CONFIG_CRC7
2) enable for SDIO bus:
CONFIG_MMC
3) enable for SPI bus:
CONFIG_SPI

Quoted 7 lines

Fixes:
http://autobuild.buildroot.net/results/d8c4f0f959dd2ec110db8a75980f13172c3c116c/

---
 package/wilc-driver/wilc-driver.mk | 16 ++++++++++++++++
 1 file changed, 16 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
#4 lore raw
In reply to Giulio Benetti
Quoted 14 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Giulio" == Giulio Benetti <[email protected]> writes:

Enable Linux options depending on the bus has been chosen, so:
1) enable by default common Linux options:
CONFIG_NET
CONFIG_WIRELESS
CONFIG_CFG80211
CONFIG_CRC_ITU_T
CONFIG_CRC7
2) enable for SDIO bus:
CONFIG_MMC
3) enable for SPI bus:
CONFIG_SPI

Quoted 4 lines

Fixes:
http://autobuild.buildroot.net/results/d8c4f0f959dd2ec110db8a75980f13172c3c116c/

Committed to 2022.08.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot