[kernel-gwh] interfere less with system, change url
This commit is contained in:
parent
befafe9833
commit
46a081ff71
1 changed files with 6 additions and 5 deletions
|
@ -31,16 +31,17 @@ else
|
||||||
if [ "$BRANCH" == "stable" ]; then
|
if [ "$BRANCH" == "stable" ]; then
|
||||||
SRC_URL="https://cdn.kernel.org/pub/linux/kernel/v$(echo "$VERSION" | cut -d. -f1).x"
|
SRC_URL="https://cdn.kernel.org/pub/linux/kernel/v$(echo "$VERSION" | cut -d. -f1).x"
|
||||||
else
|
else
|
||||||
SRC_URL="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot"
|
SRC_URL="https://git.kernel.org/torvalds/t"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -e "$CWD"/linux-"$VERSION".tar.xz ] && wget -c "$SRC_URL/linux-$VERSION.tar.xz" -O "$CWD/linux-$VERSION.tar.xz"
|
[ ! -e "$CWD"/linux-"$VERSION".tar.gz ] && wget -c "$SRC_URL/linux-$VERSION.tar.gz" -O "$CWD/linux-$VERSION.tar.gz"
|
||||||
tar xf "$CWD/linux-$VERSION.tar.xz" -C "$PKG/usr/src/"
|
tar xf "$CWD/linux-$VERSION.tar.gz" -C "$PKG/usr/src/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$PKG/usr/src/" || exit 1
|
cd "$PKG/usr/src/" || exit 1
|
||||||
ln -s "linux-$VERSION" linux
|
mv "linux-$VERSION" "linux-${VERSION}-gwh"
|
||||||
cd "linux-$VERSION"
|
#ln -s "linux-$VERSION" linux
|
||||||
|
cd "linux-${VERSION}-gwh"
|
||||||
|
|
||||||
if [ -n "$CONFIG" ] && [ -e "$CONFIG" ]; then
|
if [ -n "$CONFIG" ] && [ -e "$CONFIG" ]; then
|
||||||
cat "$CONFIG" > .config
|
cat "$CONFIG" > .config
|
||||||
|
|
Loading…
Reference in a new issue