aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorFintasticMan <finlay.neon.kid@gmail.com>2023-11-16 10:39:48 +0100
committerNeroBurner <pyro4hell@gmail.com>2023-12-16 11:43:31 +0100
commit69b9d30a3057ea2d7170d15edbae15f4e56cdcc3 (patch)
treee5d6906cf2e806a1e2c1f5e91e021883e6b2fcc8 /doc
parentd79766bccd81b8b1ccc7f71b5aad9de3fc436193 (diff)
p8: Fix build when building for P8 variants
Building with a TARGET_DEVICE set to any of the P8 variants' names caused the build to fail, because they contained hyphens. The build defines a macro `TARGET_DEVICE_$VARIANT`, which fails if `$VARIANT` contains a hyphen.
Diffstat (limited to 'doc')
-rw-r--r--doc/buildAndProgram.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/buildAndProgram.md b/doc/buildAndProgram.md
index 3b4ed22c..69e4bfd8 100644
--- a/doc/buildAndProgram.md
+++ b/doc/buildAndProgram.md
@@ -43,7 +43,7 @@ CMake configures the project according to variables you specify the command line
**CMAKE_BUILD_TYPE (\*)**| Build type (Release or Debug). Release is applied by default if this variable is not specified.|`-DCMAKE_BUILD_TYPE=Debug`
**BUILD_DFU (\*\*)**|Build DFU files while building (needs [adafruit-nrfutil](https://github.com/adafruit/Adafruit_nRF52_nrfutil)).|`-DBUILD_DFU=1`
**BUILD_RESOURCES (\*\*)**| Generate external resource while building (needs [lv_font_conv](https://github.com/lvgl/lv_font_conv) and [python3-pil/pillow](https://pillow.readthedocs.io) module). |`-DBUILD_RESOURCES=1`
-**TARGET_DEVICE**|Target device, used for hardware configuration. Allowed: `PINETIME, MOY-TFK5, MOY-TIN5, MOY-TON5, MOY-UNK`|`-DTARGET_DEVICE=PINETIME` (Default)
+**TARGET_DEVICE**|Target device, used for hardware configuration. Allowed: `PINETIME, MOY_TFK5, MOY_TIN5, MOY_TON5, MOY_UNK`|`-DTARGET_DEVICE=PINETIME` (Default)
#### (\*) Note about **CMAKE_BUILD_TYPE**
By default, this variable is set to *Release*. It compiles the code with size and speed optimizations. We use this value for all the binaries we publish when we [release](https://github.com/InfiniTimeOrg/InfiniTime/releases) new versions of InfiniTime.