From 70e4f505dc38190a40ecdd77f1b8646d657c267d Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Thu, 27 Jul 2017 00:01:54 -0400 Subject: [PATCH] Simple script for firmware building --- configs/build_fw.sh | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 configs/build_fw.sh diff --git a/configs/build_fw.sh b/configs/build_fw.sh new file mode 100755 index 0000000..7e45ef4 --- /dev/null +++ b/configs/build_fw.sh @@ -0,0 +1,47 @@ +#!/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 + +# 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 +cp ~/MMDVM_HS/configs/ZUMspot_RPi.h ~/MMDVM_HS/Config.h +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 +