Blame view

buildroot/buildroot-2016.08.1/package/polarssl/polarssl.mk 1.08 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  ################################################################################
  #
  # polarssl
  #
  ################################################################################
  
  POLARSSL_SITE = https://tls.mbed.org/code/releases
  POLARSSL_VERSION = 1.2.19
  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))