You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ else (WIN32)
113
113
114
114
# Ensure that objcopy is present
115
115
if (CLR_UNIX_CROSS_BUILDANDNOTDEFINEDCLR_CROSS_COMPONENTS_BUILD)
116
-
if (CMAKE_SYSTEM_PROCESSORSTREQUALarmv7lORCMAKE_SYSTEM_PROCESSORSTREQUALaarch64ORCMAKE_SYSTEM_PROCESSORSTREQUALarm)
116
+
if (CMAKE_SYSTEM_PROCESSORSTREQUALarmv7lORCMAKE_SYSTEM_PROCESSORSTREQUALaarch64ORCMAKE_SYSTEM_PROCESSORSTREQUALarmORCMAKE_SYSTEM_PROCESSORSTREQUALmips64)
if(NOT((CLR_CMAKE_PLATFORM_ARCH_AMD64ANDCLR_CMAKE_TARGET_ARCH_ARM64) OR (CLR_CMAKE_PLATFORM_ARCH_I386ANDCLR_CMAKE_TARGET_ARCH_ARM) OR (CLR_CMAKE_PLATFORM_ARCH_AMD64ANDCLR_CMAKE_TARGET_ARCH_ARM)))
186
+
####FIXME for MIPS.
187
+
if(NOT((CLR_CMAKE_PLATFORM_ARCH_AMD64ANDCLR_CMAKE_TARGET_ARCH_ARM64) OR (CLR_CMAKE_PLATFORM_ARCH_I386ANDCLR_CMAKE_TARGET_ARCH_ARM) OR (CLR_CMAKE_PLATFORM_ARCH_AMD64ANDCLR_CMAKE_TARGET_ARCH_ARM) OR (CLR_CMAKE_PLATFORM_ARCH_AMD64ANDCLR_CMAKE_TARGET_ARCH_MIPS64)))
180
188
message(FATAL_ERROR"Invalid host and target arch combination")
echo"BuildArch can be: arm(default), armel, arm64, x86"
7
-
echo"LinuxCodeName - optional, Code name for Linux, can be: trusty, xenial(default), zesty, bionic, alpine. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen."
6
+
echo"BuildArch can be: arm(default), armel, arm64, mips64el, x86"
7
+
echo"LinuxCodeName - optional, Code name for Linux, can be: trusty, xenial(default), zesty, bionic, alpine. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen. If BuildArch is mips64el, LinuxCodeName is stretch(default)."
8
8
echo"lldbx.y - optional, LLDB version, can be: lldb3.9(default), lldb4.0, lldb5.0, lldb6.0 no-lldb. Ignored for alpine"
9
9
echo"--skipunmount - optional, will skip the unmount of rootfs folder."
10
10
exit 1
@@ -82,6 +82,13 @@ while :; do
82
82
__UbuntuRepo="http://ftp.debian.org/debian/"
83
83
__LinuxCodeName=jessie
84
84
;;
85
+
mips64el)
86
+
__BuildArch=mips64el
87
+
__UbuntuArch=mips64el
88
+
__UbuntuRepo="http://ftp.debian.org/debian/"
89
+
__LinuxCodeName=stretch
90
+
__UbuntuPackages+=" liblzma-dev"
91
+
;;
85
92
x86)
86
93
__BuildArch=x86
87
94
__UbuntuArch=i386
@@ -174,6 +181,9 @@ done
174
181
if [ "$__BuildArch"=="armel" ];then
175
182
__LLDB_Package="lldb-3.5-dev"
176
183
fi
184
+
if [ "$__BuildArch"=="mips64el" ];then
185
+
__LLDB_Package=""
186
+
fi
177
187
__UbuntuPackages+="${__LLDB_Package:-}"
178
188
179
189
if [ -z"$__RootfsDir" ] && [ !-z"$ROOTFS_DIR" ];then
0 commit comments