From 2bf3839d4b98d15900fdd3d305fb37b9bef06dc2 Mon Sep 17 00:00:00 2001 From: Lukas Schuller Date: Fri, 22 Feb 2019 15:39:41 +0100 Subject: [PATCH] Added initial Makefile (wip) and esp-open-sdk as a submodule --- .gitmodules | 3 +++ Makefile | 26 ++++++++++++++++++++++++++ esp-open-sdk | 1 + 3 files changed, 30 insertions(+) create mode 100644 Makefile create mode 160000 esp-open-sdk diff --git a/.gitmodules b/.gitmodules index 8bbd3af..b3e8c44 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f69dbf9 --- /dev/null +++ b/Makefile @@ -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 diff --git a/esp-open-sdk b/esp-open-sdk new file mode 160000 index 0000000..c70543e --- /dev/null +++ b/esp-open-sdk @@ -0,0 +1 @@ +Subproject commit c70543e57fb18e5be0315aa217bca27d0e26d23d