build.sh: generate target list by `make list-targets`
This commit is contained in:
parent
e27448234b
commit
6737c22962
5
build.sh
5
build.sh
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
# environmental and build settings
|
# environmental and build settings
|
||||||
KEYFILE="${KEYFILE:-"$HOME/.ecdsakey"}"
|
KEYFILE="${KEYFILE:-"$HOME/.ecdsakey"}"
|
||||||
GLUON_TARGETS="${GLUON_TARGETS:-"ar71xx-generic ar71xx-nand mpc85xx-generic x86-generic x86-64"}"
|
|
||||||
GLUON_PRIORITY="${GLUON_PRIORITY:-7}"
|
GLUON_PRIORITY="${GLUON_PRIORITY:-7}"
|
||||||
|
|
||||||
# start of script
|
# start of script
|
||||||
|
@ -20,6 +19,10 @@ GLUON_DIR="${GLUON_SITEDIR}/gluon/"
|
||||||
cd "${GLUON_DIR}"
|
cd "${GLUON_DIR}"
|
||||||
make update V=s
|
make update V=s
|
||||||
|
|
||||||
|
if [ -z "${GLUON_TARGETS:-}" ]; then
|
||||||
|
GLUON_TARGETS="$(make list-targets)"
|
||||||
|
fi
|
||||||
|
|
||||||
for target in $GLUON_TARGETS; do
|
for target in $GLUON_TARGETS; do
|
||||||
echo "Building target ${target}"
|
echo "Building target ${target}"
|
||||||
make clean GLUON_TARGET="$target" V=s
|
make clean GLUON_TARGET="$target" V=s
|
||||||
|
|
Loading…
Reference in New Issue