10000 Rename to SRC_QSTR_PREPROCESSOR for clarity. · sparkfun/circuitpython@b50f46d · GitHub
[go: up one dir, main page]

Skip to content

Commit b50f46d

Browse files
committed
Rename to SRC_QSTR_PREPROCESSOR for clarity.
1 parent f6d1b63 commit b50f46d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ports/atmel-samd/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,8 @@ endif
427427
OBJ += $(addprefix $(BUILD)/, $(SRC_S:.s=.o))
428428

429429
SRC_QSTR += $(SRC_C) $(SRC_SUPERVISOR) $(SRC_COMMON_HAL_EXPANDED) $(SRC_SHARED_MODULE_EXPANDED) $(STM_SRC_C)
430-
SRC_QSTR_PP += peripherals/samd/$(CHIP_FAMILY)/clocks.c
430+
# Sources that only hold QSTRs after pre-processing.
431+
SRC_QSTR_PREPROCESSOR += peripherals/samd/$(CHIP_FAMILY)/clocks.c
431432

432433
all: $(BUILD)/firmware.bin $(BUILD)/firmware.uf2
433434

py/mkrules.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ $(OBJ): | $(HEADER_BUILD)/qstrdefs.generated.h $(HEADER_BUILD)/mpversion.h
7777
# - if anything in QSTR_GLOBAL_DEPENDENCIES is newer, then process all source files ($^)
7878
# - else, if list of newer prerequisites ($?) is not empty, then process just these ($?)
7979
# - else, process all source files ($^) [this covers "make -B" which can set $? to empty]
80-
$(HEADER_BUILD)/qstr.i.last: $(SRC_QSTR) $(SRC_QSTR_PP) $(QSTR_GLOBAL_DEPENDENCIES) | $(HEADER_BUILD)/mpversion.h
80+
$(HEADER_BUILD)/qstr.i.last: $(SRC_QSTR) $(SRC_QSTR_PREPROCESSOR) $(QSTR_GLOBAL_DEPENDENCIES) | $(HEADER_BUILD)/mpversion.h
8181
$(ECHO) "GEN $@"
82-
$(Q)grep -lE "(MP_QSTR|i18n)" $(if $(filter $?,$(QSTR_GLOBAL_DEPENDENCIES)),$^,$(if $?,$?,$^)) | xargs $(CPP) $(QSTR_GEN_EXTRA_CFLAGS) $(CFLAGS) $(SRC_QSTR_PP) >$(HEADER_BUILD)/qstr.i.last;
82+
$(Q)grep -lE "(MP_QSTR|i18n)" $(if $(filter $?,$(QSTR_GLOBAL_DEPENDENCIES)),$^,$(if $?,$?,$^)) | xargs $(CPP) $(QSTR_GEN_EXTRA_CFLAGS) $(CFLAGS) $(SRC_QSTR_PREPROCESSOR) >$(HEADER_BUILD)/qstr.i.last;
8383

8484
$(HEADER_BUILD)/qstr.split: $(HEADER_BUILD)/qstr.i.last
8585
$(STEPECHO) "GEN $@"

py/py.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ SRC_QSTR_IGNORE = py/nlr%
281281
SRC_QSTR_EMITNATIVE = py/emitn%
282282
SRC_QSTR = $(SRC_MOD) $(filter-out $(SRC_QSTR_IGNORE),$(PY_CORE_O_BASENAME:.o=.c)) $(PY_EXTMOD_O_BASENAME:.o=.c)
283283
# Sources that only hold QSTRs after pre-processing.
284-
SRC_QSTR_PP = $(addprefix $(TOP)/, $(filter $(SRC_QSTR_EMITNATIVE),$(PY_CORE_O_BASENAME:.o=.c)))
284+
SRC_QSTR_PREPROCESSOR = $(addprefix $(TOP)/, $(filter $(SRC_QSTR_EMITNATIVE),$(PY_CORE_O_BASENAME:.o=.c)))
285285

286286
# Anything that depends on FORCE will be considered out-of-date
287287
FORCE:

0 commit comments

Comments
 (0)
0