From c0307cbcb009716e601ba3df52cf2a89ab80492b Mon Sep 17 00:00:00 2001 From: geeksville Date: Mon, 17 Aug 2020 10:23:21 -0700 Subject: [PATCH] a cleaner way to add variants - no longer need symlinks in adafruit proj --- platformio.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platformio.ini b/platformio.ini index e98e7bb1..a53f411a 100644 --- a/platformio.ini +++ b/platformio.ini @@ -186,6 +186,9 @@ board = nrf52840_dk [env:nrf52840dk-geeksville] extends = nrf52_base board = nrf52840_dk_modified +# add our variants files to the include and src paths +build_flags = ${nrf52_base.build_flags} -Ivariants/pca10056-rc-clock +src_filter = ${nrf52_base.src_filter} +<../variants/pca10056-rc-clock> ; Note: By default no lora device is created for this build - it uses a simulated interface [env:feather_nrf52832] @@ -216,6 +219,9 @@ lib_deps = [env:lora-relay-v1] extends = nrf52_base board = lora-relay-v1 +# add our variants files to the include and src paths +build_flags = ${nrf52_base.build_flags} -Ivariants/lora_relay_v1 +src_filter = ${nrf52_base.src_filter} +<../variants/lora_relay_v1> lib_deps = ${env.lib_deps} SparkFun BQ27441 LiPo Fuel Gauge Arduino Library