Browse Source

Merge pull request #1076 from mcspr/missing-env

Improve build.sh -ota envs detection
ech1560
Xose Pérez 6 years ago
committed by GitHub
parent
commit
363227b22a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions
  1. +6
    -2
      code/build.sh
  2. +1
    -1
      code/platformio.ini

+ 6
- 2
code/build.sh View File

@ -34,8 +34,12 @@ if [ ${par_thread} -ge ${par_total_threads} ]; then
fi
# Available environments
travis=$(grep env: platformio.ini | grep travis | sed 's/\[env://' | sed 's/\]/ /' | sort)
available=$(grep env: platformio.ini | grep -v ota | grep -v ssl | grep -v travis | sed 's/\[env://' | sed 's/\]/ /' | sort)
list_envs() {
grep env: platformio.ini | sed 's/\[env:\(.*\)\]/\1/g'
}
travis=$(list_envs | grep travis | sort)
available=$(list_envs | grep -Ev -- '-ota$|-ssl$|^travis' | sort)
# Build tools settings
export PLATFORMIO_BUILD_FLAGS="${PLATFORMIO_BUILD_FLAGS} -DAPP_REVISION='\"$git_revision\"'"


+ 1
- 1
code/platformio.ini View File

@ -545,7 +545,7 @@ lib_ignore = ${common.lib_ignore}
build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_DUAL_R2
extra_scripts = ${common.extra_scripts}
[env:itead-sonoff-dual-ota-r2]
[env:itead-sonoff-dual-r2-ota]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board_1m}


Loading…
Cancel
Save