[oe-commits] [openembedded-core] 04/38: autotools: ensure Makefile exists in do_compile

git at git.openembedded.org git at git.openembedded.org
Thu Jun 23 13:27:06 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 14839515301754e0b512fe3054d95dabc77ad829
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Wed Jun 15 15:52:52 2016 +0100

    autotools: ensure Makefile exists in do_compile
    
    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 at intel.com>
---
 meta/classes/autotools.bbclass | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 03a61c3..1c884b4 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list