From 02a69857994afe608cdb08ee2c51e61afa2952c7 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 21 Jul 2019 18:17:37 -0400 Subject: 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 --- tools/docker_rbclient/runclient_modified.sh | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tools/docker_rbclient/runclient_modified.sh (limited to 'tools/docker_rbclient/runclient_modified.sh') 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 @@ +#!/bin/sh +trap "exit" INT + +USER=$1 +PASS=$2 +NAME=$3 +ARCHLIST=arm-eabi-gcc444,arm-rb-gcc494,sh,m68k-gcc452,mipsel-gcc494,mipsel-rb-gcc494,sdl,latex + +while true +do + if [ -f "rbclient.pl.new" ]; then + mv "rbclient.pl.new" "rbclient.pl" + fi + # Possible values for archlist are: + + # arm-eabi-gcc444 : needed for ARM-based traditional targets + # arm-rb-gcc494 : linux based sony players, Samsung YP-R0 YP-R1 + # sh : SH-based players, i.e. the Archoses + # m68k-gcc452 : coldfire-based players + # mipsel-gcc494 : MIPS-based players + # mipsel-rb-gcc494: linux based MIPS players i.e Agptek Rocker (Benjie T6) + # sdl : Non-crosscompiled targets. Simulators, application, checkwps, database tool, ... + # android16 : Android port + # latex : manuual + + perl -s rbclient.pl -username=$USER -password=$PASS -clientname=$NAME -archlist=$ARCHLIST -buildmaster=buildmaster.rockbox.org -port=19999 + res=$? + if test "$res" -eq 22; then + echo "Address the above issue(s), then restart!" + exit + fi + sleep 30 +done -- cgit v1.2.3