2023-07-11 23:55:02 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# esp-hosted
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2024-04-01 17:23:12 +02:00
|
|
|
ESP_HOSTED_VERSION = 669fd9cd1892bb8b364701968d5f06225346eea9
|
2023-07-11 23:55:02 +02:00
|
|
|
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)
|
2023-08-12 23:20:32 +02:00
|
|
|
$(if $(BR2_PACKAGE_ESP_HOSTED_SPI),
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_SPI),
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_MMC))
|
2023-07-11 23:55:02 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ESP_HOSTED_SPI),y)
|
|
|
|
ESP_HOSTED_MODULE_MAKE_OPTS = target=spi
|
|
|
|
else
|
|
|
|
ESP_HOSTED_MODULE_MAKE_OPTS = target=sdio
|
|
|
|
endif
|
|
|
|
|
2024-01-30 12:05:04 +01:00
|
|
|
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
|
|
|
|
|
2023-07-11 23:55:02 +02:00
|
|
|
$(eval $(kernel-module))
|
|
|
|
$(eval $(generic-package))
|