2013-06-21 00:17:14 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# polarssl
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-31 12:59:20 +02:00
|
|
|
POLARSSL_SITE = https://tls.mbed.org/code/releases
|
2016-02-08 20:27:00 +01:00
|
|
|
POLARSSL_VERSION = 1.2.19
|
2012-04-10 18:05:28 +02:00
|
|
|
POLARSSL_SOURCE = polarssl-$(POLARSSL_VERSION)-gpl.tgz
|
2014-09-27 21:32:44 +02:00
|
|
|
POLARSSL_CONF_OPTS = \
|
2014-07-11 23:06:28 +02:00
|
|
|
-DENABLE_PROGRAMS=$(if $(BR2_PACKAGE_POLARSSL_PROGRAMS),ON,OFF)
|
2012-04-10 18:05:28 +02:00
|
|
|
|
|
|
|
POLARSSL_INSTALL_STAGING = YES
|
2012-11-17 07:42:27 +01:00
|
|
|
POLARSSL_LICENSE = GPLv2
|
|
|
|
POLARSSL_LICENSE_FILES = LICENSE
|
2012-04-10 18:05:28 +02:00
|
|
|
|
2014-10-27 15:07:18 +01:00
|
|
|
define POLARSSL_DISABLE_ASM
|
|
|
|
$(SED) '/^#define POLARSSL_HAVE_ASM/d' $(@D)/include/polarssl/config.h
|
|
|
|
endef
|
|
|
|
|
|
|
|
# ARM in thumb mode breaks debugging with asm optimizations
|
|
|
|
# Microblaze asm optimizations are broken in general
|
2015-11-27 11:37:18 +01:00
|
|
|
# MIPS R6 asm is not yet supported
|
2014-10-27 15:07:18 +01:00
|
|
|
ifeq ($(BR2_ENABLE_DEBUG)$(BR2_ARM_INSTRUCTIONS_THUMB)$(BR2_ARM_INSTRUCTIONS_THUMB2),yy)
|
|
|
|
POLARSSL_POST_CONFIGURE_HOOKS += POLARSSL_DISABLE_ASM
|
|
|
|
else ifeq ($(BR2_microblaze),y)
|
|
|
|
POLARSSL_POST_CONFIGURE_HOOKS += POLARSSL_DISABLE_ASM
|
2016-09-30 11:36:49 +02:00
|
|
|
else ifeq ($(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6),y)
|
2015-11-27 11:37:18 +01:00
|
|
|
POLARSSL_POST_CONFIGURE_HOOKS += POLARSSL_DISABLE_ASM
|
2014-10-27 15:07:18 +01:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(cmake-package))
|