Peter's keyboard firmware (QMK) https://qmk.fm/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

show_options.mk 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. BUILD_OPTION_NAMES = \
  2. BOOTMAGIC_ENABLE \
  3. MOUSEKEY_ENABLE \
  4. EXTRAKEY_ENABLE \
  5. CONSOLE_ENABLE \
  6. COMMAND_ENABLE \
  7. NKRO_ENABLE \
  8. TERMINAL_ENABLE \
  9. CUSTOM_MATRIX \
  10. DEBOUNCE_TYPE \
  11. SPLIT_KEYBOARD \
  12. DYNAMIC_KEYMAP_ENABLE \
  13. USB_HID_ENABLE
  14. HARDWARE_OPTION_NAMES = \
  15. SLEEP_LED_ENABLE \
  16. BACKLIGHT_ENABLE \
  17. BACKLIGHT_CUSTOM_DRIVER \
  18. RGBLIGHT_ENABLE \
  19. RGBLIGHT_CUSTOM_DRIVER \
  20. RGB_MATRIX_ENABLE \
  21. SERIAL_LINK_ENABLE \
  22. CIE1931_CURVE \
  23. MIDI_ENABLE \
  24. BLUETOOTH_ENABLE \
  25. AUDIO_ENABLE \
  26. FAUXCLICKY_ENABLE \
  27. HD44780_ENABLE \
  28. ENCODER_ENABLE \
  29. LCD_ENABLE \
  30. LED_BREATHING_TABLE \
  31. LED_TABLES \
  32. POINTING_DEVICE_ENABLE \
  33. VISUALIZER_ENABLE
  34. OTHER_OPTION_NAMES = \
  35. UNICODE_ENABLE \
  36. UCIS_ENABLE \
  37. UNICODEMAP_ENABLE \
  38. UNICODE_COMMON \
  39. API_SYSEX_ENABLE \
  40. AUTO_SHIFT_ENABLE \
  41. AUTO_SHIFT_MODIFIERS \
  42. COMBO_ENABLE \
  43. KEY_LOCK_ENABLE \
  44. LEADER_ENABLE \
  45. PRINTING_ENABLE \
  46. STENO_ENABLE \
  47. TAP_DANCE_ENABLE \
  48. VIRTSER_ENABLE \
  49. OLED_ENABLE \
  50. LED_BACK_ENABLE \
  51. LED_UNDERGLOW_ENABLE \
  52. LED_ANIMATIONS \
  53. IOS_DEVICE_ENABLE \
  54. HELIX ZINC \
  55. ADAFRUIT_BLE_ENABLE \
  56. AUTOLOG_ENABLE \
  57. BREATHING_LED_ENABLE \
  58. DEBUG_ENABLE \
  59. ENCODER_ENABLE_CUSTOM \
  60. FADING_LED_ENABLE \
  61. GERMAN_ENABLE \
  62. HAPTIC_ENABLE \
  63. HHKB_RN42_ENABLE \
  64. ISSI_ENABLE \
  65. KEYBOARD_LOCK_ENABLE \
  66. KEYLOGGER_ENABLE \
  67. KEYMAP_IN_EEPROM_ENABLE \
  68. KEYMAP_SECTION_ENABLE \
  69. LCD_BACKLIGHT_ENABLE \
  70. LEDMAP_ENABLE \
  71. LEDMAP_IN_EEPROM_ENABLE \
  72. MACROS_ENABLED \
  73. ONEHAND_ENABLE \
  74. PS2_MOUSE_ENABLE \
  75. RAW_ENABLE \
  76. SOFTPWM_LED_ENABLE \
  77. SWAP_HANDS_ENABLE \
  78. USB_6KRO_ENABLE \
  79. WATCHDOG_ENABLE \
  80. XT_ENABLE \
  81. ERGOINU \
  82. NO_USB_STARTUP_CHECK \
  83. DISABLE_PROMICRO_LEDs \
  84. MITOSIS_DATAGROK_BOTTOMSPACE \
  85. MITOSIS_DATAGROK_SLOWUART \
  86. RGB_MATRIX_KEYPRESSES \
  87. LED_MIRRORED \
  88. RGBLIGHT_FULL_POWER \
  89. Link_Time_Optimization
  90. define NAME_ECHO
  91. @echo " $1 = $($1) # $(origin $1)"
  92. endef
  93. .PHONY: show_build_options0 show_build_options
  94. show_build_options0:
  95. @echo " KEYBOARD = $(KEYBOARD)"
  96. @echo " KEYMAP = $(KEYMAP)"
  97. @echo " MCU = $(MCU)"
  98. @echo " MCU_SERIES = $(MCU_SERIES)"
  99. @echo " PLATFORM = $(PLATFORM)"
  100. @echo " FIRMWARE_FORMAT = $(FIRMWARE_FORMAT)"
  101. @echo
  102. @echo "Build Options:"
  103. $(foreach A_OPTION_NAME,$(sort $(BUILD_OPTION_NAMES)),\
  104. $(call NAME_ECHO,$(A_OPTION_NAME)))
  105. show_build_options: show_build_options0
  106. @echo
  107. @echo "If you want to know more, please try 'show_all_features' or 'show_full_features'"
  108. @echo
  109. .PHONY: show_all_features
  110. show_all_features: show_build_options0
  111. @echo
  112. @echo "Hardware Options:"
  113. $(foreach A_OPTION_NAME,$(sort $(HARDWARE_OPTION_NAMES)),\
  114. $(if $($(A_OPTION_NAME)),$(call NAME_ECHO,$(A_OPTION_NAME))))
  115. @echo
  116. @echo "Other Options:"
  117. $(foreach A_OPTION_NAME,$(sort $(OTHER_OPTION_NAMES)),\
  118. $(if $($(A_OPTION_NAME)),$(call NAME_ECHO,$(A_OPTION_NAME))))
  119. .PHONY: show_full_features
  120. show_full_features: show_build_options0
  121. @echo
  122. @echo "Hardware Options:"
  123. $(foreach A_OPTION_NAME,$(sort $(HARDWARE_OPTION_NAMES)),\
  124. $(call NAME_ECHO,$(A_OPTION_NAME)))
  125. @echo
  126. @echo "Other Options:"
  127. $(foreach A_OPTION_NAME,$(sort $(OTHER_OPTION_NAMES)),\
  128. $(call NAME_ECHO,$(A_OPTION_NAME)))