Skip to content

Commit 052cff8

Browse files
committed
added stuff for updating the kernel source
1 parent de368b5 commit 052cff8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

builder.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ case "$1" in
8383
echo "Cloning the kernel's source"
8484
kernel_get
8585
;;
86+
update)
87+
echo "Pulling updated kernel sources"
88+
kernel_pull
89+
;;
8690
build)
8791
echo "Building the kernel"
8892
kernel_build

functions

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ kernel_get ()
147147
{
148148
git clone $KERNEL_REPO $BASE_DIR/$KERNEL_DIR;
149149
}
150+
kernel_pull ()
151+
{
152+
git -C $BASE_DIR/$KERNEL_DIR pull;
153+
}
150154
#see https://wiki.ubuntu.com/Nexus7/Kernel for more information
151155
kernel_build ()
152156
{

0 commit comments

Comments
 (0)