File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
5552QSTR_GEN_EXTRA_CFLAGS += -D__QSTR_EXTRACT -DN_X64 -DN_X86 -DN_THUMB -DN_ARM
5653QSTR_GEN_EXTRA_CFLAGS += -I$(BUILD ) /tmp
5754
5855vpath % .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.
You can’t perform that action at this time.
0 commit comments