openswitch: improve build time for kmod-only builds 3658/head
authorJo-Philipp Wich <jo@mein.io>
Fri, 16 Dec 2016 00:14:54 +0000 (01:14 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 16 Dec 2016 01:57:26 +0000 (02:57 +0100)
commitbf7ef2af120914598aa9b177ab0960a605c214f0
treee31926daf8f205eba28142efbe6205adceb4a4ea
parentc2f712935d272dcf23cb58497a74988a5624e0ed
openswitch: improve build time for kmod-only builds

When only kmod-openvswitch is enabled, which commonly happens during LEDE
release builds, there is no need to build the entire userland of openvswitch
as this is done at a later stage on systems dedicated to build only userspace
packages.

This change conditionalizes the dependency on python, which means that python
prerequisites are only compiled if the openvswitch-python package is enabled,
which allows us to eliminate the entire python dependency chain.

Furthermore, this change sets MAKE_PATH to the kernel module sub directory
if only kmod-openvswitch is enabled which causes the openvswitch build system
to only process sources related to the .ko files.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
net/openvswitch/Makefile