Skip to content

Commit

Permalink
Add submodules (project-chip#1262)
Browse files Browse the repository at this point in the history
As we start to add other build systems, we should have a way to sync the
project without depending on make. Use git submodules for this.

This also avoids an issue with branch based subrepository management
where it's not possible to recreate historical states of the project,
which necessarily includes the state of dependencies. Tracking and
recreating prior versions is the main purpose of source control.
  • Loading branch information
mspang authored Jun 25, 2020
1 parent 9e861ce commit 4d762b6
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ src/include/BuildConfig.h.in~

# Repos stuff
.repos-warning-stamp
third_party/nlassert/
third_party/nlfaultinjection/
third_party/nlio/
third_party/nlunit-test/
third_party/mbedtls/
examples/common/m5stack-tft/
examples/common/QRCode/repo/

# Example specific rules
examples/**/sdkconfig
Expand Down
21 changes: 21 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[submodule "third_party/nlunit-test/repo"]
path = third_party/nlunit-test/repo
url = https://github.com/nestlabs/nlunit-test.git
[submodule "third_party/nlio/repo"]
path = third_party/nlio/repo
url = https://github.com/nestlabs/nlio.git
[submodule "third_party/nlfaultinjection/repo"]
path = third_party/nlfaultinjection/repo
url = https://github.com/nestlabs/nlfaultinjection.git
[submodule "third_party/nlassert/repo"]
path = third_party/nlassert/repo
url = https://github.com/nestlabs/nlassert.git
[submodule "third_party/mbedtls/repo"]
path = third_party/mbedtls/repo
url = https://github.com/ARMmbed/mbedtls.git
[submodule "examples/common/QRCode/repo"]
path = examples/common/QRCode/repo
url = https://github.com/nayuki/QR-Code-generator.git
[submodule "examples/common/m5stack-tft/repo"]
path = examples/common/m5stack-tft/repo
url = https://github.com/jeremyjh/ESP32_TFT_library.git
1 change: 1 addition & 0 deletions examples/common/QRCode/repo
Submodule repo added at 08ac80
1 change: 1 addition & 0 deletions examples/common/m5stack-tft/repo
Submodule repo added at 3a841f
1 change: 1 addition & 0 deletions third_party/mbedtls/repo
Submodule repo added at ca933c
1 change: 1 addition & 0 deletions third_party/nlassert/repo
Submodule repo added at bd2f08
1 change: 1 addition & 0 deletions third_party/nlfaultinjection/repo
Submodule repo added at 79f92f
1 change: 1 addition & 0 deletions third_party/nlio/repo
Submodule repo added at dbb78f
1 change: 1 addition & 0 deletions third_party/nlunit-test/repo
Submodule repo added at ef5a2b

0 comments on commit 4d762b6

Please sign in to comment.