Skip to content

Commit d5b049c

Browse files
committed
bricks: fix QSTR_GLOBAL_DEPENDENCIES
This should fix build errors about missing qstrs when config files are changed.
1 parent 9b5e9be commit d5b049c

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

bricks/_common_stm32/make.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ include ../../micropython/py/mkenv.mk
5252

5353
# qstr definitions (must come before including py.mk)
5454
QSTR_DEFS = ../_common/qstrdefs.h
55-
QSTR_GLOBAL_DEPENDENCIES = $(PBTOP)/bricks/_common_stm32/mpconfigport.h
55+
QSTR_GLOBAL_DEPENDENCIES = ../_common/mpconfigport.h ../_common_stm32/mpconfigport.h
5656

5757
# MicroPython feature configurations
5858
MICROPY_ROM_TEXT_COMPRESSION ?= 1

bricks/ev3dev/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ PROG = pybricks-micropython
4040

4141
# qstr definitions (must come before including py.mk)
4242
QSTR_DEFS = ../_common/qstrdefs.h
43-
QSTR_GLOBAL_DEPENDENCIES =
43+
QSTR_GLOBAL_DEPENDENCIES = brickconfig.h
4444

4545
# OS name, for simple autoconfig
4646
UNAME_S := $(shell uname -s)

bricks/ev3rt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ include ../../micropython/py/mkenv.mk
2828

2929
# qstr definitions (must come before including py.mk)
3030
QSTR_DEFS = ../_common/qstrdefs.h
31-
QSTR_GLOBAL_DEPENDENCIES = $(PBTOP)/bricks/ev3rt/mpconfigport.h
31+
QSTR_GLOBAL_DEPENDENCIES = ../_common/mpconfigport.h
3232

3333
# MicroPython feature configurations
3434
MICROPY_ROM_TEXT_COMPRESSION ?= 1

bricks/nxt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ include ../../micropython/py/mkenv.mk
2525

2626
# qstr definitions (must come before including py.mk)
2727
QSTR_DEFS = ../_common/qstrdefs.h
28-
QSTR_GLOBAL_DEPENDENCIES =
28+
QSTR_GLOBAL_DEPENDENCIES = ../_common/mpconfigport.h
2929

3030
# MicroPython feature configurations
3131
MICROPY_ROM_TEXT_COMPRESSION ?= 1

bricks/virtualhub/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ endif
2727
BUILD=../../../bricks/virtualhub/$(BUILD_DIR) \
2828
PROG=../../../bricks/virtualhub/$(BUILD_DIR)/virtualhub-micropython \
2929
QSTR_DEFS=../../../bricks/_common/qstrdefs.h \
30+
QSTR_GLOBAL_DEPENDENCIES=../../../bricks/virtualhub/mpconfigvariant.h \
3031
$@

0 commit comments

Comments
 (0)