]> code.ossystems Code Review - openembedded-core.git/commit
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)
commit14839515301754e0b512fe3054d95dabc77ad829
treed6af4ec3254668aeea60f91f6870f1729d630195
parent5665e284b7e7ee071201664dc50a3412bd4ac8cd
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@intel.com>
meta/classes/autotools.bbclass