2012-09-29 18:36:38 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-11-10 20:37:21 +01:00
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
|
2012-09-29 18:36:38 +02:00
|
|
|
builddir=./build
|
|
|
|
|
2016-02-27 13:23:49 +01:00
|
|
|
OPENWRTREV="a03a846c49c067048cd225d476a7adf91ef8ff03"
|
2015-10-25 16:26:20 +01:00
|
|
|
OPENWRTURL="git://git.openwrt.org/15.05/openwrt.git"
|
|
|
|
PACKAGEREV="ee0bb7b9df86cec0f1d7c27046c50b1fc45b7c4f"
|
2015-06-28 14:48:10 +02:00
|
|
|
PACKAGEURL="https://github.com/openwrt/packages.git"
|
2013-12-01 14:15:14 +01:00
|
|
|
|
2015-10-11 20:37:08 +02:00
|
|
|
## Feed definition [0]: name aka directory, [1]: url, [2]: revision, [3..n]: patches
|
2014-11-28 19:10:55 +01:00
|
|
|
|
|
|
|
#official openwrt packages
|
|
|
|
OPENWRT=(openwrt
|
2015-06-28 14:35:15 +02:00
|
|
|
$PACKAGEURL
|
|
|
|
$PACKAGEREV)
|
2015-12-13 22:16:09 +01:00
|
|
|
OPENWRT_PKGS="gpioctl-sysfs libugpio fastd haserl"
|
2014-11-28 19:10:55 +01:00
|
|
|
|
2015-07-17 18:47:12 +02:00
|
|
|
## Be careful: FFF uses COMPAT_VERSION 14 at the moment.
|
2015-10-13 21:57:34 +02:00
|
|
|
## See http://www.open-mesh.org/projects/batman-adv/wiki/Compatversion
|
|
|
|
BATMAN_ADV=(batman_adv
|
2015-10-25 16:26:23 +01:00
|
|
|
https://github.com/freifunk-gluon/packages.git
|
2016-01-24 19:41:18 +01:00
|
|
|
bdb56bba02168a7fdd7c8bbf380ae59a4febac7c)
|
2016-01-30 11:59:45 +01:00
|
|
|
BATMAN_ADV_PKGS="kmod-batman-adv-legacy micrond simple-tc uradvd"
|
2015-10-13 21:57:34 +02:00
|
|
|
|
|
|
|
#official openwrt routing packages
|
2014-11-28 19:10:55 +01:00
|
|
|
ROUTING=(routing
|
|
|
|
https://github.com/openwrt-routing/packages.git
|
2015-10-25 16:26:22 +01:00
|
|
|
e870c3373eea80df852d42fac3f40aaffd7a0f58)
|
2015-10-13 21:57:34 +02:00
|
|
|
ROUTING_PKGS="alfred"
|
2014-11-28 19:10:55 +01:00
|
|
|
|
2015-12-06 13:42:19 +01:00
|
|
|
FFF=(fff)
|
|
|
|
FFF_PKGS="-a"
|
|
|
|
|
|
|
|
FEEDS=(OPENWRT ROUTING BATMAN_ADV FFF)
|
2013-12-01 14:15:14 +01:00
|
|
|
|
2014-11-23 23:39:27 +01:00
|
|
|
checkout_git(){
|
2015-07-17 18:47:16 +02:00
|
|
|
local DIRECTORY=$1
|
|
|
|
local REPO_URL=$2
|
|
|
|
local COMMITID=$3
|
|
|
|
|
|
|
|
local MYGIT="git -C $DIRECTORY"
|
|
|
|
echo "checking out $REPO_URL to $DIRECTORY in version $COMMITID"
|
|
|
|
if [ -d "$DIRECTORY" ]; then
|
|
|
|
if $MYGIT remote -v | grep -q "$REPO_URL" ; then
|
|
|
|
echo "Right remote detected"
|
|
|
|
if ! $MYGIT checkout "$COMMITID" ; then
|
|
|
|
echo "commitid not found trying to fetch new commits"
|
|
|
|
$MYGIT pull && $MYGIT checkout "$COMMITID"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "wrong remote or not an git repo at all -> deleting whole directory"
|
|
|
|
/bin/rm -rf "$DIRECTORY"
|
|
|
|
#needs to be without -C!!!
|
|
|
|
git clone "$REPO_URL" "$DIRECTORY"
|
|
|
|
$MYGIT checkout "$COMMITID"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "We need to do a fresh checkout"
|
|
|
|
#needs to be without -C!!!
|
|
|
|
git clone "$REPO_URL" "$DIRECTORY"
|
|
|
|
$MYGIT checkout "$COMMITID"
|
|
|
|
fi
|
2014-11-23 23:39:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
get_source() {
|
2015-07-17 18:47:16 +02:00
|
|
|
test -d src || mkdir src
|
|
|
|
cd src
|
|
|
|
|
|
|
|
#Get the OpenWrt Core Source for Firmware
|
|
|
|
checkout_git openwrt $OPENWRTURL $OPENWRTREV
|
|
|
|
|
2016-01-24 21:01:05 +01:00
|
|
|
git -C openwrt am ../../build_patches/ar71xx-add-support-for-TP-Link-TL-WR1043ND-v3.patch
|
|
|
|
|
2015-07-17 18:47:16 +02:00
|
|
|
test -d packages || mkdir packages
|
|
|
|
cd packages
|
|
|
|
|
|
|
|
#checkout needed package feeds
|
|
|
|
for FEEDVAR in "${FEEDS[@]}" ; do
|
|
|
|
FEED="${FEEDVAR}[@]"
|
|
|
|
FEED=("${!FEED}")
|
|
|
|
|
|
|
|
local NAME=${FEED[0]}
|
|
|
|
local URL=${FEED[1]}
|
|
|
|
local REV=${FEED[2]}
|
|
|
|
|
2015-12-06 13:42:17 +01:00
|
|
|
if [ -n "$URL" ] && [ -n "$REV" ]; then
|
|
|
|
checkout_git "$NAME" "$URL" "$REV"
|
|
|
|
|
|
|
|
# Patches for feeds could be stored in known directories like build_patches/$NAME/
|
|
|
|
# That way multiple patches for one feed could be supported
|
|
|
|
count=3
|
|
|
|
while [ "x${FEED[count]}" != "x" ]
|
|
|
|
do
|
|
|
|
local PATCH=${FEED[count]}
|
|
|
|
if [ ! -z "$PATCH" ] ; then
|
|
|
|
echo "Patching $PATCH"
|
|
|
|
git -C "$NAME" am --whitespace=nowarn "$PATCH"
|
|
|
|
else
|
|
|
|
echo "Warning, $PATCH not found."
|
|
|
|
fi
|
|
|
|
count=$(( count + 1 ))
|
|
|
|
done
|
|
|
|
fi
|
2015-07-17 18:47:16 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
cd .. # packages
|
|
|
|
cd .. # src
|
2013-12-01 14:15:14 +01:00
|
|
|
}
|
|
|
|
|
2012-09-29 18:36:38 +02:00
|
|
|
prepare() {
|
2015-07-17 18:47:16 +02:00
|
|
|
get_source
|
|
|
|
|
|
|
|
test -d $builddir || mkdir $builddir
|
|
|
|
|
|
|
|
/bin/rm -rf "$target"
|
|
|
|
cp -a src/openwrt "$target"
|
|
|
|
|
|
|
|
## generate own feeds.conf
|
|
|
|
#this local variable should be globally configure variable used in get_source and here
|
|
|
|
local PACKAGEBASE=${PWD}/src/packages
|
|
|
|
rm -f "$target"/feeds.conf
|
|
|
|
for FEEDVAR in "${FEEDS[@]}" ; do
|
|
|
|
FEED="${FEEDVAR}[@]"
|
|
|
|
FEED=("${!FEED}")
|
|
|
|
local NAME=${FEED[0]}
|
|
|
|
echo "adding $NAME to package feeds"
|
|
|
|
echo src-link "$NAME" "$PACKAGEBASE"/"$NAME" >> "$target"/feeds.conf
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "cleaning feeds"
|
|
|
|
/bin/rm -rf "$target"/feeds
|
|
|
|
|
|
|
|
"$target"/scripts/feeds update
|
|
|
|
|
|
|
|
for FEEDVAR in "${FEEDS[@]}" ; do
|
|
|
|
FEED="${FEEDVAR}[@]"
|
|
|
|
FEED=("${!FEED}")
|
|
|
|
local NAME=${FEED[0]}
|
|
|
|
local PACKAGESVAR="${FEEDVAR}_PKGS"
|
|
|
|
PACKAGESVAR="${PACKAGESVAR}[@]"
|
|
|
|
PACKAGESVAR=(${!PACKAGESVAR})
|
|
|
|
|
|
|
|
if [[ -n "${PACKAGESVAR[@]}" ]] ; then
|
|
|
|
echo "adding ${PACKAGESVAR[*]} from feed $NAME to available packages"
|
|
|
|
"$target"/scripts/feeds install -p "$NAME" "${PACKAGESVAR[@]}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# todo evaluate this with the new openwrt
|
2016-01-28 00:30:56 +01:00
|
|
|
# This changes the default behavior of sysupgrade to not save the config
|
2015-07-17 18:47:16 +02:00
|
|
|
patch -p0 -d "$target" -i "$PWD"/build_patches/sysupgrade_no_config_save.patch
|
|
|
|
|
2015-12-11 22:23:06 +01:00
|
|
|
# set default password to 'ffol'
|
|
|
|
patch -p0 -d "$target" -i "$PWD"/build_patches/set_root_password.patch
|
|
|
|
|
2016-01-29 20:59:20 +01:00
|
|
|
#add Support for GL-AR150 see also http://git.openwrt.org/?p=openwrt.git;a=commit;h=8211e81bce57392635fa3ad6572514387118e4a5
|
|
|
|
patch -p0 -d "$target" -i "$PWD"/build_patches/ar71xx-add-support-for-GL-AR150.patch
|
|
|
|
|
2015-07-17 18:47:16 +02:00
|
|
|
#saves ~200MB for each build
|
|
|
|
test -d ./src/dl || mkdir ./src/dl
|
|
|
|
ln -s ../../src/dl "$target"/dl
|
|
|
|
|
|
|
|
board_prepare
|
2012-09-29 18:36:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
prebuild() {
|
2015-07-17 18:47:16 +02:00
|
|
|
#create filesdir for our config
|
|
|
|
/bin/rm -rf "$target"/files
|
|
|
|
mkdir "$target"/files
|
|
|
|
|
|
|
|
cp -r ./bsp/default/root_file_system/* "$target"/files/
|
|
|
|
cp -r ./bsp/"$machine"/root_file_system/* "$target"/files/
|
|
|
|
cp ./bsp/"$machine"/.config "$target"/.config
|
|
|
|
|
|
|
|
board_prebuild
|
|
|
|
|
2016-01-04 16:36:59 +01:00
|
|
|
while IFS= read -r -d '' template
|
2015-07-17 18:47:16 +02:00
|
|
|
do
|
|
|
|
echo "Translating $template .."
|
|
|
|
$tpl_translate "$template" > "$(dirname "$template")"/"$(basename "$template" .tpl)"
|
|
|
|
/bin/rm "$template"
|
2016-01-04 16:36:59 +01:00
|
|
|
done < <(find "${target}/files" -name '*.tpl' -print0)
|
2015-07-17 18:47:16 +02:00
|
|
|
|
|
|
|
#insert actual firware version informations into release file
|
|
|
|
version=$(git describe --tags --dirty)
|
2015-11-21 22:46:28 +01:00
|
|
|
community=$(basename "$(realpath selected_community)" .cfg)
|
2015-07-17 18:47:16 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
echo "FIRMWARE_VERSION=\"$version\""
|
2015-11-21 22:46:28 +01:00
|
|
|
echo "FIRMWARE_COMMUNITY=\"$community\""
|
2015-07-17 18:47:16 +02:00
|
|
|
echo "BUILD_DATE=\"build date: $(date)\""
|
|
|
|
echo "OPENWRT_CORE_REVISION=\"${OPENWRTREV}\""
|
|
|
|
echo "OPENWRT_FEEDS_PACKAGES_REVISION=\"${PACKAGEREV}\""
|
|
|
|
} > "$target"/files/etc/firmware_release
|
2015-12-06 13:42:20 +01:00
|
|
|
|
|
|
|
opath=$(pwd)
|
|
|
|
cd "$target"
|
|
|
|
make defconfig
|
|
|
|
cd "$opath"
|
2012-09-29 18:36:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2015-07-17 18:47:16 +02:00
|
|
|
prebuild
|
|
|
|
|
|
|
|
opath=$(pwd)
|
|
|
|
cd "$target"
|
|
|
|
cpus=$(grep -c processor /proc/cpuinfo)
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
"debug")
|
|
|
|
make V=99
|
|
|
|
;;
|
|
|
|
"fast")
|
|
|
|
ionice -c 2 -- nice -n 1 -- make -j $((cpus*2))
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
ionice -c 3 -- nice -n 10 -- make -j $((cpus+1))
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
cd "$opath"
|
|
|
|
|
|
|
|
if [ ! -d bin ]; then
|
|
|
|
mkdir bin
|
|
|
|
fi
|
|
|
|
|
|
|
|
postbuild
|
2012-09-29 18:36:38 +02:00
|
|
|
}
|
|
|
|
|
2013-12-01 14:15:16 +01:00
|
|
|
config() {
|
2015-07-17 18:47:16 +02:00
|
|
|
prebuild
|
|
|
|
|
|
|
|
opath=$(pwd)
|
|
|
|
cd "$target"
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
"openwrt")
|
|
|
|
make menuconfig
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
save=""
|
|
|
|
until [ "$save" = "y" -o "$save" = "n" ]; do
|
|
|
|
echo "Do you want to save the generated config? (y/n)"
|
|
|
|
read save
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ "$save" = "y" ]; then
|
|
|
|
case "$1" in
|
|
|
|
"openwrt")
|
2015-12-06 14:08:51 +01:00
|
|
|
echo "# Generated using \"./buildscript config openwrt\"." > "$opath"/bsp/"$machine"/.config
|
|
|
|
echo "# Do no edit manually" >> "$opath"/bsp/"$machine"/.config
|
|
|
|
echo "#" >> "$opath"/bsp/"$machine"/.config
|
|
|
|
./scripts/diffconfig.sh >> "$opath"/bsp/"$machine"/.config
|
2015-07-17 18:47:16 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
2015-12-06 14:08:51 +01:00
|
|
|
|
|
|
|
cd "$opath"
|
2013-12-01 14:15:16 +01:00
|
|
|
}
|
|
|
|
|
2012-09-29 18:36:38 +02:00
|
|
|
postbuild() {
|
2015-07-17 18:47:16 +02:00
|
|
|
board_postbuild
|
2012-09-29 18:36:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
clean() {
|
2015-07-17 18:47:16 +02:00
|
|
|
board_clean
|
2015-12-06 13:42:16 +01:00
|
|
|
/bin/rm -rf bin $builddir src/openwrt
|
|
|
|
|
|
|
|
# remove downloaded package feeds
|
|
|
|
for FEEDVAR in "${FEEDS[@]}" ; do
|
|
|
|
FEED="${FEEDVAR}[@]"
|
|
|
|
FEED=("${!FEED}")
|
|
|
|
|
|
|
|
local NAME=${FEED[0]}
|
2015-12-06 13:42:17 +01:00
|
|
|
local URL=${FEED[1]}
|
|
|
|
local REV=${FEED[2]}
|
2015-12-06 13:42:16 +01:00
|
|
|
|
2015-12-06 13:42:17 +01:00
|
|
|
if [ -n "$URL" ] && [ -n "$REV" ]; then
|
|
|
|
/bin/rm -rf src/packages/"$NAME"
|
|
|
|
fi
|
2015-12-06 13:42:16 +01:00
|
|
|
done
|
2012-09-29 18:36:38 +02:00
|
|
|
}
|
|
|
|
|
2013-09-19 20:40:28 +02:00
|
|
|
buildall() {
|
2015-07-17 18:47:16 +02:00
|
|
|
for bsp in $(/bin/ls bsp/*.bsp); do
|
|
|
|
./buildscript selectcommunity "$1"
|
|
|
|
./buildscript selectbsp "$bsp"
|
|
|
|
./buildscript prepare
|
|
|
|
./buildscript build "$2"
|
|
|
|
done
|
2013-09-19 20:40:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if [ "$1" != "selectbsp" -a "$1" != "selectcommunity" -a "$1" != "buildall" ]; then
|
2015-07-17 18:47:16 +02:00
|
|
|
if [ ! -h selected_bsp ]; then
|
|
|
|
echo "Please select a Board-Support-Package using:"
|
|
|
|
echo "$0 selectbsp"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
if [ ! -h selected_community ]; then
|
|
|
|
echo "Please select a community file using:"
|
|
|
|
echo "$0 selectcommunity"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
echo "Working with $(/bin/ls -l selected_bsp | awk '{ print $11 }') and" \
|
|
|
|
"$(/bin/ls -l selected_community | awk '{ print $11 }')"
|
|
|
|
. selected_bsp
|
|
|
|
tpl_translate=$(awk -F= 'BEGIN{printf("sed")} /^.+$/{gsub("/", "\\/", $0); printf(" -es/\\${%s}/%s/g",$1,$2)}' selected_community)
|
|
|
|
echo
|
2012-09-29 18:36:38 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
case "$1" in
|
2015-07-17 18:47:16 +02:00
|
|
|
"selectbsp")
|
|
|
|
if [ "$2" = "help" ] || [ "$2" = "" ]; then
|
|
|
|
echo "Select a Board-Support-Package:"
|
|
|
|
echo
|
2016-01-28 00:30:56 +01:00
|
|
|
echo "Usage: $0 $1 <bsp-file>"
|
2015-07-17 18:47:16 +02:00
|
|
|
echo "available packages:"
|
|
|
|
/bin/ls bsp/*.bsp
|
2016-01-28 00:30:56 +01:00
|
|
|
echo
|
2015-07-17 18:47:16 +02:00
|
|
|
else
|
|
|
|
if [ ! -f "$2" ]; then
|
|
|
|
echo "Could not find $2"
|
|
|
|
else
|
|
|
|
/bin/rm -rf selected_bsp
|
|
|
|
/bin/ln -s "$2" selected_bsp
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
"selectcommunity")
|
|
|
|
if [ "$2" = "help" ] || [ "$2" = "" ]; then
|
|
|
|
echo "Select a Community-File:"
|
|
|
|
echo
|
2016-01-28 00:30:56 +01:00
|
|
|
echo "Usage: $0 $1 <community-file>"
|
|
|
|
echo "available community-files: "
|
2015-07-17 18:47:16 +02:00
|
|
|
/bin/ls community/*.cfg
|
2016-01-28 00:30:56 +01:00
|
|
|
echo
|
2015-07-17 18:47:16 +02:00
|
|
|
else
|
|
|
|
if [ ! -f "$2" ]; then
|
|
|
|
echo "Could not find $2"
|
|
|
|
else
|
|
|
|
/bin/rm -rf selected_community
|
|
|
|
/bin/ln -s "$2" selected_community
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
"prepare")
|
|
|
|
if [ "$2" = "help" ] || [ "$2" = "x" ]; then
|
|
|
|
echo "This option fetches the sources for the images and configurates the build so that it can be compiled"
|
2016-01-28 00:30:56 +01:00
|
|
|
echo
|
2015-07-17 18:47:16 +02:00
|
|
|
echo "Usage: $0 $1"
|
2016-01-28 00:30:56 +01:00
|
|
|
echo
|
2015-07-17 18:47:16 +02:00
|
|
|
else
|
|
|
|
prepare
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
"build")
|
|
|
|
if [ "$2" = "help" ] || [ "$2" = "x" ]; then
|
|
|
|
echo "This option compiles the firmware"
|
|
|
|
echo "Normaly the build uses lower IO and System priorities, "
|
|
|
|
echo "you can append \"fast\" option, to use normal user priorities"
|
2016-01-28 00:30:56 +01:00
|
|
|
echo
|
2015-07-17 18:47:16 +02:00
|
|
|
echo "Usage: $0 $1 [fast|debug]"
|
2016-01-28 00:30:56 +01:00
|
|
|
echo
|
2015-07-17 18:47:16 +02:00
|
|
|
else
|
|
|
|
build "$2"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
"config")
|
|
|
|
case "$2" in
|
|
|
|
openwrt)
|
|
|
|
config openwrt
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "This open the OpenWRT menuconfig dialog"
|
|
|
|
echo
|
2015-12-06 13:42:22 +01:00
|
|
|
echo "Usage: $0 $1 openwrt"
|
2016-01-28 00:30:56 +01:00
|
|
|
echo
|
2015-07-17 18:47:16 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
"clean")
|
|
|
|
if [ "$2" = "help" ] || [ "$2" = "x" ]; then
|
|
|
|
echo "This option cleans all build files."
|
2016-01-28 00:30:56 +01:00
|
|
|
echo
|
|
|
|
echo "Usage: $0 $1"
|
|
|
|
echo
|
2015-07-17 18:47:16 +02:00
|
|
|
else
|
|
|
|
clean
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
"buildall")
|
|
|
|
if [ "$2" = "help" ] || [ "$2" = "" ]; then
|
|
|
|
echo "This option builds the firmware for all routers of a given community."
|
2016-01-28 00:30:56 +01:00
|
|
|
echo
|
|
|
|
echo "Usage: $0 $1 <community-file> [fast]"
|
|
|
|
echo "available community-files: "
|
2015-07-17 18:47:16 +02:00
|
|
|
/bin/ls community/*.cfg
|
2016-01-28 00:30:56 +01:00
|
|
|
echo
|
2015-07-17 18:47:16 +02:00
|
|
|
else
|
|
|
|
buildall "$2" "$3"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "This is the Build Environment Script of the Freifunk Community Franken."
|
2016-01-28 00:30:56 +01:00
|
|
|
echo
|
2015-07-17 18:47:16 +02:00
|
|
|
echo "Usage: $0 command"
|
|
|
|
echo "command:"
|
2016-01-28 00:30:56 +01:00
|
|
|
echo " selectcommunity <community-file>"
|
|
|
|
echo " selectbsp <bsp-file>"
|
2015-07-17 18:47:16 +02:00
|
|
|
echo " prepare"
|
2016-01-28 00:30:56 +01:00
|
|
|
echo " config openwrt"
|
|
|
|
echo " build [fast|debug]"
|
|
|
|
echo " buildall <community-file> [fast]"
|
2015-07-17 18:47:16 +02:00
|
|
|
echo " clean"
|
|
|
|
echo ""
|
2016-01-28 00:30:56 +01:00
|
|
|
echo "If you need help to one of these options just type: $0 <command> help"
|
|
|
|
echo
|
2015-07-17 18:47:16 +02:00
|
|
|
;;
|
2012-09-29 18:36:38 +02:00
|
|
|
esac
|