From: Maxime Ripard Date: Fri, 18 Jan 2013 04:06:12 +0000 (+0000) Subject: python3: Point /usr/bin/python to python3 if python is not selected X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9976b37f86b03007efad8bb73e0fbd42e17add35;p=buildroot.git python3: Point /usr/bin/python to python3 if python is not selected Fixes #5702 Signed-off-by: Maxime Ripard Acked-by: Samuel Martin Signed-off-by: Peter Korsgaard --- diff --git a/package/python3/python3.mk b/package/python3/python3.mk index bcd83eaf69..0d54162e85 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))