Files
buildroot/package/esp-hosted/esp-hosted.mk
Giulio Benetti 702b01dc96 package/esp-hosted: don't treat warnings as errors
This driver fails to build because warnings are treated as errors but
this is too strict, breaking the build.

This used to be hidden by commit 6b56e0b4f0 ("linux: disable -Werror"),
which was reverted in commit a966f5cde5 ("Revert "linux: disable -Werror""),
so fix it by explicitly passing -Wno-error.

Fixes:
https://autobuild.buildroot.org/results/df3763e74de4071331a41140fb5528523af9e374/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
[Peter: add note about when issue was (re-)introduced]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit daf4962937)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
2026-06-12 13:34:51 +02:00

36 lines
1.1 KiB
Makefile

################################################################################
#
# esp-hosted
#
################################################################################
ESP_HOSTED_VERSION = 1.0.5.0.3
ESP_HOSTED_SITE = $(call github,espressif,esp-hosted,release/ng-$(ESP_HOSTED_VERSION))
ESP_HOSTED_SOURCE = ng-v$(ESP_HOSTED_VERSION).tar.gz
ESP_HOSTED_DEPENDENCIES = linux
ESP_HOSTED_LICENSE = GPL-2.0
ESP_HOSTED_LICENSE_FILES = esp_hosted_ng/host/LICENSE
ESP_HOSTED_MODULE_SUBDIRS = esp_hosted_ng/host
define ESP_HOSTED_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_MAC80211)
$(call KCONFIG_ENABLE_OPT,CONFIG_BT)
$(if $(BR2_PACKAGE_ESP_HOSTED_SPI),
$(call KCONFIG_ENABLE_OPT,CONFIG_SPI),
$(call KCONFIG_ENABLE_OPT,CONFIG_MMC))
endef
ifeq ($(BR2_PACKAGE_ESP_HOSTED_SPI),y)
ESP_HOSTED_MODULE_MAKE_OPTS = target=spi
else
ESP_HOSTED_MODULE_MAKE_OPTS = target=sdio
endif
ESP_HOSTED_MODULE_MAKE_OPTS += KCFLAGS="-Wno-error"
$(eval $(kernel-module))
$(eval $(generic-package))