build fixes
This commit is contained in:
parent
a8510160fb
commit
2a98671794
30
build.sh
30
build.sh
@ -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
|
||||||
git clone git://git.drogon.net/wiringPi
|
if [ ! -d wiringPi ]; then
|
||||||
pushd wiringPi
|
git clone git://git.drogon.net/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
|
||||||
git clone https://github.com/TheThingsNetwork/lora_gateway.git
|
if [ ! -d lora_gateway ]; then
|
||||||
pushd lora_gateway
|
git clone https://github.com/TheThingsNetwork/lora_gateway.git
|
||||||
|
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
|
||||||
git clone https://github.com/TheThingsNetwork/packet_forwarder.git
|
if [ ! -d packet_forwarder ]; then
|
||||||
pushd packet_forwarder
|
git clone https://github.com/TheThingsNetwork/packet_forwarder.git
|
||||||
|
pushd packet_forwarder
|
||||||
|
else
|
||||||
|
pushd packet_forwarder
|
||||||
|
git pull
|
||||||
|
git reset --hard
|
||||||
|
fi
|
||||||
make
|
make
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user