Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
From aebf4fb23df2c4ec8857aef05a468991054a58c1 Mon Sep 17 00:00:00 2001
From: Thomas Perale <thomas.perale@mind.be>
Date: Thu, 19 Sep 2024 18:57:16 +0200
Subject: [PATCH] [sink_flac] missing SWAPS definition
On big endian architecture with libflac enabled the following error
would happen when cross-compiling aubio with buildroot.
```
[ 75/243] Linking build/tests/test-pitchshift
/home/autobuild/autobuild/instance-16/output-1/per-package/aubio/host/bin/../lib/gcc/mips64-buildroot-linux-gnu/13.3.0/../../../../mips64-buildroot-linux-gnu/bin/ld: src/libaubio.so: undefined reference to `SWAPS'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/home/autobuild/autobuild/instance-16/output-1/build/aubio-152d6819b360c2e7b379ee3f373d444ab3df0895/build'
Build failed
```
Indeed there is a missing definition of the `SWAPS` macro in
`/src/io/sink_flac.c` file.
This commit copy the `SWAPS` definition from the
`/src/io/sink_wavwrite.c` file in `sink_flac.c` to fix this issue.
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
Upstream: https://github.com/aubio/aubio/pull/407
---
src/io/sink_flac.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/io/sink_flac.c b/src/io/sink_flac.c
index 04144793..0a1cbc26 100644
--- a/src/io/sink_flac.c
+++ b/src/io/sink_flac.c
@@ -36,6 +36,9 @@
#define MAX_WRITE_SIZE 4096
+// swap endian of a short
+#define SWAPS(x) ((x & 0xff) << 8) | ((x & 0xff00) >> 8)
+
// swap host to little endian
#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
#define HTOLES(x) SWAPS(x)
--
2.46.0

View File

@@ -0,0 +1,37 @@
From d79fa30d780eca95548352ce01cf9104f46aeec4 Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd@kuhls.net>
Date: Sun, 5 Oct 2025 11:37:52 +0200
Subject: [PATCH] [source_avcodec] fix build with ffmpeg 8.0
AV_INPUT_BUFFER_MIN_SIZE was removed with upstream commit
https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=1d66a122df9fd5d8400b05c74462d0082990fc01
A similar fix is used by Arch Linux:
https://gitlab.archlinux.org/archlinux/packaging/packages/aubio/-/commit/bdf858e4291aa170a23c470ac1caf2c827bfd01d
Upstream: https://github.com/aubio/aubio/pull/427
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
src/io/source_avcodec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c
index 71ea8b5f..1fb14bf5 100644
--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -67,7 +67,11 @@
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56, 56, 0)
#define AUBIO_AVCODEC_MAX_BUFFER_SIZE FF_MIN_BUFFER_SIZE
#else
+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 40, 100)
#define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE
+#else
+#define AUBIO_AVCODEC_MAX_BUFFER_SIZE 16384
+#endif
#endif
#if LIBAVCODEC_VERSION_MAJOR >= 59
--
2.47.3

21
package/aubio/Config.in Normal file
View File

@@ -0,0 +1,21 @@
config BR2_PACKAGE_AUBIO
bool "aubio"
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_HAS_THREADS
help
aubio is a tool designed for the extraction of annotations
from audio signals. Its features include segmenting a sound
file before each of its attacks, performing pitch detection,
tapping the beat and producing midi streams from live audio.
Because these tasks are difficult, we thought it was important
to gather them in a dedicated library. To increase the fun, we
have made these algorithms work in a causal way, so as to be
used in real time applications with as low delay as possible.
Functions can be used offline in sound editors and software
samplers, or online in audio effects and virtual instruments.
https://aubio.org
comment "aubio needs a toolchain w/ threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS

4
package/aubio/aubio.hash Normal file
View File

@@ -0,0 +1,4 @@
# Locally computed
sha256 b0e20427750fbfbf017f2b54e41dc0d61ab61335b705bc056ca92a928b2bdd30 aubio-152d6819b360c2e7b379ee3f373d444ab3df0895.tar.gz
# Hash for license file:
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING

68
package/aubio/aubio.mk Normal file
View File

@@ -0,0 +1,68 @@
################################################################################
#
# aubio
#
################################################################################
AUBIO_VERSION = 152d6819b360c2e7b379ee3f373d444ab3df0895
AUBIO_SITE = $(call github,aubio,aubio,$(AUBIO_VERSION))
AUBIO_LICENSE = GPL-3.0+
AUBIO_LICENSE_FILES = COPYING
AUBIO_CPE_ID_VENDOR = aubio
AUBIO_INSTALL_STAGING = YES
AUBIO_DEPENDENCIES = host-pkgconf
AUBIO_CONF_OPTS = \
--disable-docs \
--disable-atlas
# The waf script bundled in aubio 0.4.9 is too old for python3.11
# Similar issue with Jack:
# https://github.com/jackaudio/jack2/issues/898
AUBIO_NEEDS_EXTERNAL_WAF = YES
# Add --notests for each build step to avoid running unit tests on the
# build machine.
AUBIO_WAF_OPTS = --notests
ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
AUBIO_DEPENDENCIES += libsndfile
AUBIO_CONF_OPTS += --enable-sndfile
else
AUBIO_CONF_OPTS += --disable-sndfile
endif
# Could not compile aubio in double precision mode with libsamplerate
ifeq ($(BR2_PACKAGE_LIBSAMPLERATE):$(BR2_PACKAGE_FFTW_DOUBLE),y:)
AUBIO_DEPENDENCIES += libsamplerate
AUBIO_CONF_OPTS += --enable-samplerate
else
AUBIO_CONF_OPTS += --disable-samplerate
endif
ifeq ($(BR2_PACKAGE_JACK2),y)
AUBIO_DEPENDENCIES += jack2
AUBIO_CONF_OPTS += --enable-jack
else
AUBIO_CONF_OPTS += --disable-jack
endif
# fftw3 require double otherwise it will look for fftw3f
ifeq ($(BR2_PACKAGE_FFTW_DOUBLE),y)
AUBIO_CONF_OPTS += --enable-fftw3 --enable-double
AUBIO_DEPENDENCIES += fftw-double
else ifeq ($(BR2_PACKAGE_FFTW_SINGLE),y)
AUBIO_CONF_OPTS += --enable-fftw3f --disable-double
AUBIO_DEPENDENCIES += fftw-single
else
AUBIO_CONF_OPTS += --disable-fftw3
endif
ifeq ($(BR2_PACKAGE_FFMPEG),y)
AUBIO_DEPENDENCIES += ffmpeg
AUBIO_CONF_OPTS += --enable-avcodec
else
AUBIO_CONF_OPTS += --disable-avcodec
endif
$(eval $(waf-package))