]> code.ossystems Code Review - openembedded-core.git/commit
classes/waf: Fix builds when B != S
authorJoshua Watt <jpewhacker@gmail.com>
Sat, 1 Dec 2018 03:01:42 +0000 (21:01 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 5 Dec 2018 22:30:15 +0000 (22:30 +0000)
commit62dffb71ce22222c635bd90eaa47dd01f70f9c0f
treeefe0267c4bac0a8dd032ee84346745f16cfdb101
parent790828a65316fee57cd7659ad8b7544de5d2610c
classes/waf: Fix builds when B != S

Waf requires that the current working directory be ${S} (the location of
the wscript) when building. Most of the time, this was true only because
B defaults to S. However, anything that changed that behavior (notably,
using externalsrc) would break the recipe. Remedy this by explicitly
changing cwd to ${S} when running waf commands. As a happy side effect,
B can be set up for "out of tree" builds to keep the source directory
clean.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/waf.bbclass