Enable to build 64bit arm arch. 36/37436/1 submit/tizen_mobile/20150401.025803 submit/tizen_mobile/20150417.050605 submit/tizen_mobile/20150417.071159 submit/tizen_tv/20150401.025807 submit/tizen_tv/20150417.050609 submit/tizen_tv/20150417.071202 submit/tizen_wearable/20150401.025811 submit/tizen_wearable/20150417.050613 submit/tizen_wearable/20150417.071207
authorseungku kim <seungku.kim@samsung.com>
Thu, 26 Mar 2015 11:42:02 +0000 (20:42 +0900)
committerseungku kim <seungku.kim@samsung.com>
Thu, 26 Mar 2015 11:56:23 +0000 (20:56 +0900)
Pointer size has been configured.
32bit arch. -> unsigned int
64bit arch. -> unsigned long

Change-Id: Ieb970cef9b9eae84ec8ebec00d6faa30800508f7
Signed-off-by: seungku kim <seungku.kim@samsung.com>
packaging/capi-network-bluetooth.spec
test/bt_unit_test.c
test/bt_unit_test.h

index 1e5322beb72caf3d860a2750e7734aa62d1a1195..dac144391f287a97f0047b034995d8d0ffedadad 100755 (executable)
@@ -47,17 +47,13 @@ export CXXFLAGS="$CXXFLAGS -DTIZEN_WEARABLE"
 export FFLAGS="$FFLAGS -DTIZEN_WEARABLE"
 %endif
 
-#%if 0%{?sec_build_binary_debug_enable}
 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
-#%endif
 
-#%if 0%{?tizen_build_binary_release_type_eng}
 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
-#%endif
 
 %if "%{?tizen_profile_name}" == "wearable"
 export CFLAGS+=" -DTELEPHONY_DISABLED"
@@ -65,6 +61,11 @@ export CXXFLAGS+=" -DTELEPHONY_DISABLED"
 export FFLAGS+=" -DTELEPHONY_DISABLED"
 %endif
 
+%ifarch aarch64
+echo arch64
+export CFLAGS+=" -DARCH64"
+%endif
+
 %cmake \
 %if "%{?tizen_profile_name}" == "wearable"
        -DTIZEN_WEARABLE=YES \
index 8e320f671a65a489fa2ea24ed625ad1e37218d7c..5412d8abc46ed1deb065655a799aabc73345457e 100755 (executable)
@@ -426,7 +426,7 @@ static gboolean __select_index_cb(GIOChannel *chan,
                                gpointer data)
 {
        char buf[BUFFER_LEN] = { 0 };
-       unsigned int len = 0;
+       ptr_size_t len = 0;
        int *index = data;
 
        memset(buf, 0, sizeof(buf));
@@ -974,7 +974,7 @@ void __bt_repeat_test_adapter_state_changed_cb(int result, bt_adapter_state_e ad
 int test_input_callback(void *data)
 {
        int ret = 0;
-       int test_id = (int)data;
+       int test_id = (ptr_size_t)data;
 
        switch (current_tc_table) {
        case BT_UNIT_TEST_TABLE_MAIN: {
index 5a037163db35ce1a9ab5095a24677bcfdc09e0d7..18218e658231374740eaf848ffa625c0234de660 100755 (executable)
@@ -193,6 +193,12 @@ typedef struct {
        int tc_code;
 } tc_table_t;
 
+#ifdef ARCH64
+typedef unsigned long ptr_size_t;
+#else
+typedef unsigned int ptr_size_t;
+#endif
+
 #ifdef __cplusplus
 }
 #endif