changeset 491:6edd14e5f132

Fix SCTP support for OpenWRT, now it really works
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 13 Aug 2010 15:52:28 +0900
parents 2577514b2546
children 121397bd1afc 753c9ed8f19a
files contrib/OpenWRT/HOWTO contrib/OpenWRT/packages/sctp/Makefile
diffstat 2 files changed, 34 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/OpenWRT/HOWTO	Thu Aug 12 15:57:52 2010 +0900
+++ b/contrib/OpenWRT/HOWTO	Fri Aug 13 15:52:28 2010 +0900
@@ -89,7 +89,9 @@
 
 We will now describe how to install these dependencies. At the time this HOWTO is written, 
 the OpenWRT repositories contain ipv6, gnutls, pthreads and hostapd. Follow these instruction to
-build them:
+build them.
+
+Alternatively, you can find these packages pre-compiled in the OpenWRT packages repository.
 
 a) GNU TLS packages
 $ scripts/feeds install libgnutls
--- a/contrib/OpenWRT/packages/sctp/Makefile	Thu Aug 12 15:57:52 2010 +0900
+++ b/contrib/OpenWRT/packages/sctp/Makefile	Fri Aug 13 15:52:28 2010 +0900
@@ -22,20 +22,10 @@
 PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
-include $(INCLUDE_DIR)/kernel.mk
 
-define KernelPackage/sctp
-  SUBMENU:=Network Support
-  TITLE:=SCTP support
-  KCONFIG:= CONFIG_IP_SCTP=m
-  FILES:=$(LINUX_DIR)/net/sctp/sctp.$(LINUX_KMOD_SUFFIX)
-  AUTOLOAD:=$(call AutoLoad,20,sctp)
-  DEPENDS:=@LINUX_2_6
-endef
-
-define KernelPackage/sctp/description
- Kernel modules for SCTP support
-endef
+#####
+## lksctp library: provides sctp_* functions in user space
+#####
 
 define Package/sctp
   SECTION:=libs
@@ -59,4 +49,32 @@
 endef
 
 $(eval $(call BuildPackage,sctp))
+
+
+#####
+## SCTP kernel support
+#####
+
+include $(INCLUDE_DIR)/kernel.mk
+
+define KernelPackage/sctp
+  SUBMENU:=Network Support
+  TITLE:=SCTP support
+  KCONFIG:=\
+     CONFIG_IP_SCTP=m \
+     CONFIG_LIBCRC32C=m
+  FILES:=\
+     $(LINUX_DIR)/net/sctp/sctp.$(LINUX_KMOD_SUFFIX) \
+     $(LINUX_DIR)/lib/libcrc32c.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=\
+     $(call AutoLoad,30,crc32c libcrc32c,1) \
+     $(call AutoLoad,35,sctp)
+  DEPENDS:=@LINUX_2_6 +kmod-crypto-core +kmod-crypto-misc
+endef
+
+define KernelPackage/sctp/description
+ Kernel modules for SCTP support
+endef
+
 $(eval $(call KernelPackage,sctp))
+
"Welcome to our mercurial repository"