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
2022-05-18 07:27:23 +02:00

19 lines
615 B
Makefile

PKG_NAME=esp32_sdk
PKG_URL=https://github.com/espressif/esp-idf
# This is a version in the v4.4 release branch
PKG_VERSION=eb3797dc3ffebd9eaf873a01df63aed89fad58b6
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)\"" > $@