forked from freifunk-franken/firmware
Add buildall option to buildscript that builds the firmware images for all routers for a given community
Signed-off-by: Clemens John <clemens-john@gmx.de>
This commit is contained in:
parent
18b82b58a8
commit
f0760da2f5
22
buildscript
22
buildscript
|
@ -113,6 +113,16 @@ clean() {
|
||||||
/bin/rm -rf bin $builddir
|
/bin/rm -rf bin $builddir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildall() {
|
||||||
|
for bsp in $(/bin/ls bsp/*.bsp)
|
||||||
|
do
|
||||||
|
./buildscript selectcommunity $1
|
||||||
|
./buildscript selectbsp $bsp
|
||||||
|
./buildscript prepare
|
||||||
|
./buildscript build
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
routers() {
|
routers() {
|
||||||
echo "router-types: "
|
echo "router-types: "
|
||||||
echo " dir300"
|
echo " dir300"
|
||||||
|
@ -125,7 +135,7 @@ routers() {
|
||||||
echo " wr1043nd"
|
echo " wr1043nd"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" != "selectbsp" -a "$1" != "selectcommunity" ]; then
|
if [ "$1" != "selectbsp" -a "$1" != "selectcommunity" -a "$1" != "buildall" ]; then
|
||||||
if [ ! -h selected_bsp ]; then
|
if [ ! -h selected_bsp ]; then
|
||||||
echo "Please select a Board-Support-Package using:"
|
echo "Please select a Board-Support-Package using:"
|
||||||
echo "$0 selectbsp"
|
echo "$0 selectbsp"
|
||||||
|
@ -231,6 +241,16 @@ case "$1" in
|
||||||
clean
|
clean
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
"buildall")
|
||||||
|
if [ "$2" = "help" ] || [ "$2" = "" ]; then
|
||||||
|
echo "This option builds the firmware for all routers of a given community."
|
||||||
|
echo "Usage: $0 $1 community.cfg"
|
||||||
|
echo "community.cfg: "
|
||||||
|
/bin/ls community/*.cfg
|
||||||
|
else
|
||||||
|
buildall $2
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "This is the Build Environment Script of the Freifunk Community Oldenburg."
|
echo "This is the Build Environment Script of the Freifunk Community Oldenburg."
|
||||||
echo "Usage: $0 command"
|
echo "Usage: $0 command"
|
||||||
|
|
Loading…
Reference in New Issue