From 6eadc7c106f043d4c246913fe995584fa19a3aea Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Fri, 28 Jul 2017 13:57:04 -0400 Subject: [PATCH] Updating scripts --- {configs => scripts}/build_fw.sh | 1 + scripts/install_buildtools.sh | 38 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) rename {configs => scripts}/build_fw.sh (99%) create mode 100755 scripts/install_buildtools.sh diff --git a/configs/build_fw.sh b/scripts/build_fw.sh similarity index 99% rename from configs/build_fw.sh rename to scripts/build_fw.sh index 67e0d35..1cbf939 100755 --- a/configs/build_fw.sh +++ b/scripts/build_fw.sh @@ -18,6 +18,7 @@ cd ~/MMDVM_HS/ make clean +git pull # Building ZUMspot Libre Kit cp ~/MMDVM_HS/configs/ZUMspot_Libre.h ~/MMDVM_HS/Config.h diff --git a/scripts/install_buildtools.sh b/scripts/install_buildtools.sh new file mode 100755 index 0000000..650115c --- /dev/null +++ b/scripts/install_buildtools.sh @@ -0,0 +1,38 @@ +#!/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 ~ + +# Install the necessary software tools +sudo apt-get update +sudo apt-get install gcc-arm-none-eabi gdb-arm-none-eabi libstdc++-arm-none-eabi-newlib libnewlib-arm-none-eabi + +# Install stm32flash +cd ~ +git clone https://git.code.sf.net/p/stm32flash/code stm32flash +cd stm32flash +make +sudo make install + +# Download the firmware sources +cd ~ +git clone https://github.com/juribeparada/MMDVM_HS +cd MMDVM_HS/ +git clone https://github.com/juribeparada/STM32F10X_Lib