From 59f2001b311dc85fc5b6b8851080b0bb70f2aadf Mon Sep 17 00:00:00 2001 From: cr3473 Date: Tue, 2 Jun 2015 12:12:44 -0700 Subject: [PATCH] Added ability to set the MATRIX in build/make --- keyboard/planck/Makefile | 9 +++++++-- keyboard/planck/{matrix.c => matrix_handwired.c} | 0 2 files changed, 7 insertions(+), 2 deletions(-) rename keyboard/planck/{matrix.c => matrix_handwired.c} (100%) diff --git a/keyboard/planck/Makefile b/keyboard/planck/Makefile index 964e6832..ad25854e 100644 --- a/keyboard/planck/Makefile +++ b/keyboard/planck/Makefile @@ -47,13 +47,18 @@ TOP_DIR = ../.. # Directory keyboard dependent files exist TARGET_DIR = . +# Default to PCB matrix +ifndef MATRIX + MATRIX=matrix_pcb.c +endif +$(warning MATRIX: $(MATRIX)) # # project specific files ifdef COMMON SRC = keymap_common.c \ - matrix_pcb.c \ + $(MATRIX) \ led.c \ backlight.c @@ -66,7 +71,7 @@ endif else SRC = extended_keymap_common.c \ - matrix_pcb.c \ + $(MATRIX) \ led.c \ backlight.c diff --git a/keyboard/planck/matrix.c b/keyboard/planck/matrix_handwired.c similarity index 100% rename from keyboard/planck/matrix.c rename to keyboard/planck/matrix_handwired.c