]> code.ossystems Code Review - openembedded-core.git/commit
classes/externalsrc: re-run do_configure when configure files change
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 11 Oct 2016 21:33:47 +0000 (10:33 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Oct 2016 22:04:38 +0000 (23:04 +0100)
commit923fc20c2862a6d75f949082c9f6532ab7e2d2cd
tree6e58fcb02396562785b1013ca0f25c7f9c71bfad
parentdc3964f1c3457cc1265d1ed0095c0c491a97b47f
classes/externalsrc: re-run do_configure when configure files change

If the user modifies files such as CMakeLists.txt in the case of cmake,
we want do_configure to re-run so that those changes can take effect. In
order to accomplish that, have a variable CONFIGURE_FILES which
specifies a list of files that will be put into do_configure's checksum
(either full paths, or just filenames which will be searched for in the
entire source tree). CONFIGURE_FILES then just needs to be set
appropriately depending on what do_configure is doing; for now I've set
this for autotools and cmake which are the most common cases.

Fixes [YOCTO #7617].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/autotools.bbclass
meta/classes/cmake.bbclass
meta/classes/externalsrc.bbclass