Move all to deprecated folder.
This commit is contained in:
20
deprecated/firmware/buildroot/package/mbedtls/Config.in
Normal file
20
deprecated/firmware/buildroot/package/mbedtls/Config.in
Normal file
@@ -0,0 +1,20 @@
|
||||
config BR2_PACKAGE_MBEDTLS
|
||||
bool "mbedtls"
|
||||
help
|
||||
mbed TLS (formerly known as PolarSSL) makes it trivially easy
|
||||
for developers to include cryptographic and SSL/TLS
|
||||
capabilities in their (embedded) products, facilitating this
|
||||
functionality with a minimal coding footprint.
|
||||
|
||||
https://tls.mbed.org/
|
||||
|
||||
if BR2_PACKAGE_MBEDTLS
|
||||
|
||||
config BR2_PACKAGE_MBEDTLS_PROGRAMS
|
||||
bool "mbedtls programs"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
This option enables the installation and the build of
|
||||
mbed TLS companion programs.
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,2 @@
|
||||
# From https://tls.mbed.org/tech-updates/releases/mbedtls-2.2.1-2.1.4-1.3.16-and-polarssl.1.2.19-released
|
||||
sha256 6ddd5ca2e7dfb43d2fd750400856246fc1c98344dabf01b1594eb2f9880ef7ce mbedtls-2.2.1-apache.tgz
|
||||
64
deprecated/firmware/buildroot/package/mbedtls/mbedtls.mk
Normal file
64
deprecated/firmware/buildroot/package/mbedtls/mbedtls.mk
Normal file
@@ -0,0 +1,64 @@
|
||||
################################################################################
|
||||
#
|
||||
# mbedtls
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MBEDTLS_SITE = https://tls.mbed.org/code/releases
|
||||
MBEDTLS_VERSION = 2.2.1
|
||||
MBEDTLS_SOURCE = mbedtls-$(MBEDTLS_VERSION)-apache.tgz
|
||||
MBEDTLS_CONF_OPTS = \
|
||||
-DENABLE_PROGRAMS=$(if $(BR2_PACKAGE_MBEDTLS_PROGRAMS),ON,OFF) \
|
||||
-DENABLE_TESTING=OFF
|
||||
MBEDTLS_INSTALL_STAGING = YES
|
||||
MBEDTLS_LICENSE = Apache-2.0
|
||||
MBEDTLS_LICENSE_FILES = apache-2.0.txt
|
||||
|
||||
# This is mandatory for hiawatha
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
define MBEDTLS_ENABLE_THREADING
|
||||
$(SED) "s://#define MBEDTLS_THREADING_C:#define MBEDTLS_THREADING_C:" \
|
||||
$(@D)/include/mbedtls/config.h
|
||||
$(SED) "s://#define MBEDTLS_THREADING_PTHREAD:#define MBEDTLS_THREADING_PTHREAD:" \
|
||||
$(@D)/include/mbedtls/config.h
|
||||
endef
|
||||
MBEDTLS_POST_PATCH_HOOKS += MBEDTLS_ENABLE_THREADING
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
MBEDTLS_CONF_OPTS += \
|
||||
-DUSE_SHARED_MBEDTLS_LIBRARY=OFF -DUSE_STATIC_MBEDTLS_LIBRARY=ON
|
||||
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
||||
MBEDTLS_CONF_OPTS += \
|
||||
-DUSE_SHARED_MBEDTLS_LIBRARY=ON -DUSE_STATIC_MBEDTLS_LIBRARY=ON
|
||||
else ifeq ($(BR2_SHARED_LIBS),y)
|
||||
MBEDTLS_CONF_OPTS += \
|
||||
-DUSE_SHARED_MBEDTLS_LIBRARY=ON -DUSE_STATIC_MBEDTLS_LIBRARY=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
MBEDTLS_CONF_OPTS += -DENABLE_ZLIB_SUPPORT=ON
|
||||
MBEDTLS_DEPENDENCIES += zlib
|
||||
else
|
||||
MBEDTLS_CONF_OPTS += -DENABLE_ZLIB_SUPPORT=OFF
|
||||
endif
|
||||
|
||||
define MBEDTLS_DISABLE_ASM
|
||||
$(SED) '/^#define MBEDTLS_AESNI_C/d' \
|
||||
$(@D)/include/mbedtls/config.h
|
||||
$(SED) '/^#define MBEDTLS_HAVE_ASM/d' \
|
||||
$(@D)/include/mbedtls/config.h
|
||||
$(SED) '/^#define MBEDTLS_PADLOCK_C/d' \
|
||||
$(@D)/include/mbedtls/config.h
|
||||
endef
|
||||
|
||||
# ARM in thumb mode breaks debugging with asm optimizations
|
||||
# Microblaze asm optimizations are broken in general
|
||||
# MIPS R6 asm is not yet supported
|
||||
ifeq ($(BR2_ENABLE_DEBUG)$(BR2_ARM_INSTRUCTIONS_THUMB)$(BR2_ARM_INSTRUCTIONS_THUMB2),yy)
|
||||
MBEDTLS_POST_CONFIGURE_HOOKS += MBEDTLS_DISABLE_ASM
|
||||
else ifeq ($(BR2_microblaze)$(BR2_mips_32r6)$(BR2_mips_64r6),y)
|
||||
MBEDTLS_POST_CONFIGURE_HOOKS += MBEDTLS_DISABLE_ASM
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user