]> code.ossystems Code Review - openembedded-core.git/commit
waf: don't assume the waf intepretter is good
authorRoss Burton <ross@burtonini.com>
Fri, 16 Oct 2020 09:21:21 +0000 (10:21 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 17 Oct 2020 22:22:15 +0000 (23:22 +0100)
commit802e80d35e6374b9b80f89068d00b84fe2d04ca1
tree6df831ae03a85fe4622533ee245e975055f5ab9f
parente218c2d8973ed9978eed279dd167779e459f1eb0
waf: don't assume the waf intepretter is good

Waf typically uses `python` as the intepretter but inside a task this
does not exist.  Typically this is solved by patching waf (see the
glmark2 recipe) but not all versionf of Waf support Python 3 so we can't
assume a specific interpretter.

Instead, create a new variable WAF_PYTHON for the correct interpretter,
and default this to `python3`.  If the user has a recipe that needs
Python 2 then this can be changed in the recipe.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/waf.bbclass