build: cleanup possibly dangling Python 2 host symlink wip/python3
authorPetr Štetiar <ynezz@true.cz>
Wed, 20 Mar 2019 08:52:58 +0000 (09:52 +0100)
committerPetr Štetiar <ynezz@true.cz>
Mon, 24 Jun 2019 09:59:55 +0000 (11:59 +0200)
commitb9be36c8a2258f9753c389bc9269debd4fc5d6af
treefbd5ff7c46926f79fdb5dce0c29526a8ab93de01
parent5df483a5292ebca2717250ca557f086c8b7b746d
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