build: fixup python SetupHostCommand to use python2
authorEtienne Champetier <champetier.etienne@gmail.com>
Thu, 31 Oct 2019 10:54:59 +0000 (03:54 -0700)
committerRISCi_ATOM <bob@bobcall.me>
Sat, 9 Nov 2019 20:00:17 +0000 (15:00 -0500)
commitc483b58653db2766f9d72242a87c25fcf07dd8a9
tree14d093037599f723e2dc259fb45a4923090b4b8c
parent31f36e095d8dbd2258f8c5f17957552209606df0
build: fixup python SetupHostCommand to use python2

Here is a way to break your build env without this patch:
1) have python point to python3, and no python2
2) start the build, SetupHostCommand will create a symlink
./staging_dir/host/bin/python -> /usr/bin/python
3) build fails on scons because it can't find any python2
4) install python2 and restart the build
5) the build fails on wireless-regdb compile because python is python3 instead of python

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
include/prereq-build.mk