xref: /OK3568_Linux_fs/buildroot/package/tremor/tremor.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# tremor
4#
5################################################################################
6
7TREMOR_VERSION = 7c30a66346199f3f09017a09567c6c8a3a0eedc8
8TREMOR_SITE = https://gitlab.xiph.org/xiph/tremor.git
9TREMOR_SITE_METHOD = git
10TREMOR_LICENSE = BSD-3-Clause
11TREMOR_LICENSE_FILES = COPYING
12
13TREMOR_AUTORECONF = YES
14TREMOR_INSTALL_STAGING = YES
15TREMOR_DEPENDENCIES = libogg
16
17# tremor has ARM assembly code that cannot be compiled in Thumb2 mode,
18# so we must force the traditional ARM mode.
19# However, some ARM architectures like ARNv7-M only supports Thumb
20# instructions, but the tremor build configuration enables ARM assembly
21# code unconditionally for all arm triplets by defining _ARM_ASSEM_.
22# We are overriding this by undefining this macro for the ARM
23# architectures not supporting ARM instructions.
24ifeq ($(BR2_arm),y)
25ifeq ($(BR2_ARM_CPU_HAS_ARM),y)
26TREMOR_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -marm"
27else
28TREMOR_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -U_ARM_ASSEM_"
29endif
30endif
31
32$(eval $(autotools-package))
33