summaryrefslogtreecommitdiffstats
path: root/source.local/k/sources/kernel/exynos5/get_src.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source.local/k/sources/kernel/exynos5/get_src.sh')
-rw-r--r--source.local/k/sources/kernel/exynos5/get_src.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/source.local/k/sources/kernel/exynos5/get_src.sh b/source.local/k/sources/kernel/exynos5/get_src.sh
new file mode 100644
index 0000000..f983e26
--- /dev/null
+++ b/source.local/k/sources/kernel/exynos5/get_src.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+# Clone the chromeos kernel repository and create a tarball:
+
+KVER="3.4"
+SRCDIR="linux-${KVER}"
+
+GITURI="https://git.chromium.org/git/chromiumos/third_party/kernel.git"
+GITBRANCH="chromeos-$KVER"
+
+if [ ! -d "$SRCDIR" ]; then
+ echo "Cloning ChromeOS kernel repository"
+ mkdir $SRCDIR || exit 1
+ git clone $GITURI $SRCDIR
+ cd $SRCDIR
+ git checkout $GITBRANCH
+ cd -
+else
+ echo "Updating ChromeOS kernel repository"
+ cd $SRCDIR
+ git pull origin
+ cd -
+fi
+
+echo "Creating kernel tarball"
+tar --exclude=".git" --exclude=".gitignore" -Jcvf $SRCDIR.tar.xz $SRCDIR