aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lcd.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/lcd.mk b/lcd.mk
index 3354330d..020d70a3 100644
--- a/lcd.mk
+++ b/lcd.mk
@@ -1,4 +1,7 @@
-LCDLIB = $(CHIBIOS)/ext/lcd
+# don't re-define LCDLIB if it has been set elsewhere, e.g in Makefile
+ifeq ($(LCDLIB),)
+ LCDLIB = $(CHIBIOS)/ext/lcd
+endif
include $(LCDLIB)/drivers/drivers.mk
include $(LCDLIB)/glcd/glcd.mk