summaryrefslogtreecommitdiff
path: root/packaging/Add-Tizen-RuntimeID-case.patch
blob: 852adb4139b89e80fc998820fa071d282e7e4ed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From 59b6394308dd795db0409d0aecc6790f0bee4103 Mon Sep 17 00:00:00 2001
From: Jiyoung Yun <jy910.yun@samsung.com>
Date: Tue, 14 Feb 2017 17:57:48 +0900
Subject: [PATCH] Add Tizen RuntimeID case

Change-Id: I4d689e31f64143c3d0e2dac74b09aefc9d40de60
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
---
 build.sh | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/build.sh b/build.sh
index 8d03121..f18a1e8 100755
--- a/build.sh
+++ b/build.sh
@@ -338,11 +338,18 @@ isMSBuildOnNETCoreSupported()
                 "alpine.3.4.3-x64")
                     __isMSBuildOnNETCoreSupported=1
                     ;;
+                "tizen"*)
+                    __isMSBuildOnNETCoreSupported=1
+                    ;;
                 *)
             esac
         elif [ "$__HostOS" == "OSX" ]; then
             __isMSBuildOnNETCoreSupported=1
         fi
+    elif [ "$__HostArch" == "arm" ]; then
+        __isMSBuildOnNETCoreSupported=1
+    elif [ "$__HostArch" == "x86" ]; then
+        __isMSBuildOnNETCoreSupported=1
     fi
 }
 
@@ -400,12 +407,18 @@ build_CoreLib()
     # The cross build generates a crossgen with the target architecture.
     if [ $__CrossBuild != 1 ]; then
        # The architecture of host pc must be same architecture with target.
+       if [[ ( "$__HostArch" == "x86") ]]; then
+           exit 0
+       fi
+
        if [[ ( "$__HostArch" == "$__BuildArch" ) ]]; then
            build_CoreLib_ni
        elif [[ ( "$__HostArch" == "x64" ) && ( "$__BuildArch" == "x86" ) ]]; then
            build_CoreLib_ni
        elif [[ ( "$__HostArch" == "arm64" ) && ( "$__BuildArch" == "arm" ) ]]; then
            build_CoreLib_ni
+       elif [[ ( "$__HostArch" == "arm" ) && ( "$__BuildArch" == "armel" ) ]]; then
+           build_CoreLib_ni
        else 
            exit 1
        fi
-- 
1.9.1