diff --git a/.gitmodules b/.gitmodules index c49c5ae..8f0c23e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "esp-idf"] - path = esp-idf - url = https://github.com/espressif/esp-idf.git [submodule "components/bus-i2c"] path = components/bus-i2c url = https://github.com/Nicolai-Electronics/esp32-component-bus-i2c.git diff --git a/Makefile b/Makefile index 99ea022..466851b 100644 --- a/Makefile +++ b/Makefile @@ -6,15 +6,20 @@ SHELL := /usr/bin/env bash .PHONY: prepare clean build flash monitor menuconfig -all: prepare build install +all: build install prepare: git submodule update --init --recursive - cd esp-idf; bash install.sh + rm -rf "$(IDF_PATH)" + git clone --recursive --branch v4.4.4 https://github.com/espressif/esp-idf.git + cd "$(IDF_PATH)"; bash install.sh clean: rm -rf "$(BUILDDIR)" +fullclean: + source "$(IDF_PATH)/export.sh" && idf.py fullclean + build: source "$(IDF_PATH)/export.sh" && idf.py build diff --git a/esp-idf b/esp-idf deleted file mode 160000 index 1329b19..0000000 --- a/esp-idf +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1329b19fe494500aeb79d19b27cfd99b40c37aec