From 72e5a2522d003da1a8a36e856757d97a54e85824 Mon Sep 17 00:00:00 2001 From: Ray Ozzie Date: Sat, 26 Mar 2016 13:56:33 -0400 Subject: [PATCH] build fixes --- Dockerfile | 2 +- build.sh | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3699b86..5fa813b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ENV INITSYSTEM on # Version number of gateway software. # (Incrementing this simply forces Docker to flush its cache # and thus forces a full rebuild. Not used outside of Dockerfile.) -ENV TTN_GATEWAY_SOFTWARE 46 +ENV TTN_GATEWAY_SOFTWARE 47 # Build the gateway COPY build.sh /tmp/build.sh diff --git a/build.sh b/build.sh index 592076b..3d7c8b4 100755 --- a/build.sh +++ b/build.sh @@ -29,10 +29,10 @@ git clone https://github.com/TheThingsNetwork/lora_gateway.git pushd lora_gateway sed -i -e 's/PLATFORM= kerlink/PLATFORM= imst_rpi/g' ./libloragw/library.cfg # Comment the following in or out as needed for hardware debugging +#sed -i -e 's/DEBUG_SPI= 0/DEBUG_SPI= 1/g' ./libloragw/library.cfg +#sed -i -e 's/DEBUG_REG= 0/DEBUG_REG= 1/g' ./libloragw/library.cfg +#sed -i -e 's/DEBUG_HAL= 0/DEBUG_HAL= 1/g' ./libloragw/library.cfg #sed -i -e 's/DEBUG_AUX= 0/DEBUG_AUX= 1/g' ./libloragw/library.cfg -sed -i -e 's/DEBUG_SPI= 0/DEBUG_SPI= 1/g' ./libloragw/library.cfg -sed -i -e 's/DEBUG_REG= 0/DEBUG_REG= 1/g' ./libloragw/library.cfg -sed -i -e 's/DEBUG_HAL= 0/DEBUG_HAL= 1/g' ./libloragw/library.cfg #sed -i -e 's/DEBUG_GPS= 0/DEBUG_GPS= 1/g' ./libloragw/library.cfg make popd @@ -49,7 +49,8 @@ popd # Copy packet forwarder to where it'll be expected cp $BUILD_DIR/packet_forwarder/poly_pkt_fwd/poly_pkt_fwd $INSTALL_DIR/poly_pkt_fwd -# Delete the build folder so that we save space +# Delete the build folder if we need space, +# else leave it around for on-device debugging/building # rm -rf $BUILD_DIR echo "Build & Installation Completed."