Skip to content

Commit 8d6957b

Browse files
authored
Merge pull request #5627 from tannewt/shallow_rpi_firmware
Add `make fetch-submodules` to update submodules
2 parents f8493db + d64886e commit 8d6957b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.gitmodules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
url = https://github.com/adafruit/Adafruit_CircuitPython_Register.git
110110
[submodule "extmod/ulab"]
111111
path = extmod/ulab
112-
url = https://github.com/adafruit/circuitpython-ulab
112+
url = https://github.com/v923z/micropython-ulab
113113
[submodule "frozen/Adafruit_CircuitPython_ESP32SPI"]
114114
path = frozen/Adafruit_CircuitPython_ESP32SPI
115115
url = https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI
@@ -198,3 +198,4 @@
198198
path = ports/broadcom/firmware
199199
url = https://github.com/raspberrypi/rpi-firmware.git
200200
branch = master
201+
shallow = true

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,11 @@ clean-nrf:
321321

322322
clean-stm:
323323
$(MAKE) -C ports/stm BOARD=feather_stm32f405_express clean
324+
325+
.PHONY: fetch-submodules
326+
fetch-submodules:
327+
# This update will fail because the commits we need aren't the latest on the
328+
# branch. We can ignore that though because we fix it with the second command.
329+
# (Only works for git servers that allow sha fetches.)
330+
git submodule update --init -N --depth 1 || true
331+
git submodule foreach 'git fetch --tags --depth 1 origin $$sha1 && git checkout -q $$sha1'

0 commit comments

Comments
 (0)