summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-11-26 23:54:19 +0900
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-11-29 23:53:28 +0900
commite55cdc13ad47ece551a111ac4fdee332e6d9fa9c (patch)
treec281e2a10ba07c7b7cd2f3ee9e1958000dab99dd
parentead830d393c392c1d19135cc29239a26c149c0a5 (diff)
Replace to cluster-service from libclusteripc and libclusterapi
Existing AGL Instrument Cluster is not implement cluster service only a framework library. We create cluster service to realize AGL Instrument Cluster based product. This patch add cluster-service and replace from libclusteripc and libclusterapi. Bug-AGL: SPEC-4990 Change-Id: I236eb33376b1a6a8be4c5677b0aa19b3729376c2 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
-rw-r--r--meta-agl-ic-container/recipes-core/cluster-service/cluster-service/cluster-service.service11
-rw-r--r--meta-agl-ic-container/recipes-core/cluster-service/cluster-service_git.bb27
-rw-r--r--meta-agl-ic-container/recipes-platform/packagegroups/packagegroup-agl-ic-core.bb3
3 files changed, 39 insertions, 2 deletions
diff --git a/meta-agl-ic-container/recipes-core/cluster-service/cluster-service/cluster-service.service b/meta-agl-ic-container/recipes-core/cluster-service/cluster-service/cluster-service.service
new file mode 100644
index 00000000..e3ce37c0
--- /dev/null
+++ b/meta-agl-ic-container/recipes-core/cluster-service/cluster-service/cluster-service.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=AGL Cluster Service
+After=basic.target
+Requires=basic.target
+
+[Service]
+Type=notify
+ExecStart=/usr/bin/cluster_service
+
+[Install]
+WantedBy=basic.target
diff --git a/meta-agl-ic-container/recipes-core/cluster-service/cluster-service_git.bb b/meta-agl-ic-container/recipes-core/cluster-service/cluster-service_git.bb
new file mode 100644
index 00000000..cd75a704
--- /dev/null
+++ b/meta-agl-ic-container/recipes-core/cluster-service/cluster-service_git.bb
@@ -0,0 +1,27 @@
+SUMMARY = "The cluster service for AGL Instrument Cluster."
+DESCRIPTION = "\
+ The cluster-service is a common implementation for functional service \
+ of cluster. It aim to use reusable implementation for inter process \
+ communication and process design. "
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=ae6497158920d9524cf208c09cc4c984"
+
+DEPENDS = "systemd"
+
+PV = "1.0.0+rev${SRCPV}"
+
+SRCREV = "6a583971dd1a98f45e7acf8e12733710bb1bc32e"
+SRC_URI = " \
+ git://github.com/agl-ic-eg/cluster-service.git;branch=main;protocol=https \
+ file://cluster-service.service \
+ "
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig systemd
+
+SYSTEMD_SERVICE:${PN} = "cluster-service.service"
+
+do_install:append() {
+ install -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/cluster-service.service ${D}${systemd_unitdir}/system/
+}
diff --git a/meta-agl-ic-container/recipes-platform/packagegroups/packagegroup-agl-ic-core.bb b/meta-agl-ic-container/recipes-platform/packagegroups/packagegroup-agl-ic-core.bb
index 75e09d4e..2da31921 100644
--- a/meta-agl-ic-container/recipes-platform/packagegroups/packagegroup-agl-ic-core.bb
+++ b/meta-agl-ic-container/recipes-platform/packagegroups/packagegroup-agl-ic-core.bb
@@ -13,7 +13,6 @@ PACKAGES = "\
packagegroup-agl-ic-core \
"
RDEPENDS:${PN} += "\
- libclusteripc \
- libclusterapi \
+ cluster-service \
librefop \
"