Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

Commit

Permalink
some more explaining comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSpocky committed Jul 31, 2015
1 parent 34a80d3 commit 945ad66
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export GLUON_BRANCH GLUON_PRIORITY

# get GLUON_CHECKOUT from site dir
pushd ${SCRIPTDIR}
eval `make -s -f helper.mk`
eval $(make -s -f helper.mk)
echo -e "GLUON_CHECKOUT: \033[32m${GLUON_CHECKOUT}\033[0m"
echo -e "GLUON_BRANCH: \033[32m${GLUON_BRANCH}\033[0m"
echo -e "GLUON_RELEASE: \033[32m${GLUON_RELEASE}\033[0m"
Expand All @@ -92,7 +92,7 @@ done
sleep 1
echo

# build
# goto gluon dir
pushd ..

# ask if old images should be removed
Expand All @@ -109,9 +109,11 @@ then
rm -vrf images/factory images/sysupgrade
fi

# gather some information about current build tree before clean
OLD_OPENWRT_RELEASE=$(grep 'RELEASE:=' include/toplevel.mk | sed -e 's/RELEASE:=//')
OLD_TARGETS=$(make 2>/dev/null | grep '^ [*] ' | cut -d' ' -f3)

# prepare gluon tree
echo -e "\033[32mPreparing gluon build ...\033[0m"
for target in ${OLD_TARGETS}
do
Expand All @@ -130,7 +132,7 @@ done

make update $VERBOSE

# OpenWRT release branch check
# check OpenWRT release branch
NEW_OPENWRT_RELEASE=$(grep 'RELEASE:=' include/toplevel.mk | sed -e 's/RELEASE:=//')
if [ "${OLD_OPENWRT_RELEASE}" != "${NEW_OPENWRT_RELEASE}" ]
then
Expand All @@ -153,12 +155,14 @@ then
fi
echo -e "OpenWRT release branch: \033[32m${NEW_OPENWRT_RELEASE}\033[0m"

# loop through all targets and build them
for target in ${NEW_TARGETS}
do
echo -e "Starting to build target \033[32m${target}\033[0m ..."
make GLUON_TARGET=${target} -j4 $VERBOSE
done

# finalize
echo -e "\033[32mMaking manifest ...\033[0m"
make manifest $VERBOSE

Expand Down

0 comments on commit 945ad66

Please sign in to comment.