build fixes

This commit is contained in:
Ray Ozzie 2016-03-26 13:56:33 -04:00
parent aca3d94a1e
commit 72e5a2522d
2 changed files with 6 additions and 5 deletions

View File

@ -6,7 +6,7 @@ ENV INITSYSTEM on
# Version number of gateway software. # Version number of gateway software.
# (Incrementing this simply forces Docker to flush its cache # (Incrementing this simply forces Docker to flush its cache
# and thus forces a full rebuild. Not used outside of Dockerfile.) # and thus forces a full rebuild. Not used outside of Dockerfile.)
ENV TTN_GATEWAY_SOFTWARE 46 ENV TTN_GATEWAY_SOFTWARE 47
# Build the gateway # Build the gateway
COPY build.sh /tmp/build.sh COPY build.sh /tmp/build.sh

View File

@ -29,10 +29,10 @@ git clone https://github.com/TheThingsNetwork/lora_gateway.git
pushd lora_gateway pushd lora_gateway
sed -i -e 's/PLATFORM= kerlink/PLATFORM= imst_rpi/g' ./libloragw/library.cfg sed -i -e 's/PLATFORM= kerlink/PLATFORM= imst_rpi/g' ./libloragw/library.cfg
# Comment the following in or out as needed for hardware debugging # 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_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 #sed -i -e 's/DEBUG_GPS= 0/DEBUG_GPS= 1/g' ./libloragw/library.cfg
make make
popd popd
@ -49,7 +49,8 @@ popd
# Copy packet forwarder to where it'll be expected # 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 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 # rm -rf $BUILD_DIR
echo "Build & Installation Completed." echo "Build & Installation Completed."