PATTERN "sdb-prestart.service" EXCLUDE
PATTERN "deviced-vibrator.service" EXCLUDE)
+# zbooting-done
+IF(${TIZEN_FEATURE_LAZY_MOUNT} STREQUAL on)
+ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/systemd/zbooting-done_lazy_mount.service.in
+ DESTINATION lib/systemd/system
+ RENAME zbooting-done.service)
+ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/systemd/zbooting-done.path DESTINATION lib/systemd/system)
+ELSE()
+ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/systemd/zbooting-done.service.in
+ DESTINATION lib/systemd/system
+ RENAME zbooting-done.service)
+ENDIF()
+
ADD_SUBDIRECTORY(src/shared)
ADD_SUBDIRECTORY(src/libdeviced)
ADD_SUBDIRECTORY(src/devicectl)
# Support two pattern combination vibration
%define standard_mix off
+# Start zbooting-done after lazy mount is finished
+%define TIZEN_FEATURE_LAZY_MOUNT off
+
%if "%{?profile}" == "mobile"
%define battery_module on
%define haptic_module on
%define touchscreen_module on
%define tzip_module on
%define usbhost_module on
+%define TIZEN_FEATURE_LAZY_MOUNT on
%endif
%if "%{?profile}" == "wearable"
%define battery_module on
-DTZIP_MODULE=%{tzip_module} \
-DUSB_MODULE=%{usb_module} \
-DUSBHOST_MODULE=%{usbhost_module} \
+ -DTIZEN_FEATURE_LAZY_MOUNT=%{TIZEN_FEATURE_LAZY_MOUNT} \
#eol
%build
%install_service multi-user.target.wants deviced.service
%install_service sockets.target.wants deviced.socket
+
+%if %{?TIZEN_FEATURE_LAZY_MOUNT} == on
+%install_service graphical.target.wants zbooting-done.path
+%else
%install_service graphical.target.wants zbooting-done.service
+%endif
%if %{?haptic_module} == on
%install_service multi-user.target.wants deviced-vibrator.service
%{_bindir}/deviced-vibrator
%endif
%{_unitdir}/sockets.target.wants/deviced.socket
+%if %{?TIZEN_FEATURE_LAZY_MOUNT} == on
+%{_unitdir}/graphical.target.wants/zbooting-done.path
+%{_unitdir}/zbooting-done.path
+%else
%{_unitdir}/graphical.target.wants/zbooting-done.service
+%endif
%{_unitdir}/deviced.service
%{_unitdir}/deviced.socket
%{_unitdir}/zbooting-done.service