Skip to content
Snippets Groups Projects
Commit d9f0f135 authored by Thierry Escande's avatar Thierry Escande
Browse files

openharmony-standard-3.0: Enable System Abilities Manager service


This enables the samgr service and sets it to start after the param
service.

Signed-off-by: default avatarThierry Escande <thierry.escande@huawei.com>

Merge me with 600b3ba
parent 87f40c43
No related branches found
No related tags found
1 merge request!70Add systemd units for OpenHarmony 3.0
[Unit] [Unit]
Description=OpenHarmony SystemAbilityFramework service Description=OpenHarmony SystemAbilityFramework service
Requires=param.service
After=param.service
[Service] [Service]
Type=exec Type=exec
......
...@@ -688,7 +688,16 @@ FILES:${PN}-samgr = " \ ...@@ -688,7 +688,16 @@ FILES:${PN}-samgr = " \
${bindir}/samgr \ ${bindir}/samgr \
${libdir}/libsamgr*${SOLIBS} \ ${libdir}/libsamgr*${SOLIBS} \
${libdir}/liblsamgr*${SOLIBS} \ ${libdir}/liblsamgr*${SOLIBS} \
${systemd_unitdir}/samgr.service \
" "
SYSTEMD_PACKAGES += "${PN}-samgr"
SYSTEMD_SERVICE:${PN}-samgr = "samgr.service"
SRC_URI += "file://samgr.service"
do_install:append() {
install -d ${D}/${systemd_unitdir}/system
install -m 644 ${WORKDIR}/samgr.service ${D}${systemd_unitdir}/system/
rm -f ${D}${sysconfdir}/openharmony/init/samgr_standard.cfg
}
RDEPENDS:${PN}-samgr += "musl libcxx" RDEPENDS:${PN}-samgr += "musl libcxx"
RDEPENDS:${PN}-samgr += "${PN}-hilog ${PN}-ipc ${PN}-libutils ${PN}-thirdparty-libxml2" RDEPENDS:${PN}-samgr += "${PN}-hilog ${PN}-ipc ${PN}-libutils ${PN}-thirdparty-libxml2"
RDEPENDS:${PN} += "${PN}-samgr" RDEPENDS:${PN} += "${PN}-samgr"
...@@ -702,6 +711,8 @@ do_install_ptest:append() { ...@@ -702,6 +711,8 @@ do_install_ptest:append() {
install -D ${WORKDIR}/run-ptest ${D}${libdir}/${BPN}-samgr/ptest/run-ptest install -D ${WORKDIR}/run-ptest ${D}${libdir}/${BPN}-samgr/ptest/run-ptest
mv ${D}${PTEST_PATH}/unittest/samgr/samgr ${D}${libdir}/${BPN}-samgr/ptest/unittest mv ${D}${PTEST_PATH}/unittest/samgr/samgr ${D}${libdir}/${BPN}-samgr/ptest/unittest
rmdir ${D}${PTEST_PATH}/unittest/samgr rmdir ${D}${PTEST_PATH}/unittest/samgr
echo "samgr.service" > ${D}${libdir}/${BPN}-samgr/ptest/systemd-units
} }
RDEPENDS:${PN}-samgr-ptest += "musl libcxx" RDEPENDS:${PN}-samgr-ptest += "musl libcxx"
RDEPENDS:${PN}-samgr-ptest += "${PN}-samgr ${PN}-libutils ${PN}-hilog ${PN}-ipc" RDEPENDS:${PN}-samgr-ptest += "${PN}-samgr ${PN}-libutils ${PN}-hilog ${PN}-ipc"
......
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