kumquat-buildroot/package/esp-hosted/esp-hosted.mk
Giulio Benetti 40e36cadf7 package/esp-hosted: bump version to 2024-01-30
* support Linux 6.8
* support ESP32 and ESP32C6 Targets

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-02-05 11:37:01 +01:00

39 lines
1.2 KiB
Makefile

################################################################################
#
# esp-hosted
#
################################################################################
ESP_HOSTED_VERSION = 6a25417fc880fd744b3b0d93c11659c3e7d86384
ESP_HOSTED_SITE = $(call github,espressif,esp-hosted,$(ESP_HOSTED_VERSION))
ESP_HOSTED_DEPENDENCIES = linux
ESP_HOSTED_LICENSE = GPL-2.0
ESP_HOSTED_LICENSE_FILE = 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
ifeq ($(BR2_PACKAGE_ESP_HOSTED_TARGET_ESP32),y)
ESP_HOSTED_MODULE_MAKE_OPTS += ESP_SLAVE=CONFIG_TARGET_ESP32=y
else
ESP_HOSTED_MODULE_MAKE_OPTS += ESP_SLAVE=CONFIG_TARGET_ESP32C6=y
endif
$(eval $(kernel-module))
$(eval $(generic-package))