소스 검색

zeromq: add norm support

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
[Thomas: add explicit --without-norm.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Gustavo Zacarias 9 년 전
부모
커밋
01992b3877
2개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      package/zeromq/Config.in
  2. 7 0
      package/zeromq/zeromq.mk

+ 11 - 0
package/zeromq/Config.in

@@ -27,6 +27,17 @@ config BR2_PACKAGE_ZEROMQ
 
 
 if BR2_PACKAGE_ZEROMQ
 if BR2_PACKAGE_ZEROMQ
 
 
+comment "norm support needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
+
+config BR2_PACKAGE_ZEROMQ_NORM
+	bool "NORM support"
+	depends on !BR2_STATIC_LIBS
+	select BR2_PACKAGE_NORM
+	help
+	  Add support for NACK-Oriented Reliable Multicast (RFC 5740)
+	  protocol.
+
 config BR2_PACKAGE_ZEROMQ_PGM
 config BR2_PACKAGE_ZEROMQ_PGM
 	bool "PGM/EPGM support"
 	bool "PGM/EPGM support"
 	depends on BR2_TOOLCHAIN_HAS_SYNC_2
 	depends on BR2_TOOLCHAIN_HAS_SYNC_2

+ 7 - 0
package/zeromq/zeromq.mk

@@ -28,6 +28,13 @@ ifeq ($(BR2_STATIC_LIBS),y)
 ZEROMQ_CONF_OPTS += LIBS=-lstdc++
 ZEROMQ_CONF_OPTS += LIBS=-lstdc++
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_ZEROMQ_NORM),y)
+ZEROMQ_CONF_OPTS += --with-norm
+ZEROMQ_DEPENDENCIES += norm
+else
+ZEROMQ_CONF_OPTS += --without-norm
+endif
+
 ifeq ($(BR2_PACKAGE_ZEROMQ_PGM),y)
 ifeq ($(BR2_PACKAGE_ZEROMQ_PGM),y)
 ZEROMQ_DEPENDENCIES += host-pkgconf openpgm
 ZEROMQ_DEPENDENCIES += host-pkgconf openpgm
 ZEROMQ_CONF_OPTS += --with-pgm
 ZEROMQ_CONF_OPTS += --with-pgm