20 lines
419 B
Bash
Executable File
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
|