From d9f114b6520a69d80deaa07da90a4f789ee64471 Mon Sep 17 00:00:00 2001 From: jpirnay Date: Sun, 22 Feb 2026 08:32:03 +0100 Subject: [PATCH] feat: Allow a local configuration file for custom compiles (#879) ## Summary * platformio.ini is a repository based config for platformio and cannot be modified without constant nagging of git to include it into you commits * PlatformIO allows you to split your configuration into multiple files using the extra_configs option in the [platformio] block. This effectively merges other .ini files into your main one. This will be silently ignored if such a file does not exist ## Additional Context * Modifiy platformio.ini and add a .gitignore entry to ignore your local config * eg my own ``platformio.local.ini``: ``` [env:custom] extends = base build_flags = ${base.build_flags} -DCROSSPOINT_VERSION=\"${crosspoint.version}-custom\" ; inclusion of additional fonts is disabled in custom builds to save space -DOMIT_FONTS ``` --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _NO_ --------- Co-authored-by: Dave Allie --- .gitignore | 1 + platformio.ini | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 9530c339..8298c1f1 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ build /.cache .history/ /.venv +*.local* diff --git a/platformio.ini b/platformio.ini index 58e01882..bcbac31f 100644 --- a/platformio.ini +++ b/platformio.ini @@ -1,5 +1,6 @@ [platformio] default_envs = default +extra_configs = platformio.local.ini [crosspoint] version = 1.0.0