From 75cd02665a3a2ca653ab5692333c35f12ee3256b Mon Sep 17 00:00:00 2001 From: Philipp Neumann Date: Thu, 29 Apr 2021 11:44:09 +0200 Subject: [PATCH] Nightly Build Script for all supported radio --- scripts/nightly_build.sh | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 scripts/nightly_build.sh diff --git a/scripts/nightly_build.sh b/scripts/nightly_build.sh new file mode 100644 index 00000000..a1a778fc --- /dev/null +++ b/scripts/nightly_build.sh @@ -0,0 +1,42 @@ +#!/bin/sh +#/*************************************************************************** +# * Copyright (C) 2021 by Philipp Neumann DF5PMF, * +# * * +# * 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 3 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, see * +# ***************************************************************************/ + +#Exporting Paths in case we execute from crontab +export PATH="$HOME/.local/bin:$HOME/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin" +#Determing where the script is +MY_PATH="`dirname \"$0\"`" # relative +MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized +#Jumping in main OpenRTX folder +cd $MY_PATH/.. + +#Preperation +rm -rf build_arm +git reset --hard +git clean -fd +git pull +#Building +meson setup --cross-file cross_arm.txt build_arm +meson compile -C build_arm openrtx_md3x0_wrap +meson compile -C build_arm openrtx_mduv3x0_wrap +#meson compile -C build_arm openrtx_md9600 +meson compile -C build_arm openrtx_gd77_wrap +meson compile -C build_arm openrtx_dm1801_wrap +#SCP +cd build_arm +#Using command line option to upload to a scp server +scp *_wrap* $1