Skip to content

Commit 51dca54

Browse files
committed
py/mkrules.mk: Remove obsolete rules for auto qstr generation.
1 parent b372156 commit 51dca54

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

py/mkrules.mk

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,30 +46,18 @@ vpath %.c . $(TOP)
4646
$(BUILD)/%.o: %.c
4747
$(call compile_c)
4848

49-
# A empty qstrdefs header is needed to properly preprocess every file
50-
EMPTY_QSTRDEFS_GENERATED_H = $(BUILD)/tmp/genhdr/qstrdefs.generated.h
51-
5249
# List all native flags since the current build system doesn't have
5350
# the micropython configuration available. However, these flags are
5451
# needed to extract all qstrings
5552
QSTR_GEN_EXTRA_CFLAGS += -D__QSTR_EXTRACT -DN_X64 -DN_X86 -DN_THUMB -DN_ARM
5653
QSTR_GEN_EXTRA_CFLAGS += -I$(BUILD)/tmp
5754

5855
vpath %.c . $(TOP)
59-
$(HEADER_BUILD)/%.qstr: % mpconfigport.h $(PY_SRC)/mpconfig.h | $(EMPTY_QSTRDEFS_GENERATED_H) $(HEADER_BUILD)/mpversion.h $(SRC_QSTR_AUTO_DEPS)
60-
@mkdir -p $(dir $@);
61-
$(Q)$(CPP) $(QSTR_GEN_EXTRA_CFLAGS) $(CFLAGS) $< -o - | $(PYTHON) $(PY_SRC)/makeqstrdefs.py -s -o $@
62-
6356

6457
$(BUILD)/%.pp: %.c
6558
$(ECHO) "PreProcess $<"
6659
$(Q)$(CC) $(CFLAGS) -E -Wp,-C,-dD,-dI -o $@ $<
6760

68-
$(EMPTY_QSTRDEFS_GENERATED_H):
69-
$(ECHO) "Generate empty $@ to satisfy qstr generator"
70-
$(Q)mkdir -p $(dir $@)
71-
$(Q)touch $@
72-
7361
# The following rule uses | to create an order only prereuisite. Order only
7462
# prerequisites only get built if they don't exist. They don't cause timestamp
7563
# checking to be performed.

0 commit comments

Comments
 (0)