Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Ignatov <sergign60@mail.ru>2017-02-01 19:56:19 +0300
committerSergey Ignatov <sergign60@mail.ru>2017-02-06 15:29:42 +0300
commitf0dcb80f7b60f1f14d1efe3780c36d09e9b0b29f (patch)
tree84c10bcf59a1558572bbda21ea79004a13c8adfa /buildscripts
parente6ff5433da6027767eb87d7e0891bacddd87645a (diff)
Added armel building
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/build-native.sh36
-rwxr-xr-xbuildscripts/buildvars-setup.sh9
2 files changed, 43 insertions, 2 deletions
diff --git a/buildscripts/build-native.sh b/buildscripts/build-native.sh
index ab861f493..47ba3d0ec 100755
--- a/buildscripts/build-native.sh
+++ b/buildscripts/build-native.sh
@@ -76,9 +76,45 @@ build_native_corert()
popd
}
+initHostDistroRid()
+{
+ if [ "$__HostOS" == "Linux" ]; then
+ if [ ! -e /etc/os-release ]; then
+ echo "WARNING: Can not determine runtime id for current distro."
+ __HostDistroRid=""
+ else
+ source /etc/os-release
+ __HostDistroRid="$ID.$VERSION_ID-$__HostArch"
+ fi
+ fi
+}
+
+initTargetDistroRid()
+{
+ if [ $__CrossBuild == 1 ]; then
+ if [ "$__BuildOS" == "Linux" ]; then
+ if [ ! -e $ROOTFS_DIR/etc/os-release ]; then
+ echo "WARNING: Can not determine runtime id for current distro."
+ export __DistroRid=""
+ else
+ source $ROOTFS_DIR/etc/os-release
+ export __DistroRid="$ID.$VERSION_ID-$__BuildArch"
+ fi
+ fi
+ else
+ export __DistroRid="$__HostDistroRid"
+ fi
+}
+
if $__buildnative; then
+ # init the host distro name
+ initHostDistroRid
+
+ # init the target distro name
+ initTargetDistroRid
+
# Check prereqs.
check_native_prereqs
diff --git a/buildscripts/buildvars-setup.sh b/buildscripts/buildvars-setup.sh
index 588bcd626..59dd405e2 100755
--- a/buildscripts/buildvars-setup.sh
+++ b/buildscripts/buildvars-setup.sh
@@ -6,7 +6,7 @@ usage()
echo "managed - optional argument to build the managed code"
echo "native - optional argument to build the native code"
echo "The following arguments affect native builds only:"
- echo "BuildArch can be: x64, x86, arm, arm64"
+ echo "BuildArch can be: x64, x86, arm, arm64, armel"
echo "BuildType can be: Debug, Release"
echo "clean - optional argument to force a clean build."
echo "verbose - optional argument to enable verbose build output."
@@ -178,6 +178,11 @@ while [ "$1" != "" ]; do
arm64)
export __BuildArch=arm64
;;
+ armel)
+ export __BuildArch=armel
+ export __ClangMajorVersion=3
+ export __ClangMinorVersion=5
+ ;;
debug)
export __BuildType=Debug
;;
@@ -264,4 +269,4 @@ fi
setup_dirs
export BUILDERRORLEVEL=0
-export BUILDVARS_DONE=1 \ No newline at end of file
+export BUILDVARS_DONE=1