added duf and nginx and some refactor

This commit is contained in:
wt
2026-02-28 00:55:00 +07:00
parent 5da3185a36
commit 6a0c6c50f3
28 changed files with 146 additions and 146 deletions
+9 -10
View File
@@ -8,19 +8,19 @@
kernel() {
printf "$UGREEN** Building Linux Kernel\n$RESET"
[ -d $build/kernel ] && return 0
mkdir -p $build/kernel # &>> $fulllogfile
mkdir -p $build/kernel
cd $build/kernel
printf "$UGREEN** Extracting Linux Kernel\n$RESET"
tar -xf $root/downloads/linux-$KERNEL_VERSION.tar.xz # &>> $fulllogfile
tar -xf $root/downloads/linux-$KERNEL_VERSION.tar.xz
check $? "Extract Linux Kernel"
cd linux-$KERNEL_VERSION
printf "$UGREEN** Configuring Linux Kernel\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- mrproper # &>> $fulllogfile
cp $root/board/${BOARD_NAME}/linux-$KERNEL_VERSION.config .config # &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig # &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- mrproper
cp $root/board/${BOARD_NAME}/linux-$KERNEL_VERSION.config .config
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig
check $? "Configure Linux Kernel"
printf "$UGREEN** Building Linux Kernel\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags
check $? "Build Linux Kernel"
KIMAGE=zImage
[ "$ARCH" = "arm64" ] && KIMAGE=Image
@@ -31,17 +31,16 @@ kernel() {
#----------- Build and Install kernel modules --------------
kernel_modules() {
printf "$UGREEN** Building Linux Kernel modules\n$RESET"
# [ -d $build/kernel/linux-$KERNEL_VERSION ] && return 0
[ -d $rootfspath/usr/lib/modules ] && return 0
cd $build/kernel/linux-$KERNEL_VERSION
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- modules # &>> fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- modules
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
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- INSTALL_MOD_PATH=$rootfspath modules_install
for i in $(find $rootfspath | grep .ko); do
gzip -9 $i;
done
check $? "Install Linux Kernel modules"
# rm -v $rootfspath/usr/lib/modules/$KERNEL_VERSION/{source,build}
} # kernel_modules
#-----------------------------------------------------------