浏览代码

package/lldpd: explicit optional dependencies

check and valgrind are optional depenencies of lldpd, so we must depend
on them when either is enabled.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Yann E. MORIN 9 年之前
父节点
当前提交
4d17611eab
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      package/lldpd/lldpd.mk

+ 8 - 0
package/lldpd/lldpd.mk

@@ -12,6 +12,14 @@ LLDPD_LICENSE_FILES = README.md
 # 0001-build-make-generation-of-atom-glue-compatible-with-o.patch
 # 0001-build-make-generation-of-atom-glue-compatible-with-o.patch
 LLDPD_AUTORECONF = YES
 LLDPD_AUTORECONF = YES
 
 
+ifeq ($(BR2_PACKAGE_CHECK),y)
+LLDPD_DEPENDENCIES += check
+endif
+
+ifeq ($(BR2_PACKAGE_VALGRIND),y)
+LLDPD_DEPENDENCIES += valgrind
+endif
+
 # Detection of c99 support in configure fails without WCHAR. To enable
 # Detection of c99 support in configure fails without WCHAR. To enable
 # automatic detection of c99 support by configure, we need to enable
 # automatic detection of c99 support by configure, we need to enable
 # WCHAR in toolchain. But actually we do not need WCHAR at lldpd
 # WCHAR in toolchain. But actually we do not need WCHAR at lldpd