summaryrefslogtreecommitdiff
path: root/builddefs/message.mk
diff options
context:
space:
mode:
authorPablo Martínez <58857054+elpekenin@users.noreply.github.com>2023-09-25 06:17:50 +0200
committerGitHub <noreply@github.com>2023-09-25 14:17:50 +1000
commit9b0887359bd6828a4071f7ce0dcd35eb0c8f98a1 (patch)
tree77d6c5dbad47f072a85cb31e04e2f6799a1cf6e1 /builddefs/message.mk
parent2563c9ba7fad5318db687bf98f1e5a0370614ad7 (diff)
[Feature] Compilation warning if both `keymap.json` and `keymap.c` exist (#19939)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'builddefs/message.mk')
-rw-r--r--builddefs/message.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/builddefs/message.mk b/builddefs/message.mk
index c7cc5171e7..7c8f87f990 100644
--- a/builddefs/message.mk
+++ b/builddefs/message.mk
@@ -103,6 +103,10 @@ MSG_BOOTLOADER_NOT_FOUND = $(ERROR_COLOR)ERROR:$(NO_COLOR) $(MSG_BOOTLOADER_NOT_
BOOTLOADER_RETRY_TIME ?= 0.5
MSG_BOOTLOADER_NOT_FOUND_QUICK_RETRY = $(MSG_BOOTLOADER_NOT_FOUND_BASE) Trying again every $(BOOTLOADER_RETRY_TIME)s (Ctrl+C to cancel)
+define WARNING_MESSAGE
+ $(shell printf "\n %-99s $(WARN_STRING)\n" "$1" >&2)
+endef
+
define CATASTROPHIC_ERROR
$(shell printf "\n * %-99s $(ERROR_STRING)\n" "$2" >&2)
$(error $1)