From 845d50fb34034acf43e6b1906eb78c788f22d8e8 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Wed, 12 Mar 2025 20:56:46 -0400 Subject: [PATCH] implement FORCE_DISPLAY_TYPE flag --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index a0d56d1a..e1bf8414 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,15 @@ ifeq ($(SENSOR), TEMPERATURE) DEFINES += -DTEMPERATURE_BOARD_INSTALLED endif +ifdef FORCE_DISPLAY_TYPE + ifeq ($(FORCE_DISPLAY_TYPE), CUSTOM) + DEFINES += -DFORCE_CUSTOM_LCD_TYPE + endif + ifeq ($(FORCE_DISPLAY_TYPE), CLASSIC) + DEFINES += -DFORCE_CLASSIC_LCD_TYPE + endif +endif + ifdef EMSCRIPTEN all: $(BUILD)/$(BIN).elf $(BUILD)/$(BIN).html $(BUILD)/$(BIN).html: $(OBJS)