diff options
Diffstat (limited to 'sample/agl-service-steering-wheel_0.1.bb')
-rw-r--r-- | sample/agl-service-steering-wheel_0.1.bb | 33 |
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 \ + " |