pmaports/device/testing/firmware-sony-ninges/copy-firmware.initd
Max Buchholz c1d23e5fdb
sony-pioneer: new device (MR 4207)
Note by ollieparanoid:
Based on Konrad Dybcio's great work in MR 1645.

[ci:skip-build]: already built successfully in CI
2023-07-05 23:00:36 +02:00

19 lines
680 B
Text

#!/sbin/openrc-run
description="Copy firmware to rootfs"
start() {
# Set up directories (if needed)
mkdir -p /opt/firmware/modem
mkdir -p /opt/firmware/odm
mkdir -p /lib/firmware/qcom/venus-4.4
# Copy all the firmware over (except Venus)
rsync -r -l -p --owner=root --group=root --chmod=0755 --exclude 'venus*' /opt/firmware/modem/image/* /lib/firmware/
# Copy Venus FW over to the correct location
rsync -r -l -p --owner=root --group=root --chmod=0755 /opt/firmware/modem/image/venus* /lib/firmware/qcom/venus-4.4
# Get Adreno & ZAP firmware from ODM package
rsync -r -l -p --owner=root --group=root --chmod=0755 /opt/firmware/odm/firmware/* /lib/firmware/qcom
}