Added initial Makefile (wip) and esp-open-sdk as a submodule

master
Lukas Schuller 2019-02-22 15:39:41 +01:00 committed by Lukas Schuller
parent c086cc5ab8
commit 2bf3839d4b
3 changed files with 30 additions and 0 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "micropython"] [submodule "micropython"]
path = micropython path = micropython
url = https://github.com/micropython/micropython.git url = https://github.com/micropython/micropython.git
[submodule "esp-open-sdk"]
path = esp-open-sdk
url = https://github.com/pfalcon/esp-open-sdk

26
Makefile Normal file
View File

@ -0,0 +1,26 @@
build: micropython
micropython: check-and-reinit-micropython-submodules
$(MAKE) --directory=micropython/mpy-cross
$(MAKE) --directory=micropython/ports/esp8266
check-and-reinit-submodules:
@echo "Checking submodules"
@if git submodule status | egrep -q '^[-]|^[+]' ; then \
echo "INFO: Need to reinitialize git submodules"; \
git submodule update --init; \
fi
check-and-reinit-micropython-submodules: check-and-reinit-submodules
@echo "Checking micropython submodules"
@if cd micropython; git submodule status | egrep -q '^[-]|^[+]' ; then \
echo "INFO: Need to reinitialize micropython git submodules"; \
git submodule update --init; \
fi
.PHONY: check-and-reinit-submodules check-and-reinit-micropython-submodules

1
esp-open-sdk Submodule

@ -0,0 +1 @@
Subproject commit c70543e57fb18e5be0315aa217bca27d0e26d23d