MMDVM_HS/scripts/build_fw.sh

48 lines
1.5 KiB
Bash
Raw Normal View History

2017-07-27 06:01:54 +02:00
#!/bin/bash
# Copyright (C) 2017 by Andy Uribe CA6JAU
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
cd ~/MMDVM_HS/
make clean
2017-07-28 19:57:04 +02:00
git pull
2017-07-27 06:01:54 +02:00
# Building ZUMspot Libre Kit
cp ~/MMDVM_HS/configs/ZUMspot_Libre.h ~/MMDVM_HS/Config.h
make bl
mv ~/MMDVM_HS/bin/outp.bin ~/MMDVM_HS/bin/zumspot_libre_fw.bin
make clean
# Building ZUMspot RPi
cp ~/MMDVM_HS/configs/ZUMspot_RPi.h ~/MMDVM_HS/Config.h
make
mv ~/MMDVM_HS/bin/outp.bin ~/MMDVM_HS/bin/zumspot_rpi_fw.bin
make clean
# Building ZUMspot USB
2017-07-27 06:09:46 +02:00
cp ~/MMDVM_HS/configs/ZUMspot_USB.h ~/MMDVM_HS/Config.h
2017-07-27 06:01:54 +02:00
make bl
mv ~/MMDVM_HS/bin/outp.bin ~/MMDVM_HS/bin/zumspot_usb_fw.bin
make clean
# Building ZUMspot Duplex
cp ~/MMDVM_HS/configs/ZUMspot_duplex.h ~/MMDVM_HS/Config.h
make bl
mv ~/MMDVM_HS/bin/outp.bin ~/MMDVM_HS/bin/zumspot_duplex_fw.bin
make clean
cp ~/MMDVM_HS/configs/ZUMspot_Libre.h ~/MMDVM_HS/Config.h