aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmk_core/rules.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index 96eba24d6..7d3d8f9a6 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -16,7 +16,6 @@
16# 16#
17 17
18 18
19
20# Output format. (can be srec, ihex, binary) 19# Output format. (can be srec, ihex, binary)
21FORMAT = ihex 20FORMAT = ihex
22 21
@@ -243,6 +242,12 @@ MSG_COMPILING_CPP = Compiling:
243MSG_ASSEMBLING = Assembling: 242MSG_ASSEMBLING = Assembling:
244MSG_CLEANING = Cleaning project: 243MSG_CLEANING = Cleaning project:
245MSG_CREATING_LIBRARY = Creating library: 244MSG_CREATING_LIBRARY = Creating library:
245MSG_SUBMODULE_DIRTY = $(WARN_COLOR)WARNING:$(NO_COLOR)\n \
246 Some git sub-modules are out of date or modified, please consider runnning:$(BOLD)\n\
247 git submodule sync --recursive\n\
248 git submodule update --init --recursive$(NO_COLOR)\n\n\
249 You can ignore this warning if you are not compiling any ChibiOS keyboards,\n\
250 or if you have modified the ChibiOS libraries yourself. \n\n
246 251
247 252
248# Define all object files. 253# Define all object files.
@@ -304,6 +309,13 @@ lib: $(LIBNAME)
304# the following magic strings to be generated by the compile job. 309# the following magic strings to be generated by the compile job.
305begin: 310begin:
306 @$(SECHO) $(MSG_BEGIN) 311 @$(SECHO) $(MSG_BEGIN)
312 git submodule status --recursive | \
313 while IFS= read -r x; do \
314 case "$$x" in \
315 \ *) ;; \
316 *) printf "$(MSG_SUBMODULE_DIRTY)";break;; \
317 esac \
318 done
307 319
308end: 320end:
309 @$(SECHO) $(MSG_END) 321 @$(SECHO) $(MSG_END)