summaryrefslogtreecommitdiff
path: root/packaging/0023-Add-Tizen-RuntimeID-case.patch
blob: 44ccf3a8ec0697c928e8f21eda8a4e058774328a (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 1ef080f2e3b158042ce162876e4f781834993c0e Mon Sep 17 00:00:00 2001
From: Jiyoung Yun <jy910.yun@samsung.com>
Date: Wed, 14 Jun 2017 16:36:56 +0900
Subject: [PATCH 23/23] Add Tizen RuntimeID case

Change-Id: I8c52d2993dd1414ede6ff1e40e949af58bca9d40
---
 build.sh | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/build.sh b/build.sh
index 6590e83..3467387 100755
--- a/build.sh
+++ b/build.sh
@@ -414,12 +414,19 @@ isMSBuildOnNETCoreSupported()
                 "alpine.3.4.3-x64")
                     __isMSBuildOnNETCoreSupported=1
                     ;;
+                "tizen"*)
+                    __isMSBuildOnNETCoreSupported=1
+                    ;;
                 *)
                 __isMSBuildOnNETCoreSupported=$__msbuildonunsupportedplatform
             esac
         elif [ "$__HostOS" == "OSX" ]; then
             __isMSBuildOnNETCoreSupported=1
         fi
+    elif [ "$__HostArch" == "arm" ]; then
+        __isMSBuildOnNETCoreSupported=1
+    elif [ "$__HostArch" == "x86" ]; then
+        __isMSBuildOnNETCoreSupported=1
     fi
 }
 
@@ -475,12 +482,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
+           exit 0
        else 
            exit 1
        fi
-- 
1.9.1