aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile13
-rw-r--r--message.mk5
2 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 37f5f23db..508691f45 100644
--- a/Makefile
+++ b/Makefile
@@ -371,6 +371,9 @@ define PARSE_KEYBOARD
371 # The same if all was specified 371 # The same if all was specified
372 else ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,all),true) 372 else ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,all),true)
373 $$(eval $$(call PARSE_ALL_KEYMAPS)) 373 $$(eval $$(call PARSE_ALL_KEYMAPS))
374 # List all keymaps for the given keyboard
375 else ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,list-keymaps),true)
376 $$(eval $$(call LIST_ALL_KEYMAPS))
374 # Try to match the specified keyamp with the list of known keymaps 377 # Try to match the specified keyamp with the list of known keymaps
375 else ifeq ($$(call TRY_TO_MATCH_RULE_FROM_LIST,$$(KEYMAPS)),true) 378 else ifeq ($$(call TRY_TO_MATCH_RULE_FROM_LIST,$$(KEYMAPS)),true)
376 $$(eval $$(call PARSE_KEYMAP,$$(MATCHED_ITEM))) 379 $$(eval $$(call PARSE_KEYMAP,$$(MATCHED_ITEM)))
@@ -407,6 +410,16 @@ endef
407# endif 410# endif
408# endef 411# endef
409 412
413# Prints a list of all known keymaps for the given keyboard
414define LIST_ALL_KEYMAPS
415 COMMAND_true_LIST_KEYMAPS := \
416 printf "$$(KEYMAPS)\n";
417 COMMAND_false_LIST_KEYMAPS := \
418 printf "$$(MSG_AVAILABLE_KEYMAPS)\n"; \
419 printf "$$(KEYMAPS)\n";
420 COMMANDS += LIST_KEYMAPS
421endef
422
410# $1 Keymap 423# $1 Keymap
411# This is the meat of compiling a keyboard, when entering this, everything is known 424# This is the meat of compiling a keyboard, when entering this, everything is known
412# keyboard, subproject, and keymap 425# keyboard, subproject, and keymap
diff --git a/message.mk b/message.mk
index dfbde2845..53afba206 100644
--- a/message.mk
+++ b/message.mk
@@ -76,6 +76,11 @@ define GENERATE_MSG_MAKE_TEST
76endef 76endef
77MSG_MAKE_TEST = $(eval $(call GENERATE_MSG_MAKE_TEST))$(MSG_MAKE_TEST_ACTUAL) 77MSG_MAKE_TEST = $(eval $(call GENERATE_MSG_MAKE_TEST))$(MSG_MAKE_TEST_ACTUAL)
78MSG_TEST = Testing $(BOLD)$(TEST_NAME)$(NO_COLOR) 78MSG_TEST = Testing $(BOLD)$(TEST_NAME)$(NO_COLOR)
79define GENERATE_MSG_AVAILABLE_KEYMAPS
80 MSG_AVAILABLE_KEYMAPS_ACTUAL := Available keymaps for $(BOLD)$$(CURRENT_KB)$(NO_COLOR):
81endef
82MSG_AVAILABLE_KEYMAPS = $(eval $(call GENERATE_MSG_AVAILABLE_KEYMAPS))$(MSG_AVAILABLE_KEYMAPS_ACTUAL)
83
79MSG_CHECK_FILESIZE = Checking file size of $(TARGET).hex 84MSG_CHECK_FILESIZE = Checking file size of $(TARGET).hex
80MSG_FILE_TOO_BIG = $(ERROR_COLOR)The firmware is too large!$(NO_COLOR) $(CURRENT_SIZE)/$(MAX_SIZE) ($(OVER_SIZE) bytes over)\n 85MSG_FILE_TOO_BIG = $(ERROR_COLOR)The firmware is too large!$(NO_COLOR) $(CURRENT_SIZE)/$(MAX_SIZE) ($(OVER_SIZE) bytes over)\n
81MSG_FILE_TOO_SMALL = The firmware is too small! $(CURRENT_SIZE)/$(MAX_SIZE)\n 86MSG_FILE_TOO_SMALL = The firmware is too small! $(CURRENT_SIZE)/$(MAX_SIZE)\n