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.

139 lines
3.2KB

  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. DIP_SWITCH_ENABLE
  35. OTHER_OPTION_NAMES = \
  36. UNICODE_ENABLE \
  37. UCIS_ENABLE \
  38. UNICODEMAP_ENABLE \
  39. UNICODE_COMMON \
  40. API_SYSEX_ENABLE \
  41. AUTO_SHIFT_ENABLE \
  42. AUTO_SHIFT_MODIFIERS \
  43. COMBO_ENABLE \
  44. KEY_LOCK_ENABLE \
  45. LEADER_ENABLE \
  46. PRINTING_ENABLE \
  47. STENO_ENABLE \
  48. TAP_DANCE_ENABLE \
  49. VIRTSER_ENABLE \
  50. OLED_ENABLE \
  51. LED_BACK_ENABLE \
  52. LED_UNDERGLOW_ENABLE \
  53. LED_ANIMATIONS \
  54. IOS_DEVICE_ENABLE \
  55. HELIX ZINC \
  56. ADAFRUIT_BLE_ENABLE \
  57. AUTOLOG_ENABLE \
  58. BREATHING_LED_ENABLE \
  59. DEBUG_ENABLE \
  60. ENCODER_ENABLE_CUSTOM \
  61. FADING_LED_ENABLE \
  62. GERMAN_ENABLE \
  63. HAPTIC_ENABLE \
  64. HHKB_RN42_ENABLE \
  65. ISSI_ENABLE \
  66. KEYBOARD_LOCK_ENABLE \
  67. KEYLOGGER_ENABLE \
  68. KEYMAP_IN_EEPROM_ENABLE \
  69. KEYMAP_SECTION_ENABLE \
  70. LCD_BACKLIGHT_ENABLE \
  71. LEDMAP_ENABLE \
  72. LEDMAP_IN_EEPROM_ENABLE \
  73. MACROS_ENABLED \
  74. ONEHAND_ENABLE \
  75. PS2_MOUSE_ENABLE \
  76. RAW_ENABLE \
  77. SOFTPWM_LED_ENABLE \
  78. SWAP_HANDS_ENABLE \
  79. USB_6KRO_ENABLE \
  80. WATCHDOG_ENABLE \
  81. XT_ENABLE \
  82. ERGOINU \
  83. NO_USB_STARTUP_CHECK \
  84. DISABLE_PROMICRO_LEDs \
  85. MITOSIS_DATAGROK_BOTTOMSPACE \
  86. MITOSIS_DATAGROK_SLOWUART \
  87. RGB_MATRIX_KEYPRESSES \
  88. LED_MIRRORED \
  89. RGBLIGHT_FULL_POWER \
  90. Link_Time_Optimization \
  91. LINK_TIME_OPTIMIZATION_ENABLE
  92. define NAME_ECHO
  93. @echo " $1 = $($1) # $(origin $1)"
  94. endef
  95. .PHONY: show_build_options0 show_build_options
  96. show_build_options0:
  97. @echo " KEYBOARD = $(KEYBOARD)"
  98. @echo " KEYMAP = $(KEYMAP)"
  99. @echo " MCU = $(MCU)"
  100. @echo " MCU_SERIES = $(MCU_SERIES)"
  101. @echo " PLATFORM = $(PLATFORM)"
  102. @echo " FIRMWARE_FORMAT = $(FIRMWARE_FORMAT)"
  103. @echo
  104. @echo "Build Options:"
  105. $(foreach A_OPTION_NAME,$(sort $(BUILD_OPTION_NAMES)),\
  106. $(call NAME_ECHO,$(A_OPTION_NAME)))
  107. show_build_options: show_build_options0
  108. @echo
  109. @echo "If you want to know more, please try 'show_all_features' or 'show_full_features'"
  110. @echo
  111. .PHONY: show_all_features
  112. show_all_features: show_build_options0
  113. @echo
  114. @echo "Hardware Options:"
  115. $(foreach A_OPTION_NAME,$(sort $(HARDWARE_OPTION_NAMES)),\
  116. $(if $($(A_OPTION_NAME)),$(call NAME_ECHO,$(A_OPTION_NAME))))
  117. @echo
  118. @echo "Other Options:"
  119. $(foreach A_OPTION_NAME,$(sort $(OTHER_OPTION_NAMES)),\
  120. $(if $($(A_OPTION_NAME)),$(call NAME_ECHO,$(A_OPTION_NAME))))
  121. .PHONY: show_full_features
  122. show_full_features: show_build_options0
  123. @echo
  124. @echo "Hardware Options:"
  125. $(foreach A_OPTION_NAME,$(sort $(HARDWARE_OPTION_NAMES)),\
  126. $(call NAME_ECHO,$(A_OPTION_NAME)))
  127. @echo
  128. @echo "Other Options:"
  129. $(foreach A_OPTION_NAME,$(sort $(OTHER_OPTION_NAMES)),\
  130. $(call NAME_ECHO,$(A_OPTION_NAME)))