update all scripts
This commit is contained in:
@@ -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