summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorHyeongseok Oh <hseok82.oh@samasung.com>2016-12-01 15:19:38 +0900
committerHyeongseok Oh <hseok82.oh@samasung.com>2016-12-02 11:31:28 +0900
commit5145193d4970eaf9a008014a7b02307611bd96ef (patch)
treea057462f9a59f490d6aa08747ceb4ed9f291c564 /build.sh
parent32e6bf8b03aafe84e6d24e0c36a65dd18d2054ed (diff)
downloadcoreclr-5145193d4970eaf9a008014a7b02307611bd96ef.tar.gz
coreclr-5145193d4970eaf9a008014a7b02307611bd96ef.tar.bz2
coreclr-5145193d4970eaf9a008014a7b02307611bd96ef.zip
First step to generate nuget package for ARM32/Linux
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 1017d5caab..7dc3f531f2 100755
--- a/build.sh
+++ b/build.sh
@@ -58,7 +58,7 @@ usage()
initDistroRid()
{
- if [ "$__BuildOS" == "Linux" ]; then
+ if [ "$__HostOS" == "Linux" ]; then
if [ ! -e /etc/os-release ]; then
echo "WARNING: Can not determine runtime id for current distro."
export __DistroRid=""
@@ -69,6 +69,19 @@ initDistroRid()
fi
}
+initTargetDistroRid()
+{
+ if [ "$__BuildOS" == "Linux" ]; then
+ if [ ! -e /etc/os-release ]; then
+ echo "WARNING: Can not determine runtime id for current distro."
+ export __CrossDistroRid=""
+ else
+ source $ROOTFS_DIR/etc/os-release
+ export __CrossDistroRid="$ID.$VERSION_ID-$__BuildArch"
+ fi
+ fi
+}
+
setup_dirs()
{
echo Setting up directories for build
@@ -699,6 +712,7 @@ if [ $__CrossBuild == 1 ]; then
if ! [[ -n "$ROOTFS_DIR" ]]; then
export ROOTFS_DIR="$__ProjectRoot/cross/rootfs/$__BuildArch"
fi
+ initTargetDistroRid
fi
# Make the directories necessary for build if they don't exist