2019-02-15 10:52:58 +09:00
|
|
|
BUILD_OPTION_NAMES = \
|
|
|
|
BOOTMAGIC_ENABLE \
|
|
|
|
MOUSEKEY_ENABLE \
|
|
|
|
EXTRAKEY_ENABLE \
|
|
|
|
CONSOLE_ENABLE \
|
|
|
|
COMMAND_ENABLE \
|
|
|
|
NKRO_ENABLE \
|
|
|
|
CUSTOM_MATRIX \
|
2019-03-05 01:44:46 +10:00
|
|
|
DEBOUNCE_TYPE \
|
2019-02-15 10:52:58 +09:00
|
|
|
SPLIT_KEYBOARD \
|
|
|
|
DYNAMIC_KEYMAP_ENABLE \
|
2020-01-04 07:52:00 +11:00
|
|
|
USB_HID_ENABLE \
|
|
|
|
VIA_ENABLE
|
2019-02-15 10:52:58 +09:00
|
|
|
|
|
|
|
HARDWARE_OPTION_NAMES = \
|
|
|
|
SLEEP_LED_ENABLE \
|
|
|
|
BACKLIGHT_ENABLE \
|
2021-07-27 01:17:58 +01:00
|
|
|
BACKLIGHT_DRIVER \
|
2019-02-15 10:52:58 +09:00
|
|
|
RGBLIGHT_ENABLE \
|
|
|
|
RGBLIGHT_CUSTOM_DRIVER \
|
|
|
|
RGB_MATRIX_ENABLE \
|
2020-11-28 12:02:18 -08:00
|
|
|
RGB_MATRIX_DRIVER \
|
2019-02-15 10:52:58 +09:00
|
|
|
CIE1931_CURVE \
|
|
|
|
MIDI_ENABLE \
|
|
|
|
BLUETOOTH_ENABLE \
|
2021-09-13 01:22:03 +10:00
|
|
|
BLUETOOTH_DRIVER \
|
2019-02-15 10:52:58 +09:00
|
|
|
AUDIO_ENABLE \
|
|
|
|
HD44780_ENABLE \
|
|
|
|
ENCODER_ENABLE \
|
|
|
|
LED_TABLES \
|
|
|
|
POINTING_DEVICE_ENABLE \
|
2019-09-03 08:34:31 -07:00
|
|
|
DIP_SWITCH_ENABLE
|
2019-02-15 10:52:58 +09:00
|
|
|
|
|
|
|
OTHER_OPTION_NAMES = \
|
|
|
|
UNICODE_ENABLE \
|
|
|
|
UCIS_ENABLE \
|
|
|
|
UNICODEMAP_ENABLE \
|
|
|
|
UNICODE_COMMON \
|
|
|
|
AUTO_SHIFT_ENABLE \
|
|
|
|
AUTO_SHIFT_MODIFIERS \
|
2021-11-25 20:06:50 +00:00
|
|
|
DYNAMIC_TAPPING_TERM_ENABLE \
|
2019-02-15 10:52:58 +09:00
|
|
|
COMBO_ENABLE \
|
|
|
|
KEY_LOCK_ENABLE \
|
2021-07-13 19:13:51 +02:00
|
|
|
KEY_OVERRIDE_ENABLE \
|
2019-02-15 10:52:58 +09:00
|
|
|
LEADER_ENABLE \
|
|
|
|
STENO_ENABLE \
|
2022-06-23 20:43:24 +02:00
|
|
|
STENO_PROTOCOL \
|
2019-02-15 10:52:58 +09:00
|
|
|
TAP_DANCE_ENABLE \
|
|
|
|
VIRTSER_ENABLE \
|
|
|
|
OLED_ENABLE \
|
2021-08-24 16:28:26 +10:00
|
|
|
OLED_DRIVER \
|
2019-02-15 10:52:58 +09:00
|
|
|
LED_BACK_ENABLE \
|
|
|
|
LED_UNDERGLOW_ENABLE \
|
|
|
|
LED_ANIMATIONS \
|
|
|
|
IOS_DEVICE_ENABLE \
|
|
|
|
HELIX ZINC \
|
|
|
|
AUTOLOG_ENABLE \
|
|
|
|
DEBUG_ENABLE \
|
2022-03-09 19:29:00 +11:00
|
|
|
ENCODER_MAP_ENABLE \
|
2019-02-15 10:52:58 +09:00
|
|
|
ENCODER_ENABLE_CUSTOM \
|
|
|
|
GERMAN_ENABLE \
|
|
|
|
HAPTIC_ENABLE \
|
|
|
|
ISSI_ENABLE \
|
|
|
|
KEYLOGGER_ENABLE \
|
|
|
|
LCD_BACKLIGHT_ENABLE \
|
|
|
|
MACROS_ENABLED \
|
2022-08-31 09:16:07 +02:00
|
|
|
PS2_ENABLE \
|
2019-02-15 10:52:58 +09:00
|
|
|
PS2_MOUSE_ENABLE \
|
2022-08-31 09:16:07 +02:00
|
|
|
PS2_DRIVER \
|
2019-02-15 10:52:58 +09:00
|
|
|
RAW_ENABLE \
|
|
|
|
SWAP_HANDS_ENABLE \
|
2021-09-29 11:37:11 -07:00
|
|
|
RING_BUFFERED_6KRO_REPORT_ENABLE \
|
2019-02-15 10:52:58 +09:00
|
|
|
WATCHDOG_ENABLE \
|
|
|
|
ERGOINU \
|
|
|
|
NO_USB_STARTUP_CHECK \
|
|
|
|
DISABLE_PROMICRO_LEDs \
|
|
|
|
MITOSIS_DATAGROK_BOTTOMSPACE \
|
|
|
|
MITOSIS_DATAGROK_SLOWUART \
|
|
|
|
RGB_MATRIX_KEYPRESSES \
|
|
|
|
LED_MIRRORED \
|
|
|
|
RGBLIGHT_FULL_POWER \
|
2021-09-15 17:40:22 +02:00
|
|
|
LTO_ENABLE \
|
2022-04-16 19:13:05 +01:00
|
|
|
PROGRAMMABLE_BUTTON_ENABLE \
|
2022-05-13 23:00:32 -07:00
|
|
|
SECURE_ENABLE \
|
2022-09-17 00:50:54 -07:00
|
|
|
CAPS_WORD_ENABLE \
|
2023-02-11 15:23:07 -08:00
|
|
|
AUTOCORRECT_ENABLE \
|
2023-05-20 05:35:06 -07:00
|
|
|
TRI_LAYER_ENABLE \
|
|
|
|
REPEAT_KEY_ENABLE
|
2019-02-15 10:52:58 +09:00
|
|
|
|
|
|
|
define NAME_ECHO
|
2021-07-03 07:43:49 -07:00
|
|
|
@printf " %-30s = %-16s # %s\\n" "$1" "$($1)" "$(origin $1)"
|
2019-02-15 10:52:58 +09:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2021-08-06 07:18:32 +09:00
|
|
|
define YAML_NAME_ECHO
|
|
|
|
@echo ' $1 : "$(strip $($1))"'
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2019-02-15 10:52:58 +09:00
|
|
|
.PHONY: show_build_options0 show_build_options
|
|
|
|
show_build_options0:
|
2021-07-03 07:43:49 -07:00
|
|
|
@echo " KEYBOARD = $(KEYBOARD)"
|
|
|
|
@echo " KEYMAP = $(KEYMAP)"
|
|
|
|
@echo " MCU = $(MCU)"
|
|
|
|
@echo " MCU_SERIES = $(MCU_SERIES)"
|
|
|
|
@echo " PLATFORM = $(PLATFORM)"
|
|
|
|
@echo " BOOTLOADER = $(BOOTLOADER)"
|
2019-02-15 10:52:58 +09:00
|
|
|
@echo " FIRMWARE_FORMAT = $(FIRMWARE_FORMAT)"
|
|
|
|
@echo
|
|
|
|
@echo "Build Options:"
|
|
|
|
$(foreach A_OPTION_NAME,$(sort $(BUILD_OPTION_NAMES)),\
|
|
|
|
$(call NAME_ECHO,$(A_OPTION_NAME)))
|
|
|
|
|
|
|
|
show_build_options: show_build_options0
|
|
|
|
@echo
|
|
|
|
@echo "If you want to know more, please try 'show_all_features' or 'show_full_features'"
|
|
|
|
@echo
|
|
|
|
|
|
|
|
.PHONY: show_all_features
|
|
|
|
show_all_features: show_build_options0
|
|
|
|
@echo
|
|
|
|
@echo "Hardware Options:"
|
|
|
|
$(foreach A_OPTION_NAME,$(sort $(HARDWARE_OPTION_NAMES)),\
|
|
|
|
$(if $($(A_OPTION_NAME)),$(call NAME_ECHO,$(A_OPTION_NAME))))
|
|
|
|
@echo
|
|
|
|
@echo "Other Options:"
|
|
|
|
$(foreach A_OPTION_NAME,$(sort $(OTHER_OPTION_NAMES)),\
|
|
|
|
$(if $($(A_OPTION_NAME)),$(call NAME_ECHO,$(A_OPTION_NAME))))
|
|
|
|
|
|
|
|
.PHONY: show_full_features
|
|
|
|
show_full_features: show_build_options0
|
|
|
|
@echo
|
|
|
|
@echo "Hardware Options:"
|
|
|
|
$(foreach A_OPTION_NAME,$(sort $(HARDWARE_OPTION_NAMES)),\
|
|
|
|
$(call NAME_ECHO,$(A_OPTION_NAME)))
|
|
|
|
@echo
|
|
|
|
@echo "Other Options:"
|
|
|
|
$(foreach A_OPTION_NAME,$(sort $(OTHER_OPTION_NAMES)),\
|
|
|
|
$(call NAME_ECHO,$(A_OPTION_NAME)))
|
2021-08-06 07:18:32 +09:00
|
|
|
|
|
|
|
.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))))
|