Commit f9fa8f24 authored by Florent Revest's avatar Florent Revest

Simplify patchram script

parent 0f80bfc9
[Unit] [Unit]
Description=Load firmware into BCM20715A1 bluetooth chip Description=Load firmware into broadcom bluetooth chip
After=dev-ttyHS99.device
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/bin/patchram.sh ExecStart=/bin/echo This script should be device specific
[Install] [Install]
WantedBy=basic.target WantedBy=basic.target
#!/bin/bash
echo This script should be device specific
FILESEXTRAPATHS_prepend := "${THISDIR}/brcm-patchram-plus:" FILESEXTRAPATHS_prepend := "${THISDIR}/brcm-patchram-plus:"
SRC_URI += "file://patchram.service \ SRC_URI += "file://patchram.service"
file://patchram.sh"
LICENSE = "BSD" LICENSE = "BSD"
PACKAGE_ARCH = "${MACHINE_ARCH}" PACKAGE_ARCH = "${MACHINE_ARCH}"
...@@ -9,11 +8,7 @@ do_install_append() { ...@@ -9,11 +8,7 @@ do_install_append() {
install -d ${D}/lib/systemd/system/multi-user.target.wants/ install -d ${D}/lib/systemd/system/multi-user.target.wants/
cp ${WORKDIR}/patchram.service ${D}/lib/systemd/system/ cp ${WORKDIR}/patchram.service ${D}/lib/systemd/system/
ln -s ../patchram.service ${D}/lib/systemd/system/multi-user.target.wants/patchram.service 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/" 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