Move all to deprecated folder.

This commit is contained in:
2016-11-16 21:57:57 +01:00
parent 01738a7684
commit 05de7d6c04
9777 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
From 10d82df8d920ceec4be9028a4939f96d6f407e81 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Wed, 26 Aug 2015 09:20:13 +0200
Subject: [PATCH] tinypcminfo: make function pcm_get_format_name() static
When building tinyalsa with gcc 5.x, the following warnings appear:
tinypcminfo.c:97:52: warning: 'format_lookup' is static but used in inline function 'pcm_get_format_name' which is not static
return bit_index < ARRAY_SIZE(format_lookup) ? format_lookup[bit_index] : NULL;
^
tinypcminfo.c:97:35: warning: 'format_lookup' is static but used in inline function 'pcm_get_format_name' which is not static
return bit_index < ARRAY_SIZE(format_lookup) ? format_lookup[bit_index] : NULL;
And the build fails with:
tinypcminfo.o: In function `main':
tinypcminfo.c:(.text+0x2f0): undefined reference to `pcm_get_format_name'
collect2: error: ld returned 1 exit status
To fix this, this patch marks the pcm_get_format_name() as static,
since it's anyway only used in tinypcminfo.c.
Submitted upstream: https://github.com/tinyalsa/tinyalsa/pull/61
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
tinypcminfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tinypcminfo.c b/tinypcminfo.c
index b2d11bc..99eec34 100644
--- a/tinypcminfo.c
+++ b/tinypcminfo.c
@@ -92,7 +92,7 @@ static const char *format_lookup[] = {
/* Returns a human readable name for the format associated with bit_index,
* NULL if bit_index is not known.
*/
-inline const char *pcm_get_format_name(unsigned bit_index)
+static inline const char *pcm_get_format_name(unsigned bit_index)
{
return bit_index < ARRAY_SIZE(format_lookup) ? format_lookup[bit_index] : NULL;
}
--
2.5.0

View File

@@ -0,0 +1,17 @@
config BR2_PACKAGE_TINYALSA
bool "tinyalsa"
depends on !BR2_STATIC_LIBS
help
a small library to interface with ALSA in the Linux kernel
The aims are:
- Provide a basic pcm and mixer API
- If it's not absolutely needed, don't add it to the API
- Avoid supporting complex and unnecessary operations that could be dealt
with at a higher level
https://github.com/tinyalsa/tinyalsa
comment "tinyalsa needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS

View File

@@ -0,0 +1,32 @@
################################################################################
#
# tinyalsa
#
################################################################################
TINYALSA_VERSION = f2a7b6d3d81bd337a540d56704b4aaa7bdb046fe
TINYALSA_SITE = $(call github,tinyalsa,tinyalsa,$(TINYALSA_VERSION))
TINYALSA_LICENSE = BSD-3c
TINYALSA_INSTALL_STAGING = YES
define TINYALSA_BUILD_CMDS
$(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D)
endef
define TINYALSA_INSTALL_STAGING_CMDS
$(INSTALL) -D -m 0755 $(@D)/libtinyalsa.so \
$(STAGING_DIR)/usr/lib/libtinyalsa.so
$(INSTALL) -D -m 0644 $(@D)/include/tinyalsa/asoundlib.h \
$(STAGING_DIR)/usr/include/tinyalsa/asoundlib.h
endef
define TINYALSA_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/libtinyalsa.so \
$(TARGET_DIR)/usr/lib/libtinyalsa.so
$(INSTALL) -D -m 0755 $(@D)/tinyplay $(TARGET_DIR)/usr/bin/tinyplay
$(INSTALL) -D -m 0755 $(@D)/tinycap $(TARGET_DIR)/usr/bin/tinycap
$(INSTALL) -D -m 0755 $(@D)/tinymix $(TARGET_DIR)/usr/bin/tinymix
$(INSTALL) -D -m 0755 $(@D)/tinypcminfo $(TARGET_DIR)/usr/bin/tinypcminfo
endef
$(eval $(generic-package))