Add `make fetch-submodules` to update submodules
This also sets rpi-firmware as shallow in case submodules are updated manually. Fixes #5619
This commit is contained in:
parent
f8493db217
commit
0a27f7c3ab
|
@ -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
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -321,3 +321,8 @@ 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:
|
||||||
|
git submodule update --init -N --depth 1
|
||||||
|
git submodule foreach 'git fetch --tags --depth 1 origin $$sha1 && git checkout -q $$sha1'
|
||||||
|
|
Loading…
Reference in New Issue