mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
73e1b3df89
Use the latest tagged release of the SDK.
19 lines
577 B
Makefile
19 lines
577 B
Makefile
PKG_NAME=esp32_sdk
|
|
PKG_URL=https://github.com/espressif/esp-idf
|
|
# v4.4.1
|
|
PKG_VERSION=1329b19fe494500aeb79d19b27cfd99b40c37aec
|
|
PKG_LICENSE=Apache-2.0
|
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|
|
|
|
ESP32_SDK_VER_FILE = $(PKG_SOURCE_DIR)/components/esp_idf_ver.h
|
|
ESP32_SDK_VER_CMD = $(shell git -C $(PKG_SOURCE_DIR) describe --tags $(PKG_VERSION))
|
|
|
|
all: $(ESP32_SDK_VER_FILE)
|
|
|
|
$(PKG_PREPARED): $(ESP32_SDK_VER_FILE)
|
|
|
|
# Set the SDK version from the SDK hash/tag. For example "v4.4-98-geb3797dc3ff".
|
|
$(ESP32_SDK_VER_FILE): $(PKG_PATCHED)
|
|
$(Q)echo "#define IDF_VER \"$(ESP32_SDK_VER_CMD)\"" > $@
|