cannelloni: make SCTP support optional
PATCH v2 1/1 cannelloni: make SCTP support optional
From: Yegor Yefremov <[email protected]>
Since version 20160414 SCTP support is optional. Introduce an automatic optional dependency for this protocol.
Signed-off-by Yegor Yefremov <[email protected]>
---
Changes:
v2: change selectable option to automatic optional dependency (Thomas Petazzoni)
package/cannelloni/Config.in | 1 - package/cannelloni/cannelloni.mk | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-)
package/cannelloni/Config.in +0 -1
@@ -5,7 +5,6 @@ config BR2_PACKAGE_CANNELLONI depends on BR2_USE_MMU # lksctp-tools depends on BR2_TOOLCHAIN_HAS_THREADS # lksctp-tools depends on !BR2_STATIC_LIBS # lksctp-tools - select BR2_PACKAGE_LKSCTP_TOOLS help A SocketCAN over Ethernet tunnel. The tunnel supports both UDP and SCTP protocols.
package/cannelloni/cannelloni.mk +6 -0
@@ -8,6 +8,12 @@ CANNELLONI_VERSION = 20160414 CANNELLONI_SITE = $(call github,mguentner,cannelloni,$(CANNELLONI_VERSION)) CANNELLONI_LICENSE = GPLv2 CANNELLONI_LICENSE_FILES = gpl-2.0.txt + +ifeq ($(BR2_PACKAGE_LKSCTP_TOOLS),y) +CANNELLONI_CONF_OPTS += -DSCTP_SUPPORT=ON CANNELLONI_DEPENDENCIES = lksctp-tools +else +CANNELLONI_CONF_OPTS += -DSCTP_SUPPORT=OFF +endif $(eval $(cmake-package))
Signature · 1 line
2.8.0.rc3
Thomas Petazzoni
AppliedPATCH v2 1/1 cannelloni: make SCTP support optional
Hello,
package/cannelloni/cannelloni.mk CANNELLONI_VERSION = 20160414 · line 14
Quoted 3 lines · yegorslists at googlemail.com
package/cannelloni/cannelloni.mk +2
-0+ifeq ($(BR2_PACKAGE_LKSCTP_TOOLS),y) +CANNELLONI_CONF_OPTS += -DSCTP_SUPPORT=ON CANNELLONI_DEPENDENCIES = lksctp-tools
Now that this dependency is conditional, I've changed this = to += to avoid possible mistakes in the future.
Applied, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com