Add dev tools

This commit is contained in:
The Thor Group 1970-01-01 00:00:00 +00:00
parent 68ec6c3637
commit a44ab4745d
No known key found for this signature in database
GPG Key ID: DD003477088FDBA0
2 changed files with 22 additions and 0 deletions

5
tools/README.md Normal file
View File

@ -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 ;)

17
tools/rebuild_all.sh Executable file
View File

@ -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"