ARM/Linux: Add codename xenial (dotnet/coreclr#7158)
authorSaeHie Park <saehie.park@gmail.com>
Wed, 14 Sep 2016 18:00:54 +0000 (03:00 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 14 Sep 2016 18:00:54 +0000 (20:00 +0200)
Add Ubuntu 16.04 code name Xenial to cross rootfs option

Commit migrated from https://github.com/dotnet/coreclr/commit/d5acaa816698ce80cc8f234b88a4b13199b2296e

src/coreclr/cross/arm/sources.list.xenial [new file with mode: 0644]
src/coreclr/cross/arm64/sources.list.xenial [new file with mode: 0644]
src/coreclr/cross/build-rootfs.sh

diff --git a/src/coreclr/cross/arm/sources.list.xenial b/src/coreclr/cross/arm/sources.list.xenial
new file mode 100644 (file)
index 0000000..eacd86b
--- /dev/null
@@ -0,0 +1,11 @@
+deb http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted universe
+deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted universe
+
+deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted universe
+deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted universe
+
+deb http://ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted
+deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted
+
+deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security main restricted universe multiverse
+deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-security main restricted universe multiverse
\ No newline at end of file
diff --git a/src/coreclr/cross/arm64/sources.list.xenial b/src/coreclr/cross/arm64/sources.list.xenial
new file mode 100644 (file)
index 0000000..eacd86b
--- /dev/null
@@ -0,0 +1,11 @@
+deb http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted universe
+deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted universe
+
+deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted universe
+deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted universe
+
+deb http://ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted
+deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted
+
+deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security main restricted universe multiverse
+deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-security main restricted universe multiverse
\ No newline at end of file
index 3fbb112..897f0b2 100755 (executable)
@@ -4,7 +4,7 @@ usage()
 {
     echo "Usage: $0 [BuildArch] [UbuntuCodeName]"
     echo "BuildArch can be: arm, arm-softfp, arm64"
-    echo "UbuntuCodeName - optional, Code name for Ubuntu, can be: trusty(default), vivid, wily. If BuildArch is arm-softfp, UbuntuCodeName is ignored."
+    echo "UbuntuCodeName - optional, Code name for Ubuntu, can be: trusty(default), vivid, wily, xenial. If BuildArch is arm-softfp, UbuntuCodeName is ignored."
 
     exit 1
 }
@@ -61,6 +61,11 @@ for i in "$@"
             __UbuntuCodeName=wily
         fi
         ;;
+        xenial)
+        if [ "$__UbuntuCodeName" != "jessie" ]; then
+            __UbuntuCodeName=xenial
+        fi
+        ;;
         jessie)
         __UbuntuCodeName=jessie
         __UbuntuRepo="http://ftp.debian.org/debian/"