Skip to content

Commit

Permalink
Improve 'show_build_options' target (#13425)
Browse files Browse the repository at this point in the history
* Improve 'show_build_options' target

* Align the output to maximize readibility
* Add Bootloader to listed output

* Also alighn build options

Thanks mtei!
  • Loading branch information
drashna authored Jul 3, 2021
1 parent 4459f91 commit 0b22783
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions show_options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,18 @@ OTHER_OPTION_NAMES = \
LTO_ENABLE

define NAME_ECHO
@echo " $1 = $($1) # $(origin $1)"
@printf " %-30s = %-16s # %s\\n" "$1" "$($1)" "$(origin $1)"

endef

.PHONY: show_build_options0 show_build_options
show_build_options0:
@echo " KEYBOARD = $(KEYBOARD)"
@echo " KEYMAP = $(KEYMAP)"
@echo " MCU = $(MCU)"
@echo " MCU_SERIES = $(MCU_SERIES)"
@echo " PLATFORM = $(PLATFORM)"
@echo " KEYBOARD = $(KEYBOARD)"
@echo " KEYMAP = $(KEYMAP)"
@echo " MCU = $(MCU)"
@echo " MCU_SERIES = $(MCU_SERIES)"
@echo " PLATFORM = $(PLATFORM)"
@echo " BOOTLOADER = $(BOOTLOADER)"
@echo " FIRMWARE_FORMAT = $(FIRMWARE_FORMAT)"
@echo
@echo "Build Options:"
Expand Down

0 comments on commit 0b22783

Please sign in to comment.