Invert make/autobuild order 59/11359/4
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 17 Oct 2017 10:34:28 +0000 (10:34 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Sat, 21 Oct 2017 07:43:49 +0000 (07:43 +0000)
because make all create a package dir then 'make package' doesn't fails
so autobuild isn't executed. Invert the order keep compability and give
priority to the autobuild script.

Needed for gerrit review: 11297 about low-can service update

Change-Id: I54e1da827ec7254afbab7de5498421914832f460
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11359
Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-app-framework/classes/aglwgt.bbclass

index b208bab..ce566ab 100644 (file)
@@ -17,8 +17,8 @@ DEPENDS_append = " af-binder"
 
 do_aglwgt_package()  {
         cd ${B}
 
 do_aglwgt_package()  {
         cd ${B}
+        ${S}/conf.d/autobuild/agl/autobuild package BUILD_DIR=${B} DEST=${B}/package VERBOSE=TRUE || \
         make package || \
         make package || \
-        ${S}/conf.d/autobuild/agl/autobuild package BUILD_DIR=${B} DEST=${B}/package || \
         ( bbwarn "Your makefile must support the 'make package' target" ; \
           bbwarn "and generate a .wgt file using wgtpack in the"; \
           bbwarn "subfolder ./package/ !" ; \
         ( bbwarn "Your makefile must support the 'make package' target" ; \
           bbwarn "and generate a .wgt file using wgtpack in the"; \
           bbwarn "subfolder ./package/ !" ; \