meta-app-framework: add do_configure task in aglwgt.bbclass 89/24889/2
authorScott Murray <scott.murray@konsulko.com>
Fri, 26 Jun 2020 17:17:28 +0000 (13:17 -0400)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Sat, 27 Jun 2020 13:29:11 +0000 (13:29 +0000)
Add a placeholder stub do_configure to aglwgt.bbclass instead of
marking it as noexec to make things like externalsrc that bbappend or
add prefunc's to do_configure work.  For externalsrc specifically,
this fixes the creation of the convenience oe-logs and oe-workdir
symlinks.

Bug-AGL: SPEC-3300

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ice6bc23c21f2206963b258c57dac5045721fcfe5
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24889
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 4dd3fec..042c0fa 100644 (file)
@@ -75,7 +75,11 @@ python aglwgt_cmake_configure () {
         d.appendVarFlag("AGLWGT_EXTRA_BUILD_ARGS", "vardeps", " AGLWGT_CMAKE_CONFIGURE_ARGS")
 }
 
-do_configure[noexec] = "1"
+# Placeholder to keep things like externalsrc that prefunc or append
+# do_configure working as expected.
+aglwgt_do_configure() {
+    true
+}
 
 aglwgt_do_compile() {
     bldcmd=${S}/autobuild/agl/autobuild
@@ -176,4 +180,4 @@ FILES_${PN}-coverage = "/usr/AGL/apps/coverage/*.wgt"
 # Test widgets need the parent widget and the test framework
 RDEPENDS_${PN}-test = "${PN} afb-test"
 
-EXPORT_FUNCTIONS do_compile do_install
+EXPORT_FUNCTIONS do_configure do_compile do_install