Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
A2720
a2720-fw
Commits
9094604f
Commit
9094604f
authored
May 04, 2021
by
Alessio Igor Bogani
Browse files
Include unit file
parent
90bb5ab3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
9094604f
...
...
@@ -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
a2720-fw.service
0 → 100644
View file @
9094604f
[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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment