Add ability to dump all makefile variables for the specified target. (#8256)
This commit is contained in:
parent
d00ac5dfb6
commit
167daa9cf8
@ -396,6 +396,12 @@ show_path:
|
|||||||
@echo SRC=$(SRC)
|
@echo SRC=$(SRC)
|
||||||
@echo OBJ=$(OBJ)
|
@echo OBJ=$(OBJ)
|
||||||
|
|
||||||
|
dump_vars: ERROR_IF_EMPTY=""
|
||||||
|
dump_vars: ERROR_IF_NONBOOL=""
|
||||||
|
dump_vars: ERROR_IF_UNSET=""
|
||||||
|
dump_vars:
|
||||||
|
@$(foreach V,$(sort $(.VARIABLES)),$(if $(filter-out environment% default automatic,$(origin $V)),$(info $V=$($V))))
|
||||||
|
|
||||||
objs-size:
|
objs-size:
|
||||||
for i in $(OBJ); do echo $$i; done | sort | xargs $(SIZE)
|
for i in $(OBJ); do echo $$i; done | sort | xargs $(SIZE)
|
||||||
|
|
||||||
@ -436,7 +442,7 @@ $(eval $(foreach OUTPUT,$(OUTPUTS),$(shell mkdir -p $(OUTPUT) 2>/dev/null)))
|
|||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all finish sizebefore sizeafter qmkversion \
|
.PHONY : all dump_vars finish sizebefore sizeafter qmkversion \
|
||||||
gccversion build elf hex eep lss sym coff extcoff \
|
gccversion build elf hex eep lss sym coff extcoff \
|
||||||
clean clean_list debug gdb-config show_path \
|
clean clean_list debug gdb-config show_path \
|
||||||
program teensy dfu dfu-ee dfu-start \
|
program teensy dfu dfu-ee dfu-start \
|
||||||
|
Loading…
Reference in New Issue
Block a user