Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
From 7d3b8ac47789545af5a4cd2fc1cf9bcfb91ae3b0 Mon Sep 17 00:00:00 2001
|
||||
From: Julien Olivain <ju.o@free.fr>
|
||||
Date: Sat, 29 Oct 2022 12:51:17 +0200
|
||||
Subject: [PATCH] wave: add <time.h> missing header inclusion
|
||||
|
||||
When compiling tinycompress with some libc other than glibc
|
||||
(e.g. musl libc), compilation fails with the following error:
|
||||
|
||||
In file included from wave.c:11:0:
|
||||
/path/to/gcc/sysroot/usr/include/sound/asound.h:404:18: error: field 'trigger_tstamp' has incomplete type
|
||||
struct timespec trigger_tstamp; /* time when stream was started/stopped/paused */
|
||||
[...]
|
||||
|
||||
According to POSIX, "struct timespec" is defined in <time.h>. See:
|
||||
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html
|
||||
|
||||
This patch fixes this build failure by including <time.h> prior
|
||||
<sound/asound.h>.
|
||||
|
||||
Signed-off-by: Julien Olivain <ju.o@free.fr>
|
||||
|
||||
Upstream: https://github.com/alsa-project/tinycompress/pull/38
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
src/utils/wave.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/utils/wave.c b/src/utils/wave.c
|
||||
index a74149a..d17f66a 100644
|
||||
--- a/src/utils/wave.c
|
||||
+++ b/src/utils/wave.c
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
+#include <time.h>
|
||||
#include <sound/asound.h>
|
||||
|
||||
#include "tinycompress/tinywave.h"
|
||||
--
|
||||
2.38.1
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
From b0361dc7fef630248310db1cdea1ee89f68ead7b Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Tue, 2 Jun 2026 20:20:01 +0200
|
||||
Subject: [PATCH] utils: sofprobeclient: fix musl build
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
With musl C library, we see following build failure:
|
||||
|
||||
probes_demux.c: In function ‘parser_parse_data’:
|
||||
probes_demux.c:321:9: error: unknown type name ‘uint’; did you mean ‘int’?
|
||||
321 | uint i = 0;
|
||||
|
||||
probes_demux.c:386:25: error: unknown type name ‘uint’; did you mean ‘int’?
|
||||
386 | uint data_to_copy;
|
||||
|
||||
uint is defined in <sys/types.h> header. It is usually included by
|
||||
<stdlib.h> but in musl stdlib.h doesn't include it.
|
||||
|
||||
Upstream: https://github.com/alsa-project/tinycompress/pull/37
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
src/utils/sofprobeclient/probes_demux.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/utils/sofprobeclient/probes_demux.c b/src/utils/sofprobeclient/probes_demux.c
|
||||
index b11f702..be0a2e0 100644
|
||||
--- a/src/utils/sofprobeclient/probes_demux.c
|
||||
+++ b/src/utils/sofprobeclient/probes_demux.c
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
#include "probe_dma_frame.h"
|
||||
|
||||
--
|
||||
2.47.3
|
||||
|
||||
10
package/tinycompress/Config.in
Normal file
10
package/tinycompress/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_TINYCOMPRESS
|
||||
bool "tinycompress"
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
help
|
||||
tinycompress is a library for compress audio offload in alsa.
|
||||
|
||||
https://www.alsa-project.org/
|
||||
|
||||
comment "tinycompress needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
7
package/tinycompress/tinycompress.hash
Normal file
7
package/tinycompress/tinycompress.hash
Normal file
@@ -0,0 +1,7 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
# from https://www.alsa-project.org/files/pub/tinycompress/tinycompress-1.2.16.tar.bz2.sig
|
||||
# with key F04DF50737AC1A884C4B3D718380596DA6E59C91
|
||||
sha256 2662336a8e583b9acb005350ad36edf13f01bc39ac8cb05347846c783273efb0 tinycompress-1.2.16.tar.bz2
|
||||
|
||||
# Locally calculated
|
||||
sha256 912ea37a4435594a3b3c35f04efa4b5b7af2e68a05f5319c16c881711a31e4b7 COPYING
|
||||
15
package/tinycompress/tinycompress.mk
Normal file
15
package/tinycompress/tinycompress.mk
Normal file
@@ -0,0 +1,15 @@
|
||||
################################################################################
|
||||
#
|
||||
# tinycompress
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TINYCOMPRESS_VERSION = 1.2.16
|
||||
TINYCOMPRESS_SOURCE = tinycompress-$(TINYCOMPRESS_VERSION).tar.bz2
|
||||
TINYCOMPRESS_SITE = https://www.alsa-project.org/files/pub/tinycompress
|
||||
TINYCOMPRESS_LICENSE = BSD-3-Clause and LGPL-2.1
|
||||
TINYCOMPRESS_LICENSE_FILES = COPYING
|
||||
TINYCOMPRESS_INSTALL_STAGING = YES
|
||||
TINYCOMPRESS_DEPENDENCIES = host-pkgconf
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user