build fixes

This commit is contained in:
Ray Ozzie 2016-03-26 15:29:19 -04:00
parent a8510160fb
commit 2a98671794

View File

@ -19,14 +19,26 @@ if [ ! -d "$BUILD_DIR" ]; then mkdir $BUILD_DIR; fi
pushd $BUILD_DIR pushd $BUILD_DIR
# Build WiringPi so that we can do Raspberry Pi I/O # Build WiringPi so that we can do Raspberry Pi I/O
if [ ! -d wiringPi ]; then
git clone git://git.drogon.net/wiringPi git clone git://git.drogon.net/wiringPi
pushd wiringPi pushd wiringPi
else
pushd wiringPi
git reset --hard
git pull
fi
./build ./build
popd popd
# Build LoRa gateway app for this specific platform # Build LoRa gateway app for this specific platform
if [ ! -d lora_gateway ]; then
git clone https://github.com/TheThingsNetwork/lora_gateway.git git clone https://github.com/TheThingsNetwork/lora_gateway.git
pushd lora_gateway pushd lora_gateway
else
pushd lora_gateway
git reset --hard
git pull
fi
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_SPI= 0/DEBUG_SPI= 1/g' ./libloragw/library.cfg
@ -38,8 +50,14 @@ make
popd popd
# Build the packet forwarder # Build the packet forwarder
if [ ! -d packet_forwarder ]; then
git clone https://github.com/TheThingsNetwork/packet_forwarder.git git clone https://github.com/TheThingsNetwork/packet_forwarder.git
pushd packet_forwarder pushd packet_forwarder
else
pushd packet_forwarder
git pull
git reset --hard
fi
make make
popd popd