From 8b0559c4812d74b6307757135622975523c5a88d Mon Sep 17 00:00:00 2001 From: Christoph Honal Date: Tue, 10 May 2022 21:46:36 +0200 Subject: Add basic hardware configuration options for P8 This enables the configuration of the LFCLK source, as well as the target hardware board pin configuration. --- CMakeLists.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index acd48698..f49a9929 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,13 +54,8 @@ if(BUILD_DFU) set(BUILD_DFU true) endif() -option(WATCH_COLMI_P8 "Build for the Colmi P8" OFF) -set(TARGET_DEVICE "PineTime") - -if(WATCH_COLMI_P8) - set(TARGET_DEVICE "Colmi P8") - add_definitions(-DWATCH_P8) -endif() +set(TARGET_DEVICE "PINETIME" CACHE STRING "Target device") +set_property(CACHE TARGET_DEVICE PROPERTY STRINGS PINETIME MOY-TFK5 MOY-TIN5 MOY-TON5 MOY-UNK) set(PROJECT_GIT_COMMIT_HASH "") -- cgit v1.2.3