diff options
author | Franklin Wei <git@fwei.tk> | 2019-07-21 18:17:37 -0400 |
---|---|---|
committer | Franklin Wei <franklin@rockbox.org> | 2019-07-28 21:13:56 +0200 |
commit | 02a69857994afe608cdb08ee2c51e61afa2952c7 (patch) | |
tree | 0dc87ad3d79781b427ca6eb35230a03963db9eff /tools/docker_rbclient/runclient_modified.sh | |
parent | 7f9fc20afa3bcff007da941041ceb0c0d84d8fc3 (diff) | |
download | rockbox-02a69857994afe608cdb08ee2c51e61afa2952c7.tar.gz rockbox-02a69857994afe608cdb08ee2c51e61afa2952c7.zip |
Add build code for Docker development environment
This simplifies the tedious task of building all the Rockbox
toolchains manually by providing a build code for a Docker container
image. It's useful for quickly spinning up a build client with just a
couple commands and no waiting to compile (though downloading takes a
little while).
I've built an image as built1n/rbclient on Docker Hub.
All toolchains (even the weird ones) are included, except android16.
Change-Id: I6b863628ffb397604f59ec6def2f8bb8c8c7185f
Diffstat (limited to 'tools/docker_rbclient/runclient_modified.sh')
-rw-r--r-- | tools/docker_rbclient/runclient_modified.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tools/docker_rbclient/runclient_modified.sh b/tools/docker_rbclient/runclient_modified.sh new file mode 100644 index 0000000000..7688291314 --- /dev/null +++ b/tools/docker_rbclient/runclient_modified.sh | |||
@@ -0,0 +1,33 @@ | |||
1 | #!/bin/sh | ||
2 | trap "exit" INT | ||
3 | |||
4 | USER=$1 | ||
5 | PASS=$2 | ||
6 | NAME=$3 | ||
7 | ARCHLIST=arm-eabi-gcc444,arm-rb-gcc494,sh,m68k-gcc452,mipsel-gcc494,mipsel-rb-gcc494,sdl,latex | ||
8 | |||
9 | while true | ||
10 | do | ||
11 | if [ -f "rbclient.pl.new" ]; then | ||
12 | mv "rbclient.pl.new" "rbclient.pl" | ||
13 | fi | ||
14 | # Possible values for archlist are: | ||
15 | |||
16 | # arm-eabi-gcc444 : needed for ARM-based traditional targets | ||
17 | # arm-rb-gcc494 : linux based sony players, Samsung YP-R0 YP-R1 | ||
18 | # sh : SH-based players, i.e. the Archoses | ||
19 | # m68k-gcc452 : coldfire-based players | ||
20 | # mipsel-gcc494 : MIPS-based players | ||
21 | # mipsel-rb-gcc494: linux based MIPS players i.e Agptek Rocker (Benjie T6) | ||
22 | # sdl : Non-crosscompiled targets. Simulators, application, checkwps, database tool, ... | ||
23 | # android16 : Android port | ||
24 | # latex : manuual | ||
25 | |||
26 | perl -s rbclient.pl -username=$USER -password=$PASS -clientname=$NAME -archlist=$ARCHLIST -buildmaster=buildmaster.rockbox.org -port=19999 | ||
27 | res=$? | ||
28 | if test "$res" -eq 22; then | ||
29 | echo "Address the above issue(s), then restart!" | ||
30 | exit | ||
31 | fi | ||
32 | sleep 30 | ||
33 | done | ||