Skip to content

Commit 0a27f7c

Browse files
committed
Add make fetch-submodules to update submodules
This also sets rpi-firmware as shallow in case submodules are updated manually. Fixes #5619
1 parent f8493db commit 0a27f7c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.gitmodules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,8 @@ 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+
git submodule update --init -N --depth 1
328+
git submodule foreach 'git fetch --tags --depth 1 origin $$sha1 && git checkout -q $$sha1'

0 commit comments

Comments
 (0)