[kernel-gwh] interfere less with system, change url

This commit is contained in:
Gwenhael Le Moine 2023-07-31 14:28:43 +02:00
parent befafe9833
commit 46a081ff71
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -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