Merge pull request #5627 from tannewt/shallow_rpi_firmware
Add `make fetch-submodules` to update submodules
This commit is contained in:
commit
8d6957b792
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -109,7 +109,7 @@
|
|||||||
url = https://github.com/adafruit/Adafruit_CircuitPython_Register.git
|
url = https://github.com/adafruit/Adafruit_CircuitPython_Register.git
|
||||||
[submodule "extmod/ulab"]
|
[submodule "extmod/ulab"]
|
||||||
path = extmod/ulab
|
path = extmod/ulab
|
||||||
url = https://github.com/adafruit/circuitpython-ulab
|
url = https://github.com/v923z/micropython-ulab
|
||||||
[submodule "frozen/Adafruit_CircuitPython_ESP32SPI"]
|
[submodule "frozen/Adafruit_CircuitPython_ESP32SPI"]
|
||||||
path = frozen/Adafruit_CircuitPython_ESP32SPI
|
path = frozen/Adafruit_CircuitPython_ESP32SPI
|
||||||
url = https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI
|
url = https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI
|
||||||
@ -198,3 +198,4 @@
|
|||||||
path = ports/broadcom/firmware
|
path = ports/broadcom/firmware
|
||||||
url = https://github.com/raspberrypi/rpi-firmware.git
|
url = https://github.com/raspberrypi/rpi-firmware.git
|
||||||
branch = master
|
branch = master
|
||||||
|
shallow = true
|
||||||
|
8
Makefile
8
Makefile
@ -321,3 +321,11 @@ clean-nrf:
|
|||||||
|
|
||||||
clean-stm:
|
clean-stm:
|
||||||
$(MAKE) -C ports/stm BOARD=feather_stm32f405_express clean
|
$(MAKE) -C ports/stm BOARD=feather_stm32f405_express clean
|
||||||
|
|
||||||
|
.PHONY: fetch-submodules
|
||||||
|
fetch-submodules:
|
||||||
|
# This update will fail because the commits we need aren't the latest on the
|
||||||
|
# branch. We can ignore that though because we fix it with the second command.
|
||||||
|
# (Only works for git servers that allow sha fetches.)
|
||||||
|
git submodule update --init -N --depth 1 || true
|
||||||
|
git submodule foreach 'git fetch --tags --depth 1 origin $$sha1 && git checkout -q $$sha1'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user