updated
This commit is contained in:
+8
-6
@@ -4,6 +4,8 @@
|
||||
. ./scripts/funcs.sh
|
||||
. ./scripts/config.sh
|
||||
|
||||
kernel_version=6.13.3
|
||||
|
||||
#--------------- Building Linux Kernel ---------------------
|
||||
kernel() {
|
||||
printf "$UGREEN** Building Linux Kernel\n$RESET"
|
||||
@@ -11,12 +13,12 @@ kernel() {
|
||||
mkdir -p $build/kernel # &>> $fulllogfile
|
||||
cd $build/kernel
|
||||
printf "$UGREEN** Extracting Linux Kernel\n$RESET"
|
||||
tar -xvf $root/downloads/linux-6.1.91.tar.xz # &>> $fulllogfile
|
||||
tar -xvf $root/downloads/linux-$kernel_version.tar.xz # &>> $fulllogfile
|
||||
check $? "Extract Linux Kernel"
|
||||
cd linux-6.1.91
|
||||
cd linux-$kernel_version
|
||||
printf "$UGREEN** Configuring Linux Kernel\n$RESET"
|
||||
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- mrproper # &>> $fulllogfile
|
||||
cp -v $root/kernel/config-6.1.91 .config # &>> $fulllogfile
|
||||
cp -v $root/kernel/config-$kernel_version .config # &>> $fulllogfile
|
||||
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig # &>> $fulllogfile
|
||||
check $? "Configure Linux Kernel"
|
||||
printf "$UGREEN** Building Linux Kernel\n$RESET"
|
||||
@@ -29,13 +31,13 @@ kernel() {
|
||||
#----------- Build and Install kernel modules --------------
|
||||
kernel_modules() {
|
||||
printf "$UGREEN** Building Linux Kernel modules\n$RESET"
|
||||
cd $build/kernel/linux-6.1.91
|
||||
cd $build/kernel/linux-$kernel_version
|
||||
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- modules # &>> fulllogfile
|
||||
check $? "Build Linux Kernel modules"
|
||||
printf "$UGREEN** Installing Linux Kernel modules into rootfs path\n$RESET"
|
||||
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- INSTALL_MOD_PATH=$rootfspath modules_install # &>> $fulllogfile
|
||||
rm -v $rootfspath/usr/lib/modules/6.1.91/{source,build}
|
||||
check $? "Install Linux Kernel modules"
|
||||
rm -v $rootfspath/usr/lib/modules/$kernel_version/{source,build}
|
||||
} # kernel_modules
|
||||
#-----------------------------------------------------------
|
||||
|
||||
@@ -45,7 +47,7 @@ kernel_with_rootfs() {
|
||||
if [ ! -d $out ]; then
|
||||
mkdir -pv $out
|
||||
fi
|
||||
cd $build/kernel/linux-6.1.91
|
||||
cd $build/kernel/linux-$kernel_version
|
||||
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- CONFIG_INITRAMFS_SOURCE=$rootfspath $makeflags # &>> fulllogfile
|
||||
check $? "Build Linux Kernel with rootfs"
|
||||
printf "$UGREEN** Installing Linux Kernel into images path\n$RESET"
|
||||
|
||||
Reference in New Issue
Block a user