This commit is contained in:
TriForceX
2019-09-25 20:51:37 -03:00
commit 6203ff3e7c
11215 changed files with 428258 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
Disable doxygen usage
In order to avoid a dependency on doxygen on the build machine, this
patch adjusts the main Makefile to not build and install the
documentation.
[Vincent: tweak patch for 1.1.1 version]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
diff -rup a/Makefile b/Makefile
--- a/Makefile 2017-05-24 05:23:57.000000000 +0100
+++ b/Makefile 2017-05-25 10:35:20.781747053 +0100
@@ -11,14 +11,12 @@ export MANDIR ?= $(PREFIX)/share/man
all:
$(MAKE) -C src
$(MAKE) -C utils
- $(MAKE) -C doxygen
$(MAKE) -C examples
.PHONY: clean
clean:
$(MAKE) -C src clean
$(MAKE) -C utils clean
- $(MAKE) -C doxygen clean
$(MAKE) -C examples clean
.PHONY: install
@@ -30,5 +28,4 @@ install:
install include/tinyalsa/version.h $(DESTDIR)$(INCDIR)/
$(MAKE) -C src install
$(MAKE) -C utils install
- $(MAKE) -C doxygen install

View File

@@ -0,0 +1,36 @@
From 685e530d8a0063134642371eaacd01fee2f62d85 Mon Sep 17 00:00:00 2001
From: Baruch Siach <baruch@tkos.co.il>
Date: Fri, 2 Jun 2017 12:19:03 +0300
Subject: [PATCH] interval.h: add missing header
The ssize_t type requires the unistd.h header. This fixes build with musl
libc:
In file included from ../include/tinyalsa/limits.h:32:0,
from limits.c:1:
../include/tinyalsa/interval.h:38:2: error: unknown type name 'ssize_t'
ssize_t max;
^
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
Upstream status: https://github.com/tinyalsa/tinyalsa/pull/98
include/tinyalsa/interval.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/tinyalsa/interval.h b/include/tinyalsa/interval.h
index 3f6f3dce5d90..068571df5a63 100644
--- a/include/tinyalsa/interval.h
+++ b/include/tinyalsa/interval.h
@@ -30,6 +30,7 @@
#define TINYALSA_INTERVAL_H
#include <stdlib.h>
+#include <unistd.h>
/** A closed range signed interval. */
--
2.11.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,2 @@
# locally computed
sha256 d92b438cea348ae316c4b2cbf367b4f01ed821a947e6a34d813624e9e3c936c1 tinyalsa-1.1.1.tar.gz

View File

@@ -0,0 +1,33 @@
################################################################################
#
# tinyalsa
#
################################################################################
TINYALSA_VERSION = 1.1.1
TINYALSA_SITE = $(call github,tinyalsa,tinyalsa,$(TINYALSA_VERSION))
TINYALSA_LICENSE = BSD-3-Clause
TINYALSA_LICENSE_FILES = NOTICE
TINYALSA_INSTALL_STAGING = YES
define TINYALSA_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D)
endef
define TINYALSA_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) \
-C $(@D) \
PREFIX="/usr" \
CROSS_COMPILE="$(TARGET_CROSS)" \
DESTDIR="$(STAGING_DIR)" install
endef
define TINYALSA_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) \
-C $(@D) \
PREFIX="/usr" \
CROSS_COMPILE="$(TARGET_CROSS)" \
DESTDIR="$(TARGET_DIR)" install
endef
$(eval $(generic-package))