Commit 4f8c3ffb authored by Florent Revest's avatar Florent Revest

Move heavy stuff from brcm-patchram-plus from device specific layers to meta-asteroid

parent 293a572a
[Unit]
Description=Load firmware into BCM20715A1 bluetooth chip
After=dev-ttyHS99.device
[Service]
Type=simple
ExecStart=/usr/bin/patchram.sh
[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"
LICENSE = "BSD"
PACKAGE_ARCH = "${MACHINE_ARCH}"
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"
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