It could be useful to not commit the autobuild script in the repository then you'll
always use a generated autobuild script. Doing so you always use the most up-to-date
autobuild script following the upstream version.
If the script hasn't been generated during the build then fallback to the classic method
'make package'.
Bug-AGL: SPEC-1832
Change-Id: I6a5e72ebb9254c7140e6ad7c31e02ba06fe2e0e0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
pushd build
cmake ../
make
- make package || true
+ if test x"0" = x"$DONE" -a -f ../conf.d/autobuild/agl/autobuild ; then
+ ../conf.d/autobuild/agl/autobuild package DEST=$(pwd)/package
+ export isAUTOBUILD=1
+ else
+ make package || true
+ fi
popd
export isCMAKE=1
export DONE=1