update all scripts
This commit is contained in:
1 parent
c9bb397d65
commit
d065fa6e04
26 files changed
+218
-33
No files matched your search
@@ -64,10 +64,18 @@ kernel_with_rootfs() {
|
||||
#-----------------------------------------------------------
|
||||
|
||||
kernel_headers() {
|
||||
srcurl=https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${KERNEL_VERSION}.tar.xz
|
||||
print_info "** Building Linux Kernel headers"
|
||||
[ -d $build/kernel-headers ] && return 0
|
||||
[ ! -d $build/kernel-headers ] && mkdir $build/kernel-headers
|
||||
cd $build/kernel-headers
|
||||
if [ ! -f $root/downloads/linux-${KERNEL_VERSION}.tar.xz ]; then
|
||||
print_info "** Downloading $srcurl"
|
||||
cd $root/downloads
|
||||
wget $srcurl
|
||||
check $? "download $srcurl"
|
||||
cd -
|
||||
fi
|
||||
tar -xf $root/downloads/linux-$KERNEL_VERSION.tar.xz
|
||||
check $? "Extract Linux Kernel"
|
||||
cd linux-$KERNEL_VERSION
|
||||
|
||||
Reference in new issue
Block a user