Initial Commit
- initial default booting image
This commit is contained in:
44
package/squeezelite/0001-ir.c-fix-build-with-gcc-15.patch
Normal file
44
package/squeezelite/0001-ir.c-fix-build-with-gcc-15.patch
Normal file
@@ -0,0 +1,44 @@
|
||||
From 787961d52130bd3c6c18b19218219650786e5352 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Sat, 6 Dec 2025 12:25:08 +0100
|
||||
Subject: [PATCH] ir.c: fix build with gcc-15
|
||||
|
||||
ir.c: In function 'ir_init':
|
||||
ir.c:273:48: error: passing argument 3 of 'pthread_create' from incompatible pointer type [-Wincompatible-pointer-types]
|
||||
273 | pthread_create(&thread, &attr, ir_thread, NULL);
|
||||
| ^~~~~~~~~
|
||||
| |
|
||||
| void * (*)(void)
|
||||
In file included from squeezelite.h:300,
|
||||
from ir.c:36:
|
||||
/home/buildroot/br/output/per-package/squeezelite/host/lib/gcc/x86_64-buildroot-linux-gnu/15.2.0/include-fixed/pthread.h:213:36:
|
||||
note: expected 'void * (*)(void *)' but argument is of type 'void * (*)(void)'
|
||||
213 | void *(*__start_routine) (void *),
|
||||
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ir.c:169:14: note: 'ir_thread' declared here
|
||||
169 | static void *ir_thread() {
|
||||
| ^~~~~~~~~
|
||||
|
||||
Upstream: https://github.com/ralph-irving/squeezelite/commit/1e8fb181366467b6c4046119eedb821e4a5f9adb
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
ir.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ir.c b/ir.c
|
||||
index 84294b6..aeea23c 100644
|
||||
--- a/ir.c
|
||||
+++ b/ir.c
|
||||
@@ -166,7 +166,7 @@ static u32_t ir_key_map(const char *c, const char *r) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static void *ir_thread() {
|
||||
+static void *ir_thread(void *vargp) {
|
||||
char *code;
|
||||
|
||||
while (fd > 0 && LIRC(i, nextcode, &code) == 0) {
|
||||
--
|
||||
2.47.3
|
||||
|
||||
49
package/squeezelite/Config.in
Normal file
49
package/squeezelite/Config.in
Normal file
@@ -0,0 +1,49 @@
|
||||
config BR2_PACKAGE_SQUEEZELITE
|
||||
bool "squeezelite"
|
||||
depends on BR2_USE_WCHAR # flac
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_USE_MMU # mpg123
|
||||
depends on !BR2_STATIC_LIBS # dlopen
|
||||
select BR2_PACKAGE_ALSA_LIB
|
||||
select BR2_PACKAGE_ALSA_LIB_MIXER
|
||||
select BR2_PACKAGE_FLAC
|
||||
select BR2_PACKAGE_LIBMAD
|
||||
select BR2_PACKAGE_LIBVORBIS
|
||||
select BR2_PACKAGE_MPG123
|
||||
help
|
||||
Logitech Media Server client
|
||||
|
||||
https://github.com/ralph-irving/squeezelite/
|
||||
|
||||
if BR2_PACKAGE_SQUEEZELITE
|
||||
|
||||
config BR2_PACKAGE_SQUEEZELITE_FFMPEG
|
||||
bool "Enable WMA and ALAC decoding"
|
||||
default y
|
||||
depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
|
||||
select BR2_PACKAGE_FFMPEG
|
||||
|
||||
config BR2_PACKAGE_SQUEEZELITE_DSD
|
||||
bool "Enable DSD decoding"
|
||||
|
||||
config BR2_PACKAGE_SQUEEZELITE_LIRC
|
||||
bool "Enable lirc support"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_PACKAGE_LIRC_TOOLS
|
||||
|
||||
comment "lirc support needs a toolchain with C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
|
||||
config BR2_PACKAGE_SQUEEZELITE_RESAMPLE
|
||||
bool "Enable resampling support"
|
||||
select BR2_PACKAGE_LIBSOXR
|
||||
|
||||
config BR2_PACKAGE_SQUEEZELITE_VISEXPORT
|
||||
bool "Enable visualiser support"
|
||||
|
||||
endif
|
||||
|
||||
comment "squeezelite needs a toolchain w/ wchar, NPTL, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS_NPTL \
|
||||
|| BR2_STATIC_LIBS
|
||||
3
package/squeezelite/squeezelite.hash
Normal file
3
package/squeezelite/squeezelite.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 dae15fe640111895c99a3aa561a3448d3ce43ab695c2006828e621c51023b588 squeezelite-72e1fd8abfa9b2f8e9636f033247526920878718.tar.gz
|
||||
sha256 6c9ecc7ee5e0a793b04669128191cf1f250b4e9dc6e1130aa050619b39ab71d0 LICENSE.txt
|
||||
53
package/squeezelite/squeezelite.mk
Normal file
53
package/squeezelite/squeezelite.mk
Normal file
@@ -0,0 +1,53 @@
|
||||
################################################################################
|
||||
#
|
||||
# squeezelite
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SQUEEZELITE_VERSION = 72e1fd8abfa9b2f8e9636f033247526920878718
|
||||
SQUEEZELITE_SITE = $(call github,ralph-irving,squeezelite,$(SQUEEZELITE_VERSION))
|
||||
SQUEEZELITE_LICENSE = GPL-3.0
|
||||
SQUEEZELITE_LICENSE_FILES = LICENSE.txt
|
||||
SQUEEZELITE_DEPENDENCIES = alsa-lib flac libmad libvorbis mpg123
|
||||
SQUEEZELITE_MAKE_OPTS = -DLINKALL
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FAAD2),y)
|
||||
SQUEEZELITE_DEPENDENCIES += faad2
|
||||
else
|
||||
SQUEEZELITE_MAKE_OPTS += -DNO_FAAD
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQUEEZELITE_FFMPEG),y)
|
||||
SQUEEZELITE_DEPENDENCIES += ffmpeg
|
||||
SQUEEZELITE_MAKE_OPTS += -DFFMPEG
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQUEEZELITE_DSD),y)
|
||||
SQUEEZELITE_MAKE_OPTS += -DDSD
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQUEEZELITE_LIRC),y)
|
||||
SQUEEZELITE_DEPENDENCIES += lirc-tools
|
||||
SQUEEZELITE_MAKE_OPTS += -DIR
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQUEEZELITE_RESAMPLE),y)
|
||||
SQUEEZELITE_DEPENDENCIES += libsoxr
|
||||
SQUEEZELITE_MAKE_OPTS += -DRESAMPLE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQUEEZELITE_VISEXPORT),y)
|
||||
SQUEEZELITE_MAKE_OPTS += -DVISEXPORT
|
||||
endif
|
||||
|
||||
define SQUEEZELITE_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
||||
OPTS="$(SQUEEZELITE_MAKE_OPTS)" -C $(@D) all
|
||||
endef
|
||||
|
||||
define SQUEEZELITE_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/squeezelite \
|
||||
$(TARGET_DIR)/usr/bin/squeezelite
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user