Skip to content

Commit 3df9576

Browse files
committed
rp2: Allow extra arguments in Makefile.
When building allow the port to be configured on the command line by passing a value for CMAKE_ARGS. Signed-off-by: Peter Harper <[email protected]>
1 parent 050e031 commit 3df9576

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ports/rp2/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,26 @@ endif
3030

3131
$(VERBOSE)MAKESILENT = -s
3232

33-
CMAKE_ARGS += -DMICROPY_BOARD=$(BOARD) -DMICROPY_BOARD_DIR="$(abspath $(BOARD_DIR))"
33+
override CMAKE_ARGS += -DMICROPY_BOARD=$(BOARD) -DMICROPY_BOARD_DIR="$(abspath $(BOARD_DIR))"
3434

3535
ifdef USER_C_MODULES
36-
CMAKE_ARGS += -DUSER_C_MODULES=${USER_C_MODULES}
36+
override CMAKE_ARGS += -DUSER_C_MODULES=${USER_C_MODULES}
3737
endif
3838

3939
ifneq ($(FROZEN_MANIFEST),)
40-
CMAKE_ARGS += -DMICROPY_FROZEN_MANIFEST=${FROZEN_MANIFEST}
40+
override CMAKE_ARGS += -DMICROPY_FROZEN_MANIFEST=${FROZEN_MANIFEST}
4141
endif
4242

4343
ifeq ($(DEBUG),1)
44-
CMAKE_ARGS += -DCMAKE_BUILD_TYPE=Debug
44+
override CMAKE_ARGS += -DCMAKE_BUILD_TYPE=Debug
4545
endif
4646

4747
ifdef BOARD_VARIANT
48-
CMAKE_ARGS += -DMICROPY_BOARD_VARIANT=$(BOARD_VARIANT)
48+
override CMAKE_ARGS += -DMICROPY_BOARD_VARIANT=$(BOARD_VARIANT)
4949
endif
5050

5151
ifdef MICROPY_PREVIEW_VERSION_2
52-
CMAKE_ARGS += -DMICROPY_PREVIEW_VERSION_2=1
52+
override CMAKE_ARGS += -DMICROPY_PREVIEW_VERSION_2=1
5353
endif
5454

5555
HELP_BUILD_ERROR ?= "See \033[1;31mhttps://github.com/micropython/micropython/wiki/Build-Troubleshooting\033[0m"

0 commit comments

Comments
 (0)