pull/9072/merge
Andrew Leech 2024-04-03 06:51:57 +11:00 zatwierdzone przez GitHub
commit 5af2e3592a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
3 zmienionych plików z 16 dodań i 0 usunięć

Wyświetl plik

@ -600,6 +600,9 @@ SRC_QSTR += $(SRC_C) $(SRC_CXX) $(SHARED_SRC_C) $(GEN_PINS_SRC)
# which source files might need it.
$(OBJ): | $(GEN_PINS_HDR)
# Automatically rebuild if specific settings are changed on command line
$(OBJ): $(call depend_var, USE_MBOOT)
# With conditional pins, we may need to regenerate qstrdefs.h when config
# options change.
$(HEADER_BUILD)/qstrdefs.generated.h: $(BOARD_DIR)/mpconfigboard.h

Wyświetl plik

@ -29,6 +29,11 @@ else
Q =
endif
# depend_var is a function that can be used to add a virtual dependency
# to a target based on the given make variable.
# eg. $(OBJ): $(call depend_var, MY_VAR)
depend_var = $(BUILD)/dependvar/$(strip $(1))+$(shell echo $($(strip $(1))) | md5sum | cut -d ' ' -f 1)
# default settings; can be overridden in main Makefile
PY_SRC ?= $(TOP)/py

Wyświetl plik

@ -35,6 +35,14 @@ QSTR_GEN_CFLAGS += $(QSTR_GEN_FLAGS)
QSTR_GEN_CXXFLAGS := $(CXXFLAGS)
QSTR_GEN_CXXFLAGS += $(QSTR_GEN_FLAGS)
# depend_var is a function that can be used to add a virtual dependency
# to a target based on the given make variable.
# eg. $(OBJ): $(call depend_var, MY_VAR)
$(BUILD)/dependvar/%:
@mkdir -p $(BUILD)/dependvar
@rm -f $(BUILD)/dependvar/$(firstword $(subst +, ,$*))+*
$(Q)echo $($(firstword $(subst +, ,$*))) > $@
# This file expects that OBJ contains a list of all of the object files.
# The directory portion of each object file is used to locate the source
# and should not contain any ..'s but rather be relative to the top of the