summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakeshi ISHII <2170248+mtei@users.noreply.github.com>2021-08-06 07:18:32 +0900
committerGitHub <noreply@github.com>2021-08-06 08:18:32 +1000
commit339675693bd92ba4977d89d1aa3fd9750783327e (patch)
tree769127fdf0a447df8d85a3b2fa306b4bec06e857
parent6aaf3e84e9ba2863d72cf539fdf1bb15ae484a25 (diff)
add yaml_build_options target (#10533)
Co-authored-by: Nick Brassel <nick@tzarc.org>
-rw-r--r--show_options.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/show_options.mk b/show_options.mk
index 46185a639c..31375d112f 100644
--- a/show_options.mk
+++ b/show_options.mk
@@ -91,6 +91,11 @@ define NAME_ECHO
endef
+define YAML_NAME_ECHO
+ @echo ' $1 : "$(strip $($1))"'
+
+endef
+
.PHONY: show_build_options0 show_build_options
show_build_options0:
@echo " KEYBOARD = $(KEYBOARD)"
@@ -131,3 +136,18 @@ show_full_features: show_build_options0
@echo "Other Options:"
$(foreach A_OPTION_NAME,$(sort $(OTHER_OPTION_NAMES)),\
$(call NAME_ECHO,$(A_OPTION_NAME)))
+
+.PHONY: yaml_build_options
+yaml_build_options:
+ @echo '- KEYBOARD : "$(KEYBOARD)"'
+ @echo ' KEYMAP : "$(KEYMAP)"'
+ @echo ' MCU : "$(MCU)"'
+ @echo ' MCU_SERIES : "$(MCU_SERIES)"'
+ @echo ' PLATFORM : "$(PLATFORM)"'
+ @echo ' FIRMWARE_FORMAT : "$(FIRMWARE_FORMAT)"'
+ $(foreach A_OPTION_NAME,$(sort $(BUILD_OPTION_NAMES)),\
+ $(call YAML_NAME_ECHO,$(A_OPTION_NAME)))
+ $(foreach A_OPTION_NAME,$(sort $(HARDWARE_OPTION_NAMES)),\
+ $(if $($(A_OPTION_NAME)),$(call YAML_NAME_ECHO,$(A_OPTION_NAME))))
+ $(foreach A_OPTION_NAME,$(sort $(OTHER_OPTION_NAMES)),\
+ $(if $($(A_OPTION_NAME)),$(call YAML_NAME_ECHO,$(A_OPTION_NAME))))