summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2013-01-18 04:06:12 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-01-20 20:30:26 (GMT)
commit9976b37f86b03007efad8bb73e0fbd42e17add35 (patch)
treefca6d9c3e2b0459cbf0f2708e69eff48040044fd
parenta686cff2019611f84cc58e9a0fc5d11381a113b4 (diff)
downloadbuildroot-9976b37f86b03007efad8bb73e0fbd42e17add35.tar.gz
buildroot-9976b37f86b03007efad8bb73e0fbd42e17add35.tar.bz2
python3: Point /usr/bin/python to python3 if python is not selected
Fixes #5702 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/python3/python3.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index bcd83ea..0d54162 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -148,5 +148,12 @@ PYTHON3_POST_INSTALL_TARGET_HOOKS += PYTHON3_REMOVE_USELESS_FILES
PYTHON3_AUTORECONF = YES
+define PYTHON3_INSTALL_SYMLINK
+ ln -fs python3 $(TARGET_DIR)/usr/bin/python
+endef
+
+ifneq ($(BR2_PACKAGE_PYTHON),y)
+PYTHON3_POST_INSTALL_TARGET_HOOKS += PYTHON3_INSTALL_SYMLINK
+endif
$(eval $(autotools-package))
$(eval $(host-autotools-package))