gitlab-ci
This commit is contained in:
+11
-11
@@ -3,20 +3,20 @@
|
||||
#--------------- Building Linux Kernel ---------------------
|
||||
kernel() {
|
||||
printf "$UGREEN** Building Linux Kernel\n$RESET"
|
||||
rm -r $build/kernel &>> $fulllogfile
|
||||
mkdir -p $build/kernel &>> $fulllogfile
|
||||
rm -r $build/kernel &>> $fulllogfile >> $(tty)
|
||||
mkdir -p $build/kernel &>> $fulllogfile >> $(tty)
|
||||
cd $build/kernel
|
||||
printf "$UGREEN** Extracting Linux Kernel\n$RESET"
|
||||
tar -xvf $root/downloads/linux-6.7.4.tar.xz &>> $fulllogfile
|
||||
tar -xvf $root/downloads/linux-6.7.4.tar.xz &>> $fulllogfile >> $(tty)
|
||||
check $? "Extract Linux Kernel"
|
||||
cd linux-6.7.4
|
||||
printf "$UGREEN** Configuring Linux Kernel\n$RESET"
|
||||
make mrproper &>> $fulllogfile
|
||||
cp -v $root/kernel/config-6.7.4 .config &>> $fulllogfile
|
||||
make oldconfig &>> $fulllogfile
|
||||
make mrproper &>> $fulllogfile >> $(tty)
|
||||
cp -v $root/kernel/config-6.7.4 .config &>> $fulllogfile >> $(tty)
|
||||
make oldconfig &>> $fulllogfile >> $(tty)
|
||||
check $? "Configure Linux Kernel"
|
||||
printf "$UGREEN** Building Linux Kernel\n$RESET"
|
||||
make $makeflags &>> $fulllogfile
|
||||
make $makeflags &>> $fulllogfile >> $(tty)
|
||||
check $? "Build Linux Kernel"
|
||||
ls -lh arch/x86/boot/bzImage
|
||||
} # kernel
|
||||
@@ -26,14 +26,14 @@ kernel() {
|
||||
kernel_modules() {
|
||||
printf "$UGREEN** Building Linux Kernel modules\n$RESET"
|
||||
cd $build/kernel/linux-6.7.4
|
||||
make modules &>> fulllogfile
|
||||
make modules &>> fulllogfile >> $(tty)
|
||||
check $? "Build Linux Kernel modules"
|
||||
printf "$UGREEN** Installing Linux Kernel modules into rootfs path\n$RESET"
|
||||
mkdir -pv $rootfspath/usr/lib &>> fulllogfile
|
||||
mkdir -pv $rootfspath/usr/lib &>> fulllogfile >> $(tty)
|
||||
cd $rootfspath
|
||||
ln -sv usr/lib lib &>> $fulllogfile
|
||||
ln -sv usr/lib lib &>> $fulllogfile >> $(tty)
|
||||
cd $root/build/kernel/linux-6.7.4
|
||||
make INSTALL_MOD_PATH=$rootfspath modules_install &>> $fulllogfile
|
||||
make INSTALL_MOD_PATH=$rootfspath modules_install &>> $fulllogfile >> $(tty)
|
||||
check $? "Install Linux Kernel modules"
|
||||
} # kernel_modules
|
||||
#-----------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user