toes-image-builder/audio/build-audio.sh
2026-05-18 06:46:40 +00:00

20 lines
419 B
Bash
Executable File

#! /bin/bash
set -ex
# builds the audio overlay _inside_ the image.
if [ ! -s /tmp/toesaudio.dts ]; then
echo "missing /tmp/toesaudio.dts" >&2
exit 1
fi
mkdir -p /boot/firmware/overlays
dtc -@ -I dts -O dtb -o \
"/boot/firmware/overlays/toesaudio.dtbo" \
"/tmp/toesaudio.dts"
if [ ! -s /boot/firmware/overlays/toesaudio.dtbo ]; then
echo "failed to build /boot/firmware/overlays/toesaudio.dtbo" >&2
exit 1
fi