You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.0 KiB

  1. From 54484e79aca0981ebc42ddc68487e6531da9b59d Mon Sep 17 00:00:00 2001
  2. From: Yousong Zhou <yszhou4tech@gmail.com>
  3. Date: Fri, 20 Mar 2020 15:11:31 +0800
  4. Subject: [PATCH] python: separate host/target python for cross-compile
  5. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
  6. ---
  7. Makefile.am | 2 +-
  8. m4/openvswitch.m4 | 2 ++
  9. 2 files changed, 3 insertions(+), 1 deletion(-)
  10. --- a/Makefile.am
  11. +++ b/Makefile.am
  12. @@ -60,7 +60,7 @@ endif
  13. # foo/__init__.pyc will cause Python to ignore foo.py.
  14. run_python = \
  15. PYTHONPATH=$(top_srcdir)/python$(psep)$$PYTHONPATH \
  16. - PYTHONDONTWRITEBYTECODE=yes $(PYTHON3)
  17. + PYTHONDONTWRITEBYTECODE=yes $(PYTHON3_HOST)
  18. ALL_LOCAL =
  19. BUILT_SOURCES =
  20. --- a/m4/openvswitch.m4
  21. +++ b/m4/openvswitch.m4
  22. @@ -383,6 +383,8 @@ else:
  23. AC_MSG_ERROR([Python 3.4 or later is required but not found in $PATH, please install it or set $PYTHON3 to point to it])
  24. fi
  25. AC_ARG_VAR([PYTHON3])
  26. + PYTHON3_HOST=$ovs_cv_python3_host
  27. + AM_MISSING_PROG([PYTHON3_HOST], [python3])
  28. PYTHON3=$ovs_cv_python3])
  29. dnl Checks for flake8.