[OpenWrt-Devel] [PATCH 3/3] mbedtls: Deactivate platform abstraction

Hauke Mehrtens hauke at hauke-m.de
Mon May 21 07:58:54 EDT 2018


This makes mbedtls use the POSIX API directly and not use the own
abstraction layer.
The size of the ipkg decreased by about 100 bytes.

Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/libs/mbedtls/patches/200-config.patch | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/package/libs/mbedtls/patches/200-config.patch b/package/libs/mbedtls/patches/200-config.patch
index 8a98941c2a..7bd0711e2c 100644
--- a/package/libs/mbedtls/patches/200-config.patch
+++ b/package/libs/mbedtls/patches/200-config.patch
@@ -213,6 +213,15 @@
  
  /**
   * \def MBEDTLS_MD_C
+@@ -2388,7 +2388,7 @@
+  *
+  * This module enables abstraction of common (libc) functions.
+  */
+-#define MBEDTLS_PLATFORM_C
++//#define MBEDTLS_PLATFORM_C
+ 
+ /**
+  * \def MBEDTLS_RIPEMD160_C
 @@ -2399,7 +2399,7 @@
   * Caller:  library/md.c
   *
-- 
2.11.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
http://lists.infradead.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list