Skip to content

Commit 3fbdaf7

Browse files
committed
don't overwrite existing platformio build flags in build script
1 parent 7bcf1f1 commit 3fbdaf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ build_firmware() {
4747
# e.g: RAK_4631_Repeater-v1.0.0-SHA
4848
FIRMWARE_FILENAME="$1-${FIRMWARE_VERSION_STRING}"
4949

50-
# export build flags for pio so we can inject firmware version info
51-
export PLATFORMIO_BUILD_FLAGS="-DFIRMWARE_BUILD_DATE='\"${FIRMWARE_BUILD_DATE}\"' -DFIRMWARE_VERSION='\"${FIRMWARE_VERSION_STRING}\"'"
50+
# add firmware version info to end of existing platformio build flags in environment vars
51+
export PLATFORMIO_BUILD_FLAGS="${PLATFORMIO_BUILD_FLAGS} -DFIRMWARE_BUILD_DATE='\"${FIRMWARE_BUILD_DATE}\"' -DFIRMWARE_VERSION='\"${FIRMWARE_VERSION_STRING}\"'"
5252

5353
# build firmware target
5454
pio run -e $1

0 commit comments

Comments
 (0)