1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# tremor 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunTREMOR_VERSION = 7c30a66346199f3f09017a09567c6c8a3a0eedc8 8*4882a593SmuzhiyunTREMOR_SITE = https://gitlab.xiph.org/xiph/tremor.git 9*4882a593SmuzhiyunTREMOR_SITE_METHOD = git 10*4882a593SmuzhiyunTREMOR_LICENSE = BSD-3-Clause 11*4882a593SmuzhiyunTREMOR_LICENSE_FILES = COPYING 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunTREMOR_AUTORECONF = YES 14*4882a593SmuzhiyunTREMOR_INSTALL_STAGING = YES 15*4882a593SmuzhiyunTREMOR_DEPENDENCIES = libogg 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun# tremor has ARM assembly code that cannot be compiled in Thumb2 mode, 18*4882a593Smuzhiyun# so we must force the traditional ARM mode. 19*4882a593Smuzhiyun# However, some ARM architectures like ARNv7-M only supports Thumb 20*4882a593Smuzhiyun# instructions, but the tremor build configuration enables ARM assembly 21*4882a593Smuzhiyun# code unconditionally for all arm triplets by defining _ARM_ASSEM_. 22*4882a593Smuzhiyun# We are overriding this by undefining this macro for the ARM 23*4882a593Smuzhiyun# architectures not supporting ARM instructions. 24*4882a593Smuzhiyunifeq ($(BR2_arm),y) 25*4882a593Smuzhiyunifeq ($(BR2_ARM_CPU_HAS_ARM),y) 26*4882a593SmuzhiyunTREMOR_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -marm" 27*4882a593Smuzhiyunelse 28*4882a593SmuzhiyunTREMOR_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -U_ARM_ASSEM_" 29*4882a593Smuzhiyunendif 30*4882a593Smuzhiyunendif 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun$(eval $(autotools-package)) 33