1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/esp32_sdk/Makefile

19 lines
577 B
Makefile
Raw Normal View History

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
2022-02-01 20:58:14 +01:00
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))
2022-02-01 20:58:14 +01:00
all: $(ESP32_SDK_VER_FILE)
2022-02-01 20:58:14 +01:00
$(PKG_PREPARED): $(ESP32_SDK_VER_FILE)
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)
$(Q)echo "#define IDF_VER \"$(ESP32_SDK_VER_CMD)\"" > $@