02a6985799
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
33 lines
1 KiB
Bash
33 lines
1 KiB
Bash
#!/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
|