Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
From f558b8656efe8bba7dd94f4acfceb1294a7ded22 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Thu, 27 Aug 2026 08:59:32 +0200
|
||||
Subject: [PATCH] cmake: fix finding bundled GCEM with a sysroot
|
||||
|
||||
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE may be set to ONLY when cross
|
||||
compiling, to ensure that header searches use the target sysroot
|
||||
instead of accidentally finding host headers.
|
||||
|
||||
This causes find_path() to re-root the absolute path to the bundled
|
||||
GCEM headers under the target sysroot, making FindGCEM miss
|
||||
gcem/include/gcem.hpp in situations where
|
||||
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE is set to ONLY.
|
||||
|
||||
To fix this, this commit passes NO_CMAKE_FIND_ROOT_PATH to prevent
|
||||
sysroot re-rooting when searching this source-tree path. It allows to
|
||||
properly detected gcem/include/gcem.hpp and avoid the download if
|
||||
already present.
|
||||
|
||||
Upstream: https://github.com/FluidSynth/fluidsynth/pull/1835
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
cmake_admin/FindGCEM.cmake | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/cmake_admin/FindGCEM.cmake b/cmake_admin/FindGCEM.cmake
|
||||
index 980951cc..e02d97f8 100644
|
||||
--- a/cmake_admin/FindGCEM.cmake
|
||||
+++ b/cmake_admin/FindGCEM.cmake
|
||||
@@ -23,7 +23,7 @@ This will define the following variables:
|
||||
#]=======================================================================]
|
||||
|
||||
# Find the headers and library
|
||||
-find_path(GCEM_INCLUDE_DIR NAMES "gcem.hpp" PATHS "${CMAKE_CURRENT_SOURCE_DIR}/gcem/include")
|
||||
+find_path(GCEM_INCLUDE_DIR NAMES "gcem.hpp" PATHS "${CMAKE_CURRENT_SOURCE_DIR}/gcem/include" NO_CMAKE_FIND_ROOT_PATH)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
--
|
||||
2.55.0
|
||||
|
||||
134
package/fluidsynth/Config.in
Normal file
134
package/fluidsynth/Config.in
Normal file
@@ -0,0 +1,134 @@
|
||||
config BR2_PACKAGE_FLUIDSYNTH
|
||||
bool "fluidsynth"
|
||||
depends on BR2_USE_WCHAR # libglib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
|
||||
depends on BR2_USE_MMU # libglib2
|
||||
# the .pc file installed by fluidsynth does not mention its
|
||||
# indirect dependencies in Libs.private.
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
help
|
||||
FluidSynth is a real-time software synthesizer based on the
|
||||
SoundFont 2 specifications and has reached widespread
|
||||
distribution. FluidSynth itself does not have a graphical
|
||||
user interface, but due to its powerful API several
|
||||
applications utilize it and it has even found its way onto
|
||||
embedded systems and is used in some mobile apps.
|
||||
|
||||
http://www.fluidsynth.org/
|
||||
|
||||
if BR2_PACKAGE_FLUIDSYNTH
|
||||
|
||||
comment "Output support"
|
||||
|
||||
config BR2_PACKAGE_FLUIDSYNTH_ALSA_LIB
|
||||
bool "alsa"
|
||||
default y
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
select BR2_PACKAGE_ALSA_LIB
|
||||
select BR2_PACKAGE_ALSA_LIB_RAWMIDI
|
||||
select BR2_PACKAGE_ALSA_LIB_SEQ
|
||||
help
|
||||
Enable alsa support.
|
||||
|
||||
comment "alsa support needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_FLUIDSYNTH_JACK2
|
||||
bool "jack2"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # jack2
|
||||
depends on BR2_USE_MMU # jack2
|
||||
depends on BR2_INSTALL_LIBSTDCPP # jack2
|
||||
depends on !BR2_STATIC_LIBS # jack2
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # jack2
|
||||
select BR2_PACKAGE_JACK2
|
||||
help
|
||||
Enable jack support.
|
||||
|
||||
comment "jack support needs a toolchain w/ dynamic library, threads, C++"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_FLUIDSYNTH_LIBSNDFILE
|
||||
bool "libsndfile"
|
||||
select BR2_PACKAGE_LIBSNDFILE
|
||||
help
|
||||
Enable libsndfile support, for writing output to WAV files.
|
||||
|
||||
config BR2_PACKAGE_FLUIDSYNTH_PORTAUDIO
|
||||
bool "portaudio"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
select BR2_PACKAGE_PORTAUDIO
|
||||
help
|
||||
Enable portaudio support.
|
||||
|
||||
comment "portaudio support needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_FLUIDSYNTH_PULSEAUDIO
|
||||
bool "pulseaudio"
|
||||
depends on BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC # pulseaudio
|
||||
depends on BR2_USE_WCHAR # pulseaudio
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # pulseaudio
|
||||
depends on !BR2_STATIC_LIBS # pulseaudio
|
||||
depends on BR2_USE_MMU # pulseaudio
|
||||
select BR2_PACKAGE_PULSEAUDIO
|
||||
help
|
||||
Enable PulseAudio support.
|
||||
|
||||
comment "pulseaudio support needs a toolchain w/ dynamic library, wchar, threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC
|
||||
depends on BR2_STATIC_LIBS || !BR2_USE_MMU || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_FLUIDSYNTH_SDL3
|
||||
bool "sdl3"
|
||||
select BR2_PACKAGE_SDL3
|
||||
help
|
||||
Enable SDL3 audio support.
|
||||
|
||||
comment "Misc options"
|
||||
|
||||
config BR2_PACKAGE_FLUIDSYNTH_DBUS
|
||||
bool "dbus"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU
|
||||
select BR2_PACKAGE_DBUS
|
||||
help
|
||||
Enable dbus support.
|
||||
|
||||
comment "dbus support needs a toolchain w/ threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_FLUIDSYNTH_FLOATS
|
||||
bool "32-bit single precision float"
|
||||
help
|
||||
Enable 32-bit single precision float support, instead of
|
||||
64-bit double precision floats for DSP samples.
|
||||
|
||||
config BR2_PACKAGE_FLUIDSYNTH_NATIVE_DLS
|
||||
bool "Native DLS soundfont"
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
|
||||
help
|
||||
Enable the native DLS soundfont format support.
|
||||
|
||||
comment "native dls soundfont support needs gcc >= 7"
|
||||
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
|
||||
config BR2_PACKAGE_FLUIDSYNTH_READLINE
|
||||
bool "readline"
|
||||
select BR2_PACKAGE_READLINE
|
||||
help
|
||||
Enable readline support, for better line editing in FluidSynth
|
||||
shell.
|
||||
|
||||
endif # BR2_PACKAGE_FLUIDSYNTH
|
||||
|
||||
comment "fluidsynth needs a toolchain w/ threads, wchar, dynamic library, C++"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP
|
||||
4
package/fluidsynth/fluidsynth.hash
Normal file
4
package/fluidsynth/fluidsynth.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally computed
|
||||
sha256 ce27840221ab00dd59bf27e85ecbba480c6c2a7c9fbec4243658f68f59c07f4a fluidsynth-2.5.7.tar.gz
|
||||
sha256 34ab0ee87a9eb26d3087fa9b49c2572ea8ee03db0c9705b83648301a3a3fc172 gcem-012ae73c6d0a2cb09ffe86475f5c6fba3926e200.tar.gz
|
||||
sha256 20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95 LICENSE
|
||||
102
package/fluidsynth/fluidsynth.mk
Normal file
102
package/fluidsynth/fluidsynth.mk
Normal file
@@ -0,0 +1,102 @@
|
||||
################################################################################
|
||||
#
|
||||
# fluidsynth
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FLUIDSYNTH_VERSION = 2.5.7
|
||||
FLUIDSYNTH_SITE = $(call github,FluidSynth,fluidsynth,v$(FLUIDSYNTH_VERSION))
|
||||
FLUIDSYNTH_LICENSE = LGPL-2.1+
|
||||
FLUIDSYNTH_LICENSE_FILES = LICENSE
|
||||
FLUIDSYNTH_CPE_ID_VENDOR = fluidsynth
|
||||
FLUIDSYNTH_INSTALL_STAGING = YES
|
||||
FLUIDSYNTH_DEPENDENCIES = libglib2
|
||||
|
||||
FLUIDSYNTH_GCEM_VERSION = 012ae73c6d0a2cb09ffe86475f5c6fba3926e200
|
||||
FLUIDSYNTH_EXTRA_DOWNLOADS = $(call github,kthohr,gcem,$(FLUIDSYNTH_GCEM_VERSION))/gcem-$(FLUIDSYNTH_GCEM_VERSION).tar.gz
|
||||
|
||||
define FLUIDSYNTH_GCEM_EXTRACT
|
||||
$(call suitable-extractor,$(notdir $(FLUIDSYNTH_EXTRA_DOWNLOADS))) \
|
||||
$(FLUIDSYNTH_DL_DIR)/$(notdir $(FLUIDSYNTH_EXTRA_DOWNLOADS)) | \
|
||||
$(TAR) -C $(@D)/ $(TAR_OPTIONS) -
|
||||
rmdir $(@D)/gcem
|
||||
ln -sf gcem-$(FLUIDSYNTH_GCEM_VERSION) $(@D)/gcem
|
||||
endef
|
||||
FLUIDSYNTH_POST_EXTRACT_HOOKS += FLUIDSYNTH_GCEM_EXTRACT
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUIDSYNTH_ALSA_LIB),y)
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-alsa=1
|
||||
FLUIDSYNTH_DEPENDENCIES += alsa-lib
|
||||
else
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-alsa=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUIDSYNTH_DBUS),y)
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-dbus=1
|
||||
FLUIDSYNTH_DEPENDENCIES += dbus
|
||||
else
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-dbus=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUIDSYNTH_FLOATS),y)
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-floats=1
|
||||
else
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-floats=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUIDSYNTH_JACK2),y)
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-jack=1
|
||||
FLUIDSYNTH_DEPENDENCIES += jack2
|
||||
else
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-jack=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUIDSYNTH_LIBSNDFILE),y)
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-libsndfile=1
|
||||
FLUIDSYNTH_DEPENDENCIES += libsndfile
|
||||
else
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-libsndfile=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUIDSYNTH_NATIVE_DLS),y)
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-native-dls=1
|
||||
else
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-native-dls=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUIDSYNTH_PORTAUDIO),y)
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-portaudio=1
|
||||
FLUIDSYNTH_DEPENDENCIES += portaudio
|
||||
else
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-portaudio=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUIDSYNTH_PULSEAUDIO),y)
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-pulseaudio=1
|
||||
FLUIDSYNTH_DEPENDENCIES += pulseaudio
|
||||
else
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-pulseaudio=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUIDSYNTH_READLINE),y)
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-readline=1
|
||||
FLUIDSYNTH_DEPENDENCIES += readline
|
||||
else
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-readline=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUIDSYNTH_SDL3),y)
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-sdl3=1
|
||||
FLUIDSYNTH_DEPENDENCIES += sdl3
|
||||
else
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-sdl3=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-systemd=1
|
||||
FLUIDSYNTH_DEPENDENCIES += systemd
|
||||
else
|
||||
FLUIDSYNTH_CONF_OPTS += -Denable-systemd=0
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user