Skip to content

Commit

Permalink
Revert "feat(Build): Add Ability to Selectively Introspect Build Vari…
Browse files Browse the repository at this point in the history
…ables (#931)"

This reverts commit 47ac9e5.
  • Loading branch information
EricB-ADI committed Aug 21, 2024
1 parent 5e34b51 commit 221bf5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 44 deletions.
24 changes: 1 addition & 23 deletions Libraries/CMSIS/Device/Maxim/GCC/gcc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -621,27 +621,6 @@ $(BUILD_DIR)/project_defines.h: $(BUILD_DIR)/_empty_tmp_file.c $(PROJECTMK) | $(
@echo "// This is a generated file that's used to detect definitions that have been set by the compiler and build system." > $@
@$(CC) -E -P -dD $(BUILD_DIR)/_empty_tmp_file.c $(filter-out -MD,$(CFLAGS)) >> $@

################################################################################
# Add a rule for querying the value of any Makefile variable. This is useful for
# IDEs when they need to figure out include paths, value of the target, etc. for a
# project
# Set QUERY_VAR to the variable to inspect.
# The output must be parsed, since other Makefiles may print additional info strings.
# The relevant content will be on its own line, and separated by an '=' character.
# Ex: make query QUERY_VAR=TARGET
# will return
# TARGET=MAXxxxxx
ifeq "$(MAKECMDGOALS)" "query"
SUPPRESS_HELP := 1
endif
.PHONY: query
query:
ifneq "$(QUERY_VAR)" ""
@echo $(QUERY_VAR)=$($(QUERY_VAR))
else
$(MAKE) debug
endif

#################################################################################
SUPPRESS_HELP ?= 0
ifeq "$(SUPPRESS_HELP)" "0"
Expand All @@ -657,5 +636,4 @@ $(info *************************************************************************
HELP_COMPLETE = 1
export HELP_COMPLETE
endif
endif

endif
21 changes: 0 additions & 21 deletions Libraries/CMSIS/Device/Maxim/GCC/gcc_riscv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -619,27 +619,6 @@ $(BUILD_DIR)/project_defines.h: $(BUILD_DIR)/_empty_tmp_file.c $(PROJECTMK) | $(
@echo "// This is a generated file that's used to detect definitions that have been set by the compiler and build system." > $@
@$(CC) -E -P -dD $(BUILD_DIR)/_empty_tmp_file.c $(filter-out -MD,$(CFLAGS)) >> $@

################################################################################
# Add a rule for querying the value of any Makefile variable. This is useful for
# IDEs when they need to figure out include paths, value of the target, etc. for a
# project
# Set QUERY_VAR to the variable to inspect.
# The output must be parsed, since other Makefiles may print additional info strings.
# The relevant content will be on its own line, and separated by an '=' character.
# Ex: make query QUERY_VAR=TARGET
# will return
# TARGET=MAXxxxxx
ifeq "$(MAKECMDGOALS)" "query"
SUPPRESS_HELP := 1
endif
.PHONY: query
query:
ifneq "$(QUERY_VAR)" ""
@echo $(QUERY_VAR)=$($(QUERY_VAR))
else
$(MAKE) debug
endif

#################################################################################
SUPPRESS_HELP ?= 0
ifeq "$(SUPPRESS_HELP)" "0"
Expand Down

0 comments on commit 221bf5f

Please sign in to comment.