Explorar o código

add sooperlooper slconsole arm binary

Johan Le Baut hai 1 semana
pai
achega
10678dd36f

+ 2 - 2
README.md

@@ -128,7 +128,7 @@ For LSP and Dragonfly Reverb, the YAML declares tags and release URLs, and the i
 
 ### SooperLooper service
 
-`install sooperlooper` installs and enables an explicit `systemd --user` service; it is excluded from `install all`. The service runs the ARM64 artifact at `artifacts/sooperlooper/arm64/current/sooperlooper` through `/usr/bin/pw-jack` and loads `config/sooperlooper/fcb1010.slb`. The `-l` and `-c` arguments are rendered from the looper component's `loop_count` and `channels_per_loop` in `config/desired-state.yaml` (currently 1 and 4); `-t` is configured by `deployment.sooperlooper.timeout_seconds` (currently 30).
+`install sooperlooper` installs and enables an explicit `systemd --user` service; it is excluded from `install all`. The service runs the ARM64 artifact at `artifacts/sooperlooper/arm64/current/sooperlooper` through `/usr/bin/pw-jack` and loads `config/sooperlooper/fcb1010.slb`. The `-l` and `-c` arguments are rendered from the looper component's `loop_count` and `channels_per_loop` in `config/desired-state.yaml` (currently 1 and 4); `-t` is configured by `deployment.sooperlooper.timeout_seconds` (currently 30). The same build also produces the optional ARM64 `slconsole` OSC terminal client at `artifacts/sooperlooper/arm64/current/slconsole`; it is not installed or launched by the service.
 
 After startup, the unit waits four seconds and sends `/sl/0/set sf discrete_prefader 0` to `127.0.0.1:9951` with `/usr/bin/oscsend`. The delay, OSC endpoint, and `discrete_prefader` value are also declared in the desired state. This initializes the control expected by the FCB's volume bindings. It does not establish the audio links between SooperLooper, the sources, and the mixer; those routes and target behavior remain to be verified.
 
@@ -215,7 +215,7 @@ docker run --rm --platform linux/arm64 --user "$(id -u):$(id -g)" -v "$PWD:/work
 docker run --rm --platform linux/arm64 --user "$(id -u):$(id -g)" -v "$PWD:/workspace" rigforge-arm64-build:debian13 mod-host
 ```
 
-Use task `all` to build both programs in sequence. The shared image contains the union of their compiler dependencies; each task retrieves the source tag from YAML, records the resolved commit, builds only its target, checks runtime dependencies, hashes the binary, and writes its executable, `runtime-dependencies.txt`, and `provenance.json` under `artifacts/<project>/arm64/current/`. The build checks that it is running in an ARM64 Debian container. Each successful task replaces only its own prior output, and staged output is removed on failure. Run the container with the host UID/GID as above so generated files remain accessible to the host user. To update a source version, change its `deployment.sooperlooper.tag` or `deployment.mod_host.tag`, validate the YAML, then rerun the task. Buildx `--load` for one ARM64 platform and `docker run --platform linux/arm64` need binfmt/QEMU on AMD64 hosts.
+Use task `all` to build both programs in sequence. The shared image contains the union of their compiler dependencies; each task retrieves the source tag from YAML, records the resolved commit, builds only its target, checks runtime dependencies, hashes the binaries, and writes its executable(s), `runtime-dependencies.txt`, and `provenance.json` under `artifacts/<project>/arm64/current/`. The SooperLooper task builds both `sooperlooper` and `slconsole`. The build checks that it is running in an ARM64 Debian container. Each successful task replaces only its own prior output, and staged output is removed on failure. Run the container with the host UID/GID as above so generated files remain accessible to the host user. To update a source version, change its `deployment.sooperlooper.tag` or `deployment.mod_host.tag`, validate the YAML, then rerun the task. Buildx `--load` for one ARM64 platform and `docker run --platform linux/arm64` need binfmt/QEMU on AMD64 hosts.
 
 SooperLooper's tagged source does not define ARM64 atomics in `libs/pbd/pbd/atomic.h` or `src/atomic.h`; the build task injects GCC `__atomic` operations for AArch64 in its temporary clone, leaving the upstream source repository untouched. This local portability patch is recorded in provenance. The image only compiles; it does not deploy or run either program on the Pi. Successful compilation does not establish runtime compatibility: inspect dependencies and test on the target. Review upstream licenses and artifact size before committing generated binaries and provenance.
 

+ 7 - 1
artifacts/sooperlooper/arm64/current/provenance.json

@@ -4,6 +4,12 @@
   "commit": "946b92e342bfb31c731671463995d31daf79fc0e",
   "platform": "linux/arm64",
   "artifact": "sooperlooper",
-  "sha256": "129dda9ada2969df9eb9371638293987553bb4f26bd26f251d746f81a4d1f3db",
+  "sha256": "4f04bd1d889590b67f6143f10e52d9680d5b43794f24a0e63b72f346d8f61b2f",
+  "additional_artifacts": [
+    {
+      "artifact": "slconsole",
+      "sha256": "ae1a92adfda835b6a265918faa4053f47db06772f5caf7252d58ffcbb8824161"
+    }
+  ],
   "local_patches": ["GCC AArch64 atomic operations in libs/pbd/pbd/atomic.h and src/atomic.h"]
 }

+ 37 - 25
artifacts/sooperlooper/arm64/current/runtime-dependencies.txt

@@ -1,25 +1,37 @@
-	linux-vdso.so.1 (0x000071c8457a8000)
-	libjack.so.0 => /lib/aarch64-linux-gnu/libjack.so.0 (0x000071c844e20000)
-	liblo.so.7 => /lib/aarch64-linux-gnu/liblo.so.7 (0x000071c844de0000)
-	libsigc-2.0.so.0 => /lib/aarch64-linux-gnu/libsigc-2.0.so.0 (0x000071c844db0000)
-	librubberband.so.2 => /lib/aarch64-linux-gnu/librubberband.so.2 (0x000071c844d30000)
-	libsamplerate.so.0 => /lib/aarch64-linux-gnu/libsamplerate.so.0 (0x000071c844ba0000)
-	libsndfile.so.1 => /lib/aarch64-linux-gnu/libsndfile.so.1 (0x000071c844af0000)
-	libasound.so.2 => /lib/aarch64-linux-gnu/libasound.so.2 (0x000071c8449b0000)
-	libxml2.so.2 => /lib/aarch64-linux-gnu/libxml2.so.2 (0x000071c8447e0000)
-	libstdc++.so.6 => /lib/aarch64-linux-gnu/libstdc++.so.6 (0x000071c844570000)
-	libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x000071c8444c0000)
-	libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x000071c844480000)
-	libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x000071c8442c0000)
-	libdb-5.3.so => /lib/aarch64-linux-gnu/libdb-5.3.so (0x000071c8440f0000)
-	/lib/ld-linux-aarch64.so.1 (0x000071c845750000)
-	libfftw3.so.3 => /lib/aarch64-linux-gnu/libfftw3.so.3 (0x000071c844010000)
-	libFLAC.so.14 => /lib/aarch64-linux-gnu/libFLAC.so.14 (0x000071c843f90000)
-	libvorbis.so.0 => /lib/aarch64-linux-gnu/libvorbis.so.0 (0x000071c843f40000)
-	libvorbisenc.so.2 => /lib/aarch64-linux-gnu/libvorbisenc.so.2 (0x000071c843e80000)
-	libopus.so.0 => /lib/aarch64-linux-gnu/libopus.so.0 (0x000071c843b10000)
-	libogg.so.0 => /lib/aarch64-linux-gnu/libogg.so.0 (0x000071c843ae0000)
-	libmpg123.so.0 => /lib/aarch64-linux-gnu/libmpg123.so.0 (0x000071c843a70000)
-	libmp3lame.so.0 => /lib/aarch64-linux-gnu/libmp3lame.so.0 (0x000071c8439e0000)
-	libz.so.1 => /lib/aarch64-linux-gnu/libz.so.1 (0x000071c8439a0000)
-	liblzma.so.5 => /lib/aarch64-linux-gnu/liblzma.so.5 (0x000071c843950000)
+[sooperlooper]
+	linux-vdso.so.1 (0x000075b088a6b000)
+	libjack.so.0 => /lib/aarch64-linux-gnu/libjack.so.0 (0x000075b0800e0000)
+	liblo.so.7 => /lib/aarch64-linux-gnu/liblo.so.7 (0x000075b0800a0000)
+	libsigc-2.0.so.0 => /lib/aarch64-linux-gnu/libsigc-2.0.so.0 (0x000075b080070000)
+	librubberband.so.2 => /lib/aarch64-linux-gnu/librubberband.so.2 (0x000075b07fff0000)
+	libsamplerate.so.0 => /lib/aarch64-linux-gnu/libsamplerate.so.0 (0x000075b07fe60000)
+	libsndfile.so.1 => /lib/aarch64-linux-gnu/libsndfile.so.1 (0x000075b07fdb0000)
+	libasound.so.2 => /lib/aarch64-linux-gnu/libasound.so.2 (0x000075b07fc70000)
+	libxml2.so.2 => /lib/aarch64-linux-gnu/libxml2.so.2 (0x000075b07faa0000)
+	libstdc++.so.6 => /lib/aarch64-linux-gnu/libstdc++.so.6 (0x000075b07f830000)
+	libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x000075b07f780000)
+	libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x000075b07f740000)
+	libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x000075b07f580000)
+	libdb-5.3.so => /lib/aarch64-linux-gnu/libdb-5.3.so (0x000075b07f3b0000)
+	/lib/ld-linux-aarch64.so.1 (0x000075b088a10000)
+	libfftw3.so.3 => /lib/aarch64-linux-gnu/libfftw3.so.3 (0x000075b07f2d0000)
+	libFLAC.so.14 => /lib/aarch64-linux-gnu/libFLAC.so.14 (0x000075b07f250000)
+	libvorbis.so.0 => /lib/aarch64-linux-gnu/libvorbis.so.0 (0x000075b07f200000)
+	libvorbisenc.so.2 => /lib/aarch64-linux-gnu/libvorbisenc.so.2 (0x000075b07f140000)
+	libopus.so.0 => /lib/aarch64-linux-gnu/libopus.so.0 (0x000075b07edd0000)
+	libogg.so.0 => /lib/aarch64-linux-gnu/libogg.so.0 (0x000075b07eda0000)
+	libmpg123.so.0 => /lib/aarch64-linux-gnu/libmpg123.so.0 (0x000075b07ed30000)
+	libmp3lame.so.0 => /lib/aarch64-linux-gnu/libmp3lame.so.0 (0x000075b07eca0000)
+	libz.so.1 => /lib/aarch64-linux-gnu/libz.so.1 (0x000075b07ec60000)
+	liblzma.so.5 => /lib/aarch64-linux-gnu/liblzma.so.5 (0x000075b07ec10000)
+
+[slconsole]
+	linux-vdso.so.1 (0x000079ca992a5000)
+	liblo.so.7 => /lib/aarch64-linux-gnu/liblo.so.7 (0x000079ca909c0000)
+	libncurses.so.6 => /lib/aarch64-linux-gnu/libncurses.so.6 (0x000079ca90970000)
+	libtinfo.so.6 => /lib/aarch64-linux-gnu/libtinfo.so.6 (0x000079ca90920000)
+	libstdc++.so.6 => /lib/aarch64-linux-gnu/libstdc++.so.6 (0x000079ca906b0000)
+	libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x000079ca90670000)
+	libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x000079ca904b0000)
+	libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x000079ca90400000)
+	/lib/ld-linux-aarch64.so.1 (0x000079ca99250000)

BIN=BIN
artifacts/sooperlooper/arm64/current/slconsole


BIN=BIN
artifacts/sooperlooper/arm64/current/sooperlooper


+ 18 - 4
build/arm64/build-sooperlooper.sh

@@ -122,16 +122,23 @@ for filename in sys.argv[1:]:
 PY
 
 make -C libs -j"$(nproc)"
-make -C src -j"$(nproc)" sooperlooper
+make -C src -j"$(nproc)" sooperlooper slconsole
 
 install -m 0755 src/sooperlooper "$temporary_directory/sooperlooper"
-ldd "$temporary_directory/sooperlooper" > "$temporary_directory/runtime-dependencies.txt"
+install -m 0755 src/slconsole "$temporary_directory/slconsole"
+{
+    printf '%s\n' '[sooperlooper]'
+    ldd "$temporary_directory/sooperlooper"
+    printf '\n%s\n' '[slconsole]'
+    ldd "$temporary_directory/slconsole"
+} > "$temporary_directory/runtime-dependencies.txt"
 if grep -F 'not found' "$temporary_directory/runtime-dependencies.txt"; then
-    printf '%s\n' "Unresolved runtime dependencies in the compiled executable." >&2
+    printf '%s\n' "Unresolved runtime dependencies in a compiled executable." >&2
     exit 1
 fi
 
 binary_sha256=$(sha256sum "$temporary_directory/sooperlooper" | cut -d ' ' -f 1)
+console_sha256=$(sha256sum "$temporary_directory/slconsole" | cut -d ' ' -f 1)
 cat > "$temporary_directory/provenance.json" <<EOF
 {
   "source_url": "$source_url",
@@ -140,6 +147,12 @@ cat > "$temporary_directory/provenance.json" <<EOF
   "platform": "linux/arm64",
   "artifact": "sooperlooper",
   "sha256": "$binary_sha256",
+  "additional_artifacts": [
+    {
+      "artifact": "slconsole",
+      "sha256": "$console_sha256"
+    }
+  ],
   "local_patches": ["GCC AArch64 atomic operations in libs/pbd/pbd/atomic.h and src/atomic.h"]
 }
 EOF
@@ -160,4 +173,5 @@ temporary_directory=
 rm -rf "$previous_directory"
 printf 'Built %s at %s\n' "$tag" "$source_commit"
 printf 'Artifact: %s/current/sooperlooper\n' "$artifact_directory"
-printf 'SHA-256: %s\n' "$binary_sha256"
+printf 'Artifact: %s/current/slconsole\n' "$artifact_directory"
+printf 'SHA-256: sooperlooper=%s slconsole=%s\n' "$binary_sha256" "$console_sha256"