# HG changeset patch # User Sebastien Decugis # Date 1281682348 -32400 # Node ID 6edd14e5f1324b43a0c5433ac083c5ec10a36f99 # Parent 2577514b254608d0df5b879fabc5a0b34dbbecb4 Fix SCTP support for OpenWRT, now it really works diff -r 2577514b2546 -r 6edd14e5f132 contrib/OpenWRT/HOWTO --- 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 diff -r 2577514b2546 -r 6edd14e5f132 contrib/OpenWRT/packages/sctp/Makefile --- 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)) +