47dd01f1ac
Fixes: http://autobuild.buildroot.net/results/c34/c343c68d3e0dae4a7ecd59693298a9622bc56662/ Is not yet supported and the compilation will fail like this: [ 4%] Building C object library/CMakeFiles/polarssl.dir/bignum.c.o /tmp/ccLDxl9G.s: Assembler messages: /tmp/ccLDxl9G.s:92: Error: opcode not supported on this processor: mips32r6 (mips32r6) `multu $13,$14' /tmp/ccLDxl9G.s:93: Error: opcode not supported on this processor: mips32r6 (mips32r6) `addi $10,$10,4' /tmp/ccLDxl9G.s:94: Error: opcode not supported on this processor: mips32r6 (mips32r6) `mflo $14' /tmp/ccLDxl9G.s:95: Error: opcode not supported on this processor: mips32r6 (mips32r6) `mfhi $9' [...] Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
33 lines
1.1 KiB
Makefile
33 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# polarssl
|
|
#
|
|
################################################################################
|
|
|
|
POLARSSL_SITE = https://tls.mbed.org/code/releases
|
|
POLARSSL_VERSION = 1.2.18
|
|
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
|
|
# MIPS R6 asm is not yet supported
|
|
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
|
|
else ifeq ($(BR2_mips_32r6)$(BR2_mips_64r6),y)
|
|
POLARSSL_POST_CONFIGURE_HOOKS += POLARSSL_DISABLE_ASM
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|