diff options
| -rw-r--r-- | tmk_core/rules.mk | 14 |
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) |
| 21 | FORMAT = ihex | 20 | FORMAT = ihex |
| 22 | 21 | ||
| @@ -243,6 +242,12 @@ MSG_COMPILING_CPP = Compiling: | |||
| 243 | MSG_ASSEMBLING = Assembling: | 242 | MSG_ASSEMBLING = Assembling: |
| 244 | MSG_CLEANING = Cleaning project: | 243 | MSG_CLEANING = Cleaning project: |
| 245 | MSG_CREATING_LIBRARY = Creating library: | 244 | MSG_CREATING_LIBRARY = Creating library: |
| 245 | MSG_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. |
| 305 | begin: | 310 | begin: |
| 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 | ||
| 308 | end: | 320 | end: |
| 309 | @$(SECHO) $(MSG_END) | 321 | @$(SECHO) $(MSG_END) |
