Skip to contentSkip to conversation

tinydtls: new package

PATCH New Fabrice Fontaine 2 participants 2 messages Jul 28, 2016 – Jul 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tinydtls: new package

tinydtls is a library for Datagram Transport Layer Security (DTLS) covering both the client and the server state machine. It is implemented in C and provides support for the mandatory cipher suites specified in CoAP.

https://sourceforge.net/projects/tinydtls

---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Add a patch to fix build of tests subdirectory which depends on the tinydtls library
- Remove definition of TINYDTLS_SOURCE as this is the default value
- Put TINYDTLS_SITE on a single line even if it is slightly overflows the normal length
- Rename TINYDLTS_RELEASE in TINYDLTS_REL so it's shorter
- Use tinydlts.h as the TINYDTLS_LICENSE_FILES

 package/Config.in                                  |   1 +
 ...te-Makefile.in-to-allow-cross-compilation.patch | 170 +++++++++++++++++++++
 .../0002-Fix-compilation-of-tests-directory.patch  |  31 ++++
 package/tinydtls/Config.in                         |  13 ++
 package/tinydtls/tinydtls.hash                     |   2 +
 package/tinydtls/tinydtls.mk                       |  17 +++
 6 files changed, 234 insertions(+)
 create mode 100644 package/tinydtls/0001-Update-Makefile.in-to-allow-cross-compilation.patch
 create mode 100644 package/tinydtls/0002-Fix-compilation-of-tests-directory.patch
 create mode 100644 package/tinydtls/Config.in
 create mode 100644 package/tinydtls/tinydtls.hash
 create mode 100644 package/tinydtls/tinydtls.mk
package/Config.in +1 -0
index 563c279..3563870 100644
@@ -887,6 +887,7 @@ menu "Crypto"
 	source "package/nettle/Config.in"
 	source "package/openssl/Config.in"
 	source "package/polarssl/Config.in"
+	source "package/tinydtls/Config.in"
 	source "package/trousers/Config.in"
 endmenu
 
package/tinydtls/0001-Update-Makefile.in-to-allow-cross-compilation.patch new file +170 -0

170 lines not on this page · raw message

package/tinydtls/0002-Fix-compilation-of-tests-directory.patch new file +31 -0
new file mode 100644
index 0000000..8f575fd
@@ -0,0 +1,31 @@
+From c629a108f5d03cd365c0ba71143ad507f6cd97f0 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Thu, 28 Jul 2016 08:36:06 +0200
+Subject: [PATCH 2/2] Fix compilation of tests directory
+
+binaries in tests subdirectory depends on libtinydtls so add $(LIB) dependency
+for dirs target in Makefile.in
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ Makefile.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 7dcd424..c493705 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -68,8 +68,8 @@ check:
+ 	echo top_builddir: $(top_builddir)
+ 	$(MAKE) -C tests check
+ 
+-dirs:	$(SUBDIRS)
+-	for dir in $^; do \
++dirs:	$(LIB) $(SUBDIRS)
++	for dir in $(SUBDIRS); do \
+ 		$(MAKE) -C $$dir ; \
+ 	done
+ 
+-- 
+2.7.4
+
package/tinydtls/Config.in new file +13 -0
new file mode 100644
index 0000000..df9c4b5
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_TINYDTLS
+	bool "tinydtls"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	help
+	  tinydtls is a library for Datagram Transport Layer Security
+	  (DTLS) covering both the client and the server state machine.
+	  It is implemented in C and provides support for the mandatory
+	  cipher suites specified in CoAP.
+
+	  https://sourceforge.net/projects/tinydtls
+
+comment "tinydtls needs a toolchain w/ threads"
+        depends on !BR2_TOOLCHAIN_HAS_THREADS
package/tinydtls/tinydtls.hash new file +2 -0
new file mode 100644
index 0000000..909c8d1
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256	ccf6d8fbae03fb2e0ba32878ed8e57d8b4f73538b1064df90a3e764da5fac010	tinydtls-0.8.2.tar.gz
package/tinydtls/tinydtls.mk new file +17 -0
new file mode 100644
index 0000000..114305a
@@ -0,0 +1,17 @@
+################################################################################
+#
+# tinydtls
+#
+################################################################################
+
+TINYDTLS_REL = r5
+TINYDTLS_VERSION = 0.8.2
+TINYDTLS_SITE = http://downloads.sourceforge.net/project/tinydtls/$(TINYDTLS_REL)
+TINYDTLS_LICENSE = MIT
+TINYDTLS_LICENSE_FILES = tinydtls.h
+
+TINYDTLS_INSTALL_STAGING = YES
+
+TINYDTLS_STRIP_COMPONENTS = 2
+
+$(eval $(autotools-package))
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/1 tinydtls: new package

Hello,

Quoted 8 lines · Fabrice Fontaine

tinydtls is a library for Datagram Transport Layer Security (DTLS) covering both the client and the server state machine. It is implemented in C and provides support for the mandatory cipher suites specified in CoAP.

https://sourceforge.net/projects/tinydtls

Quoted 9 lines

---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Add a patch to fix build of tests subdirectory which depends on the tinydtls library
- Remove definition of TINYDTLS_SOURCE as this is the default value
- Put TINYDTLS_SITE on a single line even if it is slightly overflows the normal length
- Rename TINYDLTS_RELEASE in TINYDLTS_REL so it's shorter
- Use tinydlts.h as the TINYDTLS_LICENSE_FILES

Applied to master, thanks. Please submit your two patches to the upstream project. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com