Commit f9fa8f24 authored by Florent Revest's avatar Florent Revest

Simplify patchram script

parent 0f80bfc9
[Unit]
Description=Load firmware into BCM20715A1 bluetooth chip
After=dev-ttyHS99.device
Description=Load firmware into broadcom bluetooth chip
[Service]
Type=simple
ExecStart=/usr/bin/patchram.sh
ExecStart=/bin/echo This script should be device specific
[Install]
WantedBy=basic.target
#!/bin/bash
echo This script should be device specific
FILESEXTRAPATHS_prepend := "${THISDIR}/brcm-patchram-plus:"
SRC_URI += "file://patchram.service \
file://patchram.sh"
SRC_URI += "file://patchram.service"
LICENSE = "BSD"
PACKAGE_ARCH = "${MACHINE_ARCH}"
......@@ -9,11 +8,7 @@ do_install_append() {
install -d ${D}/lib/systemd/system/multi-user.target.wants/
cp ${WORKDIR}/patchram.service ${D}/lib/systemd/system/
ln -s ../patchram.service ${D}/lib/systemd/system/multi-user.target.wants/patchram.service
install -d ${D}/usr/bin/
cp ${WORKDIR}/patchram.sh ${D}/usr/bin/
chmod +x ${D}/usr/bin/patchram.sh
}
FILES_${PN} += "/lib/systemd/system/"
RDEPENDS_${PN} += "rfkill bash"
RDEPENDS_${PN} += "rfkill"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment