scripts/build: add --all support using build config

This commit is contained in:
MilhouseVH 2018-02-22 12:11:39 +00:00
parent 1e4f6dc107
commit ccd4458425

View File

@ -20,6 +20,15 @@
. config/options $1
if [ "$1" = "--all" ]; then
if [ ! -z "$2" ]; then
for build_dir in $(ls -1d ${ROOT}/build.*); do
load_build_config ${build_dir} && ./scripts/build $2
done
fi
exit 0
fi
if [ -z "$1" ]; then
echo "usage: $0 package_name[:<host|target|init|bootstrap>]"
exit 1