]> code.ossystems Code Review - openembedded-core.git/commit
waf.bbclass: cd to ${S} before checking version
authorJoshua Watt <jpewhacker@gmail.com>
Wed, 31 Jan 2018 19:49:56 +0000 (13:49 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 6 Feb 2018 10:54:34 +0000 (10:54 +0000)
commitaa168ee7f785ff007ca645db57698883922b5eb3
tree666462125e72954e34063017d7d5afd2edddd041
parent061e04cb6335a10f560e57255b7335b8c9891207
waf.bbclass: cd to ${S} before checking version

waf requires that the current working directory be the project root (in
this case ${S} when it is invoked. The check to get the waf version was
being executed as a prefunc for do_configure, which meant it was
executed before the current working directory was switched to ${S}, and
thus would fail with some recipes. Fix this by changing to ${S} before
executing "waf --version"

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/waf.bbclass