Skip to content
Snippets Groups Projects
Commit 081c364a authored by Robert Drab's avatar Robert Drab Committed by Thierry Escande
Browse files

openharmony-3.0: Add OpenHarmony Device Connector service

Closes https://gitlab.eclipse.org/eclipse/oniro-core/meta-openharmony/-/issues/73



Signed-off-by: default avatarRobert Drab <robert.drab@huawei.com>
Signed-off-by: default avatarThierry Escande <thierry.escande@huawei.com>
parent 652fce77
No related branches found
No related tags found
No related merge requests found
[Unit]
Description=OpenHarmony Device Connector Daemon service
[Service]
Type=oneshot
ExecStart=/bin/echo "OpenHarmony Device Connector Daemon Service"
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
......@@ -270,6 +270,20 @@ if systemctl -q is-enabled inputmethod.service; then
sleep "$STARTUP_CMD_SLEEP"
fi
# trigger: boot?
# "name" : "hdcd",
# "path" : ["/system/bin/hdcd"],
# "socket" : [
# "hdcd seqpacket 660 system system false"
# ],
# "disabled" : 1
if systemctl -q is-enabled hdcd.service; then
setparam persist.hdc.port 35000
sleep "$STARTUP_CMD_SLEEP"
/system/bin/hdcd -t &
fi
if systemctl -q is-enabled faultloggerd.service; then
/usr/bin/install -m 775 -d /data/log/faultlog /data/log/faultlog/faultlogger /data/log/faultlog/temp/
/system/bin/faultloggerd &
......
......@@ -1726,7 +1726,17 @@ RDEPENDS:${PN}-ptest += "${PN}-distributedhardware-devicemanager-ptest"
# //developtools/hdc_standard
PACKAGES =+ "${PN}-hdc"
FILES:${PN}-hdc = "${bindir}/hdcd"
FILES:${PN}-hdc = " \
${bindir}/hdcd \
${systemd_unitdir}/hdcd.service \
"
SYSTEMD_PACKAGES += "${PN}-hdc"
SYSTEMD_SERVICE:${PN}-hdc = "hdcd.service"
SRC_URI += "file://hdcd.service"
do_install:append() {
install -d ${D}/${systemd_unitdir}/system
install -m 644 ${WORKDIR}/hdcd.service ${D}${systemd_unitdir}/system/
}
RDEPENDS:${PN}-hdc += "musl libcxx"
RDEPENDS:${PN}-hdc += "${PN}-libutils ${PN}-syspara libcrypto"
RDEPENDS:${PN} += "${PN}-hdc"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment