openvswitch: make dependencies conditional for openvswitch-python subpackage
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 29 Jun 2017 10:50:40 +0000 (13:50 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 29 Jun 2017 10:50:42 +0000 (13:50 +0300)
Apparently, even if you don't select the `openvswitch-python` package,
Python still gets built (for the target build).

But, if the python dependencies are conditional on the
`PACKAGE_openvswitch-python` symbol then they aren't build.

This should improve build times, if you only want to build the
`openvswitch` package.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
net/openvswitch/Makefile

index 834fd15665b4fe67110da494ab892ca9d14cc827..39897036d4b2e44b02d63d8d9462cadff4e69ad9 100644 (file)
@@ -67,7 +67,7 @@ endef
 define Package/openvswitch-python
   $(call Package/openvswitch/Default)
   TITLE:=Open vSwitch Python Support
-  DEPENDS:=+openvswitch +python +python-six
+  DEPENDS:=+openvswitch +PACKAGE_openvswitch-python:python +PACKAGE_openvswitch-python:python-six
 endef
 
 define Package/openvswitch-python/description