mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-03 04:15:53 +00:00
remove country from rom support
This commit is contained in:
parent
3bd1ae0be4
commit
efebb8bb0b
@ -4,12 +4,6 @@ set -e
|
|||||||
|
|
||||||
VERSION=`bin/buildinfo.py`
|
VERSION=`bin/buildinfo.py`
|
||||||
|
|
||||||
# We now only do regionless builds
|
|
||||||
COUNTRIES=""
|
|
||||||
#COUNTRIES="US EU433 EU865 CN JP ANZ KR"
|
|
||||||
#COUNTRIES=US
|
|
||||||
#COUNTRIES=CN
|
|
||||||
|
|
||||||
BOARDS_ESP32="tlora-v2 tlora-v1 tlora-v2-1-1.6 tbeam heltec tbeam0.7"
|
BOARDS_ESP32="tlora-v2 tlora-v1 tlora-v2-1-1.6 tbeam heltec tbeam0.7"
|
||||||
#BOARDS_ESP32=tbeam
|
#BOARDS_ESP32=tbeam
|
||||||
|
|
||||||
@ -30,26 +24,17 @@ mkdir -p $OUTDIR/bins/universal $OUTDIR/elfs/universal
|
|||||||
# build the named environment and copy the bins to the release directory
|
# build the named environment and copy the bins to the release directory
|
||||||
function do_build() {
|
function do_build() {
|
||||||
BOARD=$1
|
BOARD=$1
|
||||||
COUNTRY=$2
|
|
||||||
isNrf=$3
|
isNrf=$3
|
||||||
|
|
||||||
echo "Building $COUNTRY for $BOARD with $PLATFORMIO_BUILD_FLAGS"
|
echo "Building for $BOARD with $PLATFORMIO_BUILD_FLAGS"
|
||||||
rm -f .pio/build/$BOARD/firmware.*
|
rm -f .pio/build/$BOARD/firmware.*
|
||||||
|
|
||||||
# The shell vars the build tool expects to find
|
# The shell vars the build tool expects to find
|
||||||
export APP_VERSION=$VERSION
|
export APP_VERSION=$VERSION
|
||||||
|
|
||||||
# Are we building a universal/regionless rom?
|
# Are we building a universal/regionless rom?
|
||||||
if [ "x$COUNTRY" != "x" ]
|
|
||||||
then
|
|
||||||
export HW_VERSION="1.0-$COUNTRY"
|
|
||||||
export COUNTRY
|
|
||||||
basename=firmware-$BOARD-$COUNTRY-$VERSION
|
|
||||||
else
|
|
||||||
export HW_VERSION="1.0"
|
export HW_VERSION="1.0"
|
||||||
unset COUNTRY
|
|
||||||
basename=universal/firmware-$BOARD-$VERSION
|
basename=universal/firmware-$BOARD-$VERSION
|
||||||
fi
|
|
||||||
|
|
||||||
pio run --environment $BOARD # -v
|
pio run --environment $BOARD # -v
|
||||||
SRCELF=.pio/build/$BOARD/firmware.elf
|
SRCELF=.pio/build/$BOARD/firmware.elf
|
||||||
@ -71,10 +56,6 @@ function do_boards() {
|
|||||||
declare boards=$1
|
declare boards=$1
|
||||||
declare isNrf=$2
|
declare isNrf=$2
|
||||||
for board in $boards; do
|
for board in $boards; do
|
||||||
for country in $COUNTRIES; do
|
|
||||||
do_build $board $country "$isNrf"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Build universal
|
# Build universal
|
||||||
do_build $board "" "$isNrf"
|
do_build $board "" "$isNrf"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user