Skip to content

Commit

Permalink
minor build script cleanups, make US build optional
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nn0 committed Jun 5, 2021
1 parent 493b687 commit 6a8f618
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions image/mk_europe_edition64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ die() {
}

if [ "$#" -ne 2 ]; then
die "Usage: " $0 " dev|prod branch"
echo "Usage: " $0 " dev|prod branch [us]"
echo "if \"us\" is given, an image with US-like pre-configuration and without developer mode enabled will be created as well"
fi

# cd to script directory
Expand Down Expand Up @@ -106,11 +107,13 @@ zip out/$outname.zip $outname


# Now create US default config into the image and create the eu-us version..
mount -t ext4 -o offset=$partoffset $outname mnt/ || die "root-mount failed"
echo '{"UAT_Enabled": true,"OGN_Enabled": false,"DeveloperMode": false}' > mnt/etc/stratux.conf
umount mnt
mv $outname $outname_us
zip out/$outname_us.zip $outname_us
if [ "$3" == "us" ]; then
mount -t ext4 -o offset=$partoffset $outname mnt/ || die "root-mount failed"
echo '{"UAT_Enabled": true,"OGN_Enabled": false,"DeveloperMode": false}' > mnt/etc/stratux.conf
umount mnt
mv $outname $outname_us
zip out/$outname_us.zip $outname_us
fi


echo "Final images has been placed into $TMPDIR/out. Please install and test the image."
2 changes: 1 addition & 1 deletion image/mk_europe_edition_device_setup64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apt update
apt clean

PATH=/root/fake:$PATH apt install --yes libjpeg62-turbo-dev libconfig9 rpi-update hostapd isc-dhcp-server tcpdump git cmake \
libusb-1.0-0-dev build-essential build-essential autoconf libtool i2c-tools screen libfftw3-dev libncurses-dev python-serial
libusb-1.0-0-dev build-essential autoconf libtool i2c-tools libfftw3-dev libncurses-dev python-serial

# try to reduce writing to SD card as much as possible, so they don't get bricked when yanking the power cable
# Disable swap...
Expand Down

0 comments on commit 6a8f618

Please sign in to comment.