build: cleanup possibly dangling Python 3 host symlink
authorEtienne Champetier <champetier.etienne@gmail.com>
Fri, 8 Nov 2019 14:58:01 +0000 (06:58 -0800)
committerPetr Štetiar <ynezz@true.cz>
Sat, 9 Nov 2019 07:27:58 +0000 (08:27 +0100)
commitc1d19b37d5ccda858c24b5ab4f7ad9ba30552c5a
tree03ba4d4a8f0f2441266db4f9ae180f31b68210c9
parentdfd8c3bfdccfde7b84735aafd7b2c69cc4d9b087
build: cleanup possibly dangling Python 3 host symlink

When switching from master branch to 19.07 or older, we need to ensure
that Python symlink in staging bin directory points to Python 2.

We can't rely completly just on SetupHostCommand as its executed only in
cases when the $(STAGING_DIR_HOST)/bin/python doesn't already exist, so
we need to remove it before running SetupHostCommand.

This is a cherry-pick of 3b68fb57c938af3948ae4c2da61501183fbef649
with python3 instead of python2

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
(cherry picked from commit 799de7c641ffa98323929a20a8d92c7cc4ebb251)
include/prereq-build.mk
include/prereq.mk