Commit 9976b37f authored by Maxime Ripard's avatar Maxime Ripard Committed by Peter Korsgaard
Browse files

python3: Point /usr/bin/python to python3 if python is not selected

parent a686cff2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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))