2021-12-30 10:18:24 +01:00
|
|
|
PKG_NAME=esp32_sdk
|
|
|
|
PKG_URL=https://github.com/espressif/esp-idf
|
2022-06-02 23:46:37 +02:00
|
|
|
# v4.4.1
|
|
|
|
PKG_VERSION=1329b19fe494500aeb79d19b27cfd99b40c37aec
|
2021-12-30 10:18:24 +01:00
|
|
|
PKG_LICENSE=Apache-2.0
|
|
|
|
|
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|
|
|
|
|
2022-02-01 20:58:14 +01:00
|
|
|
ESP32_SDK_VER_FILE = $(PKG_SOURCE_DIR)/components/esp_idf_ver.h
|
2021-12-30 10:18:24 +01:00
|
|
|
ESP32_SDK_VER_CMD = $(shell git -C $(PKG_SOURCE_DIR) describe --tags $(PKG_VERSION))
|
|
|
|
|
2022-02-01 20:58:14 +01:00
|
|
|
all: $(ESP32_SDK_VER_FILE)
|
2021-12-30 10:18:24 +01:00
|
|
|
|
2022-02-01 20:58:14 +01:00
|
|
|
$(PKG_PREPARED): $(ESP32_SDK_VER_FILE)
|
2021-12-30 10:18:24 +01:00
|
|
|
|
2022-02-01 20:58:14 +01:00
|
|
|
# Set the SDK version from the SDK hash/tag. For example "v4.4-98-geb3797dc3ff".
|
|
|
|
$(ESP32_SDK_VER_FILE): $(PKG_PATCHED)
|
2021-12-30 10:18:24 +01:00
|
|
|
$(Q)echo "#define IDF_VER \"$(ESP32_SDK_VER_CMD)\"" > $@
|