From b352db7a6394b77fc8aa173557d00b3d93a05231 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Tue, 17 Aug 2021 20:40:20 +1000 Subject: [PATCH] rp2/Makefile: Add "submodules" target, to match other ports. Signed-off-by: Jim Mussared --- ports/rp2/Makefile | 5 +++++ ports/rp2/README.md | 1 + 2 files changed, 6 insertions(+) diff --git a/ports/rp2/Makefile b/ports/rp2/Makefile index 246f29dd09..2af13bfbbf 100644 --- a/ports/rp2/Makefile +++ b/ports/rp2/Makefile @@ -20,3 +20,8 @@ all: clean: $(RM) -rf $(BUILD) + +GIT_SUBMODULES += lib/pico-sdk lib/tinyusb + +submodules: + $(MAKE) -f ../../py/mkrules.mk GIT_SUBMODULES="$(GIT_SUBMODULES)" submodules diff --git a/ports/rp2/README.md b/ports/rp2/README.md index d49550c5c4..5836ac0cd8 100644 --- a/ports/rp2/README.md +++ b/ports/rp2/README.md @@ -29,6 +29,7 @@ Building of the RP2 firmware is done entirely using CMake, although a simple Makefile is also provided as a convenience. To build the firmware run (from this directory): + $ make submodules $ make clean $ make