Skip to content

Commit

Permalink
Add dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ttg-public committed Jan 1, 1970
1 parent 68ec6c3 commit a44ab47
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/README.md
Original file line number Diff line number Diff line change
@@ -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 changes: 17 additions & 0 deletions tools/rebuild_all.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit a44ab47

Please sign in to comment.