Added initial Makefile (wip) and esp-open-sdk as a submodule
parent
c086cc5ab8
commit
2bf3839d4b
|
@ -1,3 +1,6 @@
|
|||
[submodule "micropython"]
|
||||
path = micropython
|
||||
url = https://github.com/micropython/micropython.git
|
||||
[submodule "esp-open-sdk"]
|
||||
path = esp-open-sdk
|
||||
url = https://github.com/pfalcon/esp-open-sdk
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
Subproject commit c70543e57fb18e5be0315aa217bca27d0e26d23d
|
Loading…
Reference in New Issue