From 61041d5db64103485b717b7d405af6fb15019c80 Mon Sep 17 00:00:00 2001 From: Sangjung Woo Date: Sat, 8 Oct 2016 11:50:54 +0900 Subject: [PATCH] Enable CAN source plugin This patch enables AMB source plugin based on CAN database. In order to support non CAN support target like Odroid, vcan device is temporarily enabled. Change-Id: I3259841fc85a0de7d503e7ec69259fa95012340b Signed-off-by: Sangjung Woo --- packaging.in/ambd.service.systemd.tizen | 4 +++- packaging/automotive-message-broker.spec | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packaging.in/ambd.service.systemd.tizen b/packaging.in/ambd.service.systemd.tizen index fbda56e..37aab4e 100644 --- a/packaging.in/ambd.service.systemd.tizen +++ b/packaging.in/ambd.service.systemd.tizen @@ -10,7 +10,9 @@ Wants=bluetooth.service Type=dbus BusName=org.automotive.message.broker Environment=LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so -ExecStart=/usr/bin/ambd -c /etc/ambd/config.tizen +ExecStartPre=/usr/sbin/ip link add dev vcan0 type vcan +ExecStartPre=/usr/sbin/ip link set up vcan0 +ExecStart=/usr/bin/ambd -c /etc/ambd/config [Install] WantedBy=multi-user.target diff --git a/packaging/automotive-message-broker.spec b/packaging/automotive-message-broker.spec index de573ba..1eefbea 100644 --- a/packaging/automotive-message-broker.spec +++ b/packaging/automotive-message-broker.spec @@ -368,8 +368,8 @@ cp packaging/config.tizen %{buildroot}%{_sysconfdir}/ambd/ %{_libdir}/%{name}/demosinkplugin.so %config %{_sysconfdir}/dbus-1/system.d/amb.conf %{_sysconfdir}/ambd/plugins.d/dbus -%{_sysconfdir}/ambd/plugins.d/examplesink -%{_sysconfdir}/ambd/plugins.d/examplesource +%exclude %{_sysconfdir}/ambd/plugins.d/examplesink +%exclude %{_sysconfdir}/ambd/plugins.d/examplesource %files plugins-common %manifest packaging.in/amb.manifest.plugins -- 2.7.4