diff options
author | Ross Burton <ross.burton@intel.com> | 2016-06-15 15:52:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-23 14:26:14 +0100 |
commit | e04da4b9541f229ad19d31178a5b171acb48a082 (patch) | |
tree | 20fb66a81b335cc28a45d570eaf4b953551de938 /meta/classes | |
parent | c2acd4e27d69b78af1af48825622877c9bebc392 (diff) | |
download | poky-e04da4b9541f229ad19d31178a5b171acb48a082.tar.gz |
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.
(From OE-Core rev: 14839515301754e0b512fe3054d95dabc77ad829)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/autotools.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 03a61c378d..1c884b494a 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -312,6 +312,10 @@ autotools_do_configure() { | |||
312 | fi | 312 | fi |
313 | } | 313 | } |
314 | 314 | ||
315 | autotools_do_compile() { | ||
316 | oe_runmake | ||
317 | } | ||
318 | |||
315 | autotools_do_install() { | 319 | autotools_do_install() { |
316 | oe_runmake 'DESTDIR=${D}' install | 320 | oe_runmake 'DESTDIR=${D}' install |
317 | # Info dir listing isn't interesting at this point so remove it if it exists. | 321 | # Info dir listing isn't interesting at this point so remove it if it exists. |
@@ -322,6 +326,6 @@ autotools_do_install() { | |||
322 | 326 | ||
323 | inherit siteconfig | 327 | inherit siteconfig |
324 | 328 | ||
325 | EXPORT_FUNCTIONS do_configure do_install | 329 | EXPORT_FUNCTIONS do_configure do_compile do_install |
326 | 330 | ||
327 | B = "${WORKDIR}/build" | 331 | B = "${WORKDIR}/build" |