Skip to content

Commit 6763521

Browse files
committed
remove all submodules
1 parent 16daad8 commit 6763521

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

.gitmodules

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +0,0 @@
1-
[submodule "tools/uf2"]
2-
path = tools/uf2
3-
url = https://github.com/microsoft/uf2.git
4-
[submodule "lib/lwip"]
5-
path = lib/lwip
6-
url = https://github.com/lwip-tcpip/lwip.git
7-
[submodule "lib/FreeRTOS-Kernel"]
8-
path = lib/FreeRTOS-Kernel
9-
url = https://github.com/FreeRTOS/FreeRTOS-Kernel.git

lib/FreeRTOS-Kernel

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/lwip

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools/get_deps.py

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,17 @@
33
from pathlib import Path
44
from multiprocessing import Pool
55

6+
# Mandatory Dependencies that is always fetched
67
# path, url, commit (Alphabet sorted by path)
7-
deps_list = {
8+
deps_mandatory = {
9+
'lib/FreeRTOS-Kernel' : ['2a604f4a2818b8354b5e1a39e388eb5e16cfbc1f', 'https://github.com/FreeRTOS/FreeRTOS-Kernel.git' ],
10+
'lib/lwip' : ['159e31b689577dbf69cf0683bbaffbd71fa5ee10', 'https://github.com/lwip-tcpip/lwip.git' ],
11+
'tools/uf2' : ['19615407727073e36d81bf239c52108ba92e7660', 'https://github.com/microsoft/uf2.git' ],
12+
}
13+
14+
# Optional Dependencies per MCU
15+
# path, url, commit (Alphabet sorted by path)
16+
deps_optional = {
817
'hw/mcu/allwinner' : ['8e5e89e8e132c0fd90e72d5422e5d3d68232b756', 'https://github.com/hathach/allwinner_driver.git' ],
918
'hw/mcu/bridgetek/ft9xx/ft90x-sdk' : ['91060164afe239fcb394122e8bf9eb24d3194eb1', 'https://github.com/BRTSG-FOSS/ft90x-sdk.git' ],
1019
'hw/mcu/broadcom' : ['08370086080759ed54ac1136d62d2ad24c6fa267', 'https://github.com/adafruit/broadcom-peripherals.git' ],
@@ -55,22 +64,22 @@
5564
'hw/mcu/ti' : ['143ed6cc20a7615d042b03b21e070197d473e6e5', 'https://github.com/hathach/ti_driver.git' ],
5665
'hw/mcu/wch/ch32v307' : ['17761f5cf9dbbf2dcf665b7c04934188add20082', 'https://github.com/openwch/ch32v307.git' ],
5766
'lib/CMSIS_5' : ['20285262657d1b482d132d20d755c8c330d55c1f', 'https://github.com/ARM-software/CMSIS_5.git' ],
58-
'lib/FreeRTOS-Kernel' : ['2a604f4a2818b8354b5e1a39e388eb5e16cfbc1f', 'https://github.com/FreeRTOS/FreeRTOS-Kernel.git' ],
59-
'lib/lwip' : ['159e31b689577dbf69cf0683bbaffbd71fa5ee10', 'https://github.com/lwip-tcpip/lwip.git' ],
6067
'lib/sct_neopixel' : ['e73e04ca63495672d955f9268e003cffe168fcd8', 'https://github.com/gsteiert/sct_neopixel.git' ],
61-
'tools/uf2' : ['19615407727073e36d81bf239c52108ba92e7660', 'https://github.com/microsoft/uf2.git' ],
6268
}
6369

70+
# combined 2 deps
71+
deps_all = {**deps_mandatory, **deps_optional}
72+
6473
# TOP is tinyusb root dir
6574
TOP = Path(__file__).parent.parent.resolve()
6675

6776

6877
def get_a_dep(d):
69-
if d not in deps_list.keys():
78+
if d not in deps_all.keys():
7079
print('{} is not found in dependency list')
7180
return 1
72-
commit = deps_list[d][0]
73-
url = deps_list[d][1]
81+
commit = deps_all[d][0]
82+
url = deps_all[d][1]
7483
print('cloning {} with {}'.format(d, url))
7584

7685
p = Path(TOP / d)
@@ -94,8 +103,11 @@ def get_a_dep(d):
94103

95104

96105
if __name__ == "__main__":
106+
if len(sys.argv) <= 1:
107+
sys.exit(1)
108+
97109
status = 0
98-
all_deps = sys.argv[1:]
110+
deps = list(deps_mandatory.keys()) + sys.argv[1:]
99111
with Pool() as pool:
100-
status = sum(pool.map(get_a_dep, all_deps))
112+
status = sum(pool.map(get_a_dep, deps))
101113
sys.exit(status)

tools/uf2

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)