From a44ab4745d63f42945c98e1713e4c8375058cb6d Mon Sep 17 00:00:00 2001 From: The Thor Group Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Add dev tools --- tools/README.md | 5 +++++ tools/rebuild_all.sh | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 tools/README.md create mode 100755 tools/rebuild_all.sh diff --git a/tools/README.md b/tools/README.md new file mode 100644 index 00000000..50c3b3b7 --- /dev/null +++ b/tools/README.md @@ -0,0 +1,5 @@ +# Dev Tools + +This directory contains some tools we use during development. They're not +normally used with the loader generator in any way. They're messy, buggy, +quick and dirty but often helpful ;) diff --git a/tools/rebuild_all.sh b/tools/rebuild_all.sh new file mode 100755 index 00000000..aabe4bfb --- /dev/null +++ b/tools/rebuild_all.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# Removed all existing images and builds all permutations of the ones we test. We usually use this tool just after +# executing tools/make_all.sh from the LKM repo. The we usually do something akin to: +# sftp dropbox@vm-003.local:/_images/rp-img/ <<< 'put images/*.gz' +# When you are executing this script do it from the root of the repo dir like ./tools/rebuild_all.sh + +rm images/*.img images/*.gz + +set -euo pipefail +BRP_DEBUG=1 BRP_USER_CFG=$PWD/user_config-ds3615.json ./build-loader.sh 'DS3615xs' '6.2.4-25556' "$PWD/images/rp-3615-v6.img" +BRP_DEBUG=1 BRP_USER_CFG=$PWD/user_config-ds3615.json ./build-loader.sh 'DS3615xs' '7.0-41222' "$PWD/images/rp-3615-v7.img" +BRP_DEBUG=1 BRP_USER_CFG=$PWD/user_config-ds918.json ./build-loader.sh 'DS918+' '6.2.4-25556' "$PWD/images/rp-918-v6.img" +BRP_DEBUG=1 BRP_USER_CFG=$PWD/user_config-ds918.json ./build-loader.sh 'DS918+' '7.0-41890' "$PWD/images/rp-918-v7.img" +gzip "$PWD/images/rp-3615-v6.img" +gzip "$PWD/images/rp-3615-v7.img" +gzip "$PWD/images/rp-918-v6.img" +gzip "$PWD/images/rp-918-v7.img"