2013-06-21 00:17:14 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# polarssl
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2013-06-27 22:51:50 +02:00
|
|
|
POLARSSL_SITE = https://polarssl.org/code/releases
|
2015-02-18 19:16:09 +01:00
|
|
|
POLARSSL_VERSION = 1.2.13
|
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
|
|
|
|
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
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(cmake-package))
|