openvswitch: python: rework host and target dependency
authorYousong Zhou <yszhou4tech@gmail.com>
Wed, 28 Feb 2018 05:22:20 +0000 (13:22 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 5 Mar 2018 16:29:53 +0000 (00:29 +0800)
commitf53d452bd1c850443dbc419e9bee228c7d415cf9
treebdc50d6cdb9dee168815d26afc1fdaa5429a6720
parent5b56acae21340070c6b5b0d7be12c961e452648f
openvswitch: python: rework host and target dependency

Open vSwitch needs to run python on build machine to make build-time
required files.  python-six library is only required by the openvswitch
python library on target machine, not a build dependency.

We override host PYTHONPATH by overriding it in MAKE_VARS.  This way we
can remove 0003-override-pythonpath-via-make-vars.patch

This also fixes shebang wrongly pointing to python on host

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
net/openvswitch/Makefile
net/openvswitch/patches/0003-override-pythonpath-via-make-vars.patch [deleted file]
net/openvswitch/patches/0003-python-separate-host-target-python-for-cross-compile.patch [new file with mode: 0644]