]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools: ensure Makefile exists in do_compile
authorRoss Burton <ross.burton@intel.com>
Wed, 15 Jun 2016 14:52:52 +0000 (15:52 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Jun 2016 13:21:42 +0000 (14:21 +0100)
If a recipe is using the autotools class then presumably it is using Makefiles.
However the default do_compile() is forgiving and silently handles a missing
makefile, which means that if a recipe is using a hand-coded static Makefile
(e.g. git) but doesn't use brokensep the recipe will fail in do_install.

To make debugging this easier, override do_compile in autotools so that it fails
if a Makefile isn't present.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/autotools.bbclass

index 03a61c378d4049ab04810db92d14ad614d30cd76..1c884b494a95940a7b83382f8204c26b94c481dc 100644 (file)
@@ -312,6 +312,10 @@ autotools_do_configure() {
        fi
 }
 
+autotools_do_compile() {
+    oe_runmake
+}
+
 autotools_do_install() {
        oe_runmake 'DESTDIR=${D}' install
        # Info dir listing isn't interesting at this point so remove it if it exists.
@@ -322,6 +326,6 @@ autotools_do_install() {
 
 inherit siteconfig
 
-EXPORT_FUNCTIONS do_configure do_install
+EXPORT_FUNCTIONS do_configure do_compile do_install
 
 B = "${WORKDIR}/build"