Skip to content

Commit

Permalink
bricks: Checkout micropython-lib.
Browse files Browse the repository at this point in the history
This appears to be necessary to build frozen modules now.
  • Loading branch information
laurensvalk committed May 2, 2023
1 parent de5b341 commit 33def87
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bricks/_common/arm_none_eabi.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ ifeq ("$(wildcard $(PBTOP)/micropython/README.md)","")
$(error failed)
endif
endif
ifeq ("$(wildcard $(PBTOP)/micropython/lib/micropython-lib/README.md)","")
$(info GIT cloning micropython-lib submodule)
$(info $(shell cd $(PBTOP)/micropython && git submodule update --init lib/micropython-lib))
ifeq ("$(wildcard $(PBTOP)/micropython/lib/micropython-lib/README.md)","")
$(error failed)
endif
endif
ifeq ($(PB_LIB_STM32_HAL),1)
ifeq ("$(wildcard $(PBTOP)/micropython/lib/stm32lib/README.md)","")
$(info GIT cloning stm32lib submodule)
Expand Down
10 changes: 10 additions & 0 deletions bricks/virtualhub/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ BUILD_DIR = build
endif
endif

mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
PBTOP := $(patsubst %/bricks/virtualhub/Makefile,%,$(mkfile_path))
ifeq ("$(wildcard $(PBTOP)/micropython/lib/micropython-lib/README.md)","")
$(info GIT cloning micropython-lib submodule)
$(info $(shell cd $(PBTOP)/micropython && git submodule update --init lib/micropython-lib))
ifeq ("$(wildcard $(PBTOP)/micropython/lib/micropython-lib/README.md)","")
$(error failed)
endif
endif

# Include frozen manifest only if there is anything to freeze.
ifneq ("$(wildcard ../../bricks/_common/modules/*.py)","")
FROZEN_MANIFEST ?= ../../../bricks/_common/manifest.py
Expand Down

0 comments on commit 33def87

Please sign in to comment.