130ca81bb2
Disable assembly optimizations for: Microblaze in general (previously a patch). ARM with debugging in Thumb1/2 mode. This one fixes: http://autobuild.buildroot.net/results/31e/31e8c4e29d51039cd5d213c2fe176a9cc39879da/ Do so in a nicer way with a one-liner sed and drop the patch. And rename patches around, numbering was off. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
30 lines
970 B
Makefile
30 lines
970 B
Makefile
################################################################################
|
|
#
|
|
# polarssl
|
|
#
|
|
################################################################################
|
|
|
|
POLARSSL_SITE = https://polarssl.org/code/releases
|
|
POLARSSL_VERSION = 1.2.12
|
|
POLARSSL_SOURCE = polarssl-$(POLARSSL_VERSION)-gpl.tgz
|
|
POLARSSL_CONF_OPTS = \
|
|
-DENABLE_PROGRAMS=$(if $(BR2_PACKAGE_POLARSSL_PROGRAMS),ON,OFF)
|
|
|
|
POLARSSL_INSTALL_STAGING = YES
|
|
POLARSSL_LICENSE = GPLv2
|
|
POLARSSL_LICENSE_FILES = LICENSE
|
|
|
|
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
|
|
|
|
$(eval $(cmake-package))
|