Initial Commit
- initial default booting image
This commit is contained in:
26
package/opus/Config.in
Normal file
26
package/opus/Config.in
Normal file
@@ -0,0 +1,26 @@
|
||||
config BR2_PACKAGE_OPUS
|
||||
bool "opus"
|
||||
help
|
||||
The Opus codec is designed for interactive speech and audio
|
||||
transmission over the Internet. It is designed by the IETF
|
||||
Codec Working Group and incorporates technology from Skype's
|
||||
SILK codec and Xiph.Org's CELT codec.
|
||||
|
||||
It is intended to suit a wide range of interactive audio
|
||||
applications, including Voice over IP, videoconferencing,
|
||||
in-game chat, and even remote live music performances. It
|
||||
can scale from low bit-rate narrowband speech to very high
|
||||
quality stereo music.
|
||||
|
||||
http://opus-codec.org
|
||||
|
||||
if BR2_PACKAGE_OPUS
|
||||
|
||||
config BR2_PACKAGE_OPUS_FIXED_POINT
|
||||
bool "use fixed-point" if !BR2_SOFT_FLOAT
|
||||
default y if BR2_SOFT_FLOAT
|
||||
help
|
||||
Compile without floating point operations (for machines
|
||||
without a fast enough FPU).
|
||||
|
||||
endif
|
||||
5
package/opus/opus.hash
Normal file
5
package/opus/opus.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# From http://downloads.xiph.org/releases/opus/SHA256SUMS.txt
|
||||
sha256 6ffcb593207be92584df15b32466ed64bbec99109f007c82205f0194572411a1 opus-1.6.1.tar.gz
|
||||
|
||||
# Hash for license file
|
||||
sha256 01e1167d54a096d123cf6dfbbeb19587278845c6481d2d66d545669846079551 COPYING
|
||||
50
package/opus/opus.mk
Normal file
50
package/opus/opus.mk
Normal file
@@ -0,0 +1,50 @@
|
||||
################################################################################
|
||||
#
|
||||
# opus
|
||||
#
|
||||
################################################################################
|
||||
|
||||
OPUS_VERSION = 1.6.1
|
||||
OPUS_SITE = https://downloads.xiph.org/releases/opus
|
||||
OPUS_LICENSE = BSD-3-Clause
|
||||
OPUS_LICENSE_FILES = COPYING
|
||||
OPUS_CPE_ID_VENDOR = opus-codec
|
||||
OPUS_INSTALL_STAGING = YES
|
||||
|
||||
OPUS_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
# opus has ARM assembly optimizations not compatible with thumb1:
|
||||
# Error: selected processor does not support `smull r6,ip,r5,r0' in Thumb mode
|
||||
# so force ARM mode
|
||||
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
||||
OPUS_CFLAGS += -marm
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
||||
OPUS_CFLAGS += -O0
|
||||
endif
|
||||
|
||||
OPUS_CONF_ENV = CFLAGS="$(OPUS_CFLAGS)"
|
||||
OPUS_CONF_OPTS = --enable-custom-modes
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPUS_FIXED_POINT),y)
|
||||
OPUS_CONF_OPTS += --enable-fixed-point
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_OPTIMIZE_FAST),y)
|
||||
OPUS_CONF_OPTS += --enable-float-approx
|
||||
endif
|
||||
|
||||
# When we're on ARM, but we don't have ARM instructions (only
|
||||
# Thumb-2), disable the usage of assembly as it is not Thumb-ready.
|
||||
ifeq ($(BR2_arm)$(BR2_armeb):$(BR2_ARM_CPU_HAS_ARM),y:)
|
||||
OPUS_CONF_OPTS += --disable-asm
|
||||
endif
|
||||
|
||||
# We also disable assembly in case we have a soft-float ABI (opus has
|
||||
# NEON instructions which are not available in that case).
|
||||
ifeq ($(BR2_ARM_SOFT_FLOAT),y)
|
||||
OPUS_CONF_OPTS += --disable-intrinsics
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user