aboutsummaryrefslogtreecommitdiffstats
path: root/sample/agl-service-steering-wheel_0.1.bb
blob: 8d57bbb8d3b507676c17a3b244b704fdc256bdb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
DESCRIPTION = "logitech g29 wheel service"
HOMEPAGE = "https://gerrit.automotivelinux.org/gerrit/#/admin/projects/apps/agl-service-steering-wheel"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ae6497158920d9524cf208c09cc4c984"
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"
S = "${WORKDIR}/git"

DEPENDS = "glib-2.0 af-binder"

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 \
	"