Commit 9094604f authored by Alessio Igor Bogani's avatar Alessio Igor Bogani
Browse files

Include unit file

parent 90bb5ab3
......@@ -15,6 +15,8 @@ ReadADC.out: ReadADC.c
install: text.bin text1.bin
install -d $(DESTDIR)/usr/lib/firmware
install -m 0644 $? $(DESTDIR)/usr/lib/firmware
install -d $(DESTDIR)/usr/lib/systemd/system
install -m 0644 a2720-fw.service $(DESTDIR)/usr/lib/systemd/system
clean:
rm -f *.asm *.map *.out *.obj *.bin
[Unit]
Description=Load A2720 PRU firmware
Requires=local-fs.target systemd-modules-load.service
ConditionPathExists=/etc/a2720.cfg
After=systemd-modules-load.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'a2720ctl load /usr/lib/firmware/text.bin /usr/lib/firmware/text1.bin'
ExecStart=/bin/sh -c 'a2720ctl file'
ExecStart=/bin/sh -c 'a2720ctl start'
ExecStop=/bin/sh -c 'a2720ctl stop'
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
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