build: cleanup possibly dangling Python 2 host symlink
authorPetr Štetiar <ynezz@true.cz>
Wed, 20 Mar 2019 08:52:58 +0000 (09:52 +0100)
committerPetr Štetiar <ynezz@true.cz>
Fri, 26 Jul 2019 06:09:16 +0000 (08:09 +0200)
commit3b68fb57c938af3948ae4c2da61501183fbef649
tree80b7edef9aa1cf1d443edc05739301ba99f39faa
parent19938c8de7a062626796f53a2805608c0dd4edbd
build: cleanup possibly dangling Python 2 host symlink

When bumping buildroot to Python 3, we need to assure, that Python
symlink in staging bin directory points to Python >= 3.5 as well.

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.

Acked-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
include/prereq-build.mk
include/prereq.mk