metadata: compile dependencies only when the package is selected build-deps
authorYousong Zhou <yszhou4tech@gmail.com>
Wed, 28 Feb 2018 03:27:42 +0000 (11:27 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Fri, 2 Mar 2018 09:43:03 +0000 (17:43 +0800)
commit26ce50f3ca5a97dcab3c30205c9210ce3b04d43c
tree6eb00c2993d410172aa3fa0f9eda20ffac984631
parentfa9d6c5e4382ab7d7ff04a76696a4a496d58f631
metadata: compile dependencies only when the package is selected

This is intended to reduce build time for situations like the following
where python and python-six and their dependencies could still be built
as long as any subpackage within the srcpackage was selected regardless
of the selection state of openvswitch-python

    define Package/openvswitch-python
      ...
      DEPENDS:=+python +python-six
    endef

Previously we work around this by specifying the dependency as
+PACKAGE_openvswitch-python:python, which is unintuitive

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
scripts/package-metadata.pl