aboutsummaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-02-06 17:12:28 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-02-06 17:13:49 +0900
commit1fed2c5a38fed8bc91bb6b8a08982303eb9c2e82 (patch)
tree502b5c63a0570d78863311fbd930f1c96b8a2990 /sample
parenta98fcb4b99e5a7b14b671e6014ea0b1cc1ea199d (diff)
Change steering to systemd service for ces2019halibut_7.90.0halibut/7.90.07.90.0
Change steering to systemd service for ces2019 Change-Id: I319fb56a302f4f980b43a1b90dee1f36820355fb Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'sample')
-rw-r--r--sample/agl-service-steering-wheel_0.1.bb33
1 files changed, 31 insertions, 2 deletions
diff --git a/sample/agl-service-steering-wheel_0.1.bb b/sample/agl-service-steering-wheel_0.1.bb
index 2391459..8d57bbb 100644
--- a/sample/agl-service-steering-wheel_0.1.bb
+++ b/sample/agl-service-steering-wheel_0.1.bb
@@ -7,10 +7,39 @@ SECTION = "apps"
SRC_URI = "git://gerrit.automotivelinux.org/gerrit/apps/agl-service-steering-wheel;protocol=http;branch=master"
SRCREV = "8f6baa6092eb09919b71acbaaab9f013dcac599a"
-PN = "agl-service-steering-wheel"
+PN = "agl-service-steering-wheel"
S = "${WORKDIR}/git"
DEPENDS = "glib-2.0 af-binder"
-inherit cmake aglwgt
+inherit cmake pkgconfig
+do_install() {
+ install -d ${D}/etc/
+ install -m 0644 ${S}/conf/files/etc/steering_wheel.json ${D}/etc/
+ install -m 0644 ${S}/conf/files/etc/steering_wheel_map.json ${D}/etc/
+ install -m 0644 ${S}/conf/files/etc/gear_shift_para.json ${D}/etc/
+
+ install -d ${D}/lib/systemd/system
+ install -m 0644 ${S}/conf/files/lib/systemd/system/wheel.service ${D}/lib/systemd/system
+ install -m 0644 ${S}/conf/files/lib/systemd/system/usbcan0.service ${D}/lib/systemd/system
+ install -m 0644 ${S}/conf/files/lib/systemd/system/usbcan1.service ${D}/lib/systemd/system
+
+ install -d ${D}/usr/bin
+ install -m 755 ${S}/conf/files/usr/bin/candev.sh ${D}/usr/bin
+ install -m 755 ${B}/bin/wheel-service ${D}/usr/bin
+
+ install -d ${D}/etc/udev/rules.d/
+ install -m 0644 ${S}/conf/files/etc/udev/rules.d/90-wheel.rules ${D}/etc/udev/rules.d/
+}
+
+FILES_${PN} += "/etc/steering_wheel.json \
+ /etc/steering_wheel_map.json \
+ /etc/gear_shift_para.json \
+ /usr/bin/candev.sh \
+ /usr/bin/wheel-service \
+ /lib/systemd/system/wheel.service \
+ /lib/systemd/system/usbcan0.service \
+ /lib/systemd/system/usbcan1.service \
+ /etc/udev/rule.d/90-wheel.rules \
+ "