Added ntp enable feature when profile is ivi 09/96509/2 accepted/tizen/3.0/common/20161114.081254 accepted/tizen/3.0/ivi/20161110.022107 accepted/tizen/3.0/mobile/20161110.021954 accepted/tizen/3.0/tv/20161110.022038 accepted/tizen/3.0/wearable/20161110.022052 submit/tizen_3.0/20161109.075033 submit/tizen_3.0_common/20161110.084657
authorhyunuktak <hyunuk.tak@samsung.com>
Wed, 9 Nov 2016 07:46:06 +0000 (16:46 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Wed, 9 Nov 2016 07:47:28 +0000 (16:47 +0900)
Change-Id: I64f155a0337f1696a3e8ddef3f3ad0bb2309231d
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
CMakeLists.txt
packaging/net-config.spec
src/main.c

index 54aeb69..7c65574 100755 (executable)
@@ -80,6 +80,10 @@ IF(TIZEN_TELEPHONY_ENABLE)
        ADD_DEFINITIONS(-DTIZEN_TELEPHONY_ENABLE)
 ENDIF(TIZEN_TELEPHONY_ENABLE)
 
+IF(TIZEN_NTP_ENABLE)
+       ADD_DEFINITIONS(-DTIZEN_NTP_ENABLE)
+ENDIF(TIZEN_NTP_ENABLE)
+
 IF(TIZEN_WLAN_BOARD_SPRD)
        ADD_DEFINITIONS(-DTIZEN_WLAN_BOARD_SPRD)
 ENDIF(TIZEN_WLAN_BOARD_SPRD)
index e07cd5b..f384165 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          net-config
 Summary:       TIZEN Network Configuration service
-Version:       1.1.93
+Version:       1.1.94
 Release:       2
 Group:         System/Network
 License:       Apache-2.0
@@ -57,6 +57,9 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        -DTIZEN_TV=1 \
 %endif
 %endif
+%if "%{profile}" == "ivi"
+       -DTIZEN_NTP_ENABLE=1 \
+%endif
 %if 0%{?model_build_feature_wlan_wearable} == 1
        -DTIZEN_WEARABLE=1 \
        -DTIZEN_CAPTIVE_PORTAL=1 \
index 9a7a833..6dda9ac 100755 (executable)
@@ -118,7 +118,7 @@ int main(int argc, char *argv[])
 
        netconfig_error_init();
 
-#if !defined TIZEN_TELEPHONY_ENABLE
+#if defined TIZEN_NTP_ENABLE
        netconfig_clock_init();
 #endif
 
@@ -159,7 +159,7 @@ int main(int argc, char *argv[])
 
        netconfig_dpm_deinit();
 
-#if !defined TIZEN_TELEPHONY_ENABLE
+#if defined TIZEN_NTP_ENABLE
        netconfig_clock_deinit();
 #endif