diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2013-01-18 04:06:12 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-01-20 21:30:26 +0100 |
commit | 9976b37f86b03007efad8bb73e0fbd42e17add35 (patch) | |
tree | fca6d9c3e2b0459cbf0f2708e69eff48040044fd | |
parent | a686cff2019611f84cc58e9a0fc5d11381a113b4 (diff) | |
download | buildroot-novena-9976b37f86b03007efad8bb73e0fbd42e17add35.tar.gz buildroot-novena-9976b37f86b03007efad8bb73e0fbd42e17add35.zip |
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.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/package/python3/python3.mk b/package/python3/python3.mk index bcd83eaf6..0d54162e8 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)) |