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
@@ -12,19 +12,19 @@
busybox_rootfs() {
printf "$UGREEN** Building busybox for rootfs\n$RESET"
[ -d $build/busybox ] && return 0
mkdir -p $build/busybox # &>> $fulllogfile
mkdir -p $build/busybox
cd $build/busybox
tar -xjf $root/downloads/busybox-${BUSYBOX_VERSION}.tar.bz2 # &>> $fulllogfile
tar -xjf $root/downloads/busybox-${BUSYBOX_VERSION}.tar.bz2
cd busybox-${BUSYBOX_VERSION}
sed -i 's/|| ctx->process_block == sha1_process_block64_shaNI/|| ctx->process_block == sha1_process_block64/' libbb/hash_md5_sha.c
cp $root/board/${BOARD_NAME}/busybox-${BUSYBOX_VERSION}.config .config # &>> $fulllogfile
cp $root/board/${BOARD_NAME}/busybox-${BUSYBOX_VERSION}.config .config
printf "$UGREEN** Configuring busybox\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig # &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig
check $? "Configure busybox all logs in .log"
printf "$UGREEN** Building busybox\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags
check $? "Build busybox all logs in .log"
cp -v busybox $rootfspath/usr/bin # &>> $fulllogfile
cp -v busybox $rootfspath/usr/bin
cd $rootfspath/usr/bin
for i in $(cat $BUSYBOX_LIST_FILE); do ln -sv busybox $i; done
}
@@ -33,19 +33,18 @@ busybox_rootfs() {
#------------------ Building busybox for initramfs ----------------
busybox_initramfs() {
printf "$UGREEN** Building busybox for initramfs\n$RESET"
# [ -d $build/busybox ] && return 0
[ -f $build/initramfs.img ] && return 0
mkdir -p $build/busybox
cd $build/busybox
tar -xjf $root/downloads/busybox-${BUSYBOX_VERSION}.tar.bz2
check $? "Extract busybox"
cd busybox-${BUSYBOX_VERSION}
cp -v $root/board/${BOARD_NAME}/busybox-initrd-${BUSYBOX_VERSION}.config .config
# export PATH=$PATH:/opt/toolchains/x86_64-buildroot-linux-uclibc-gcc/bin
printf "$UGREEN** Configuring busybox\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig # &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig
check $? "Configure busybox all logs in .log"
printf "$UGREEN** Building busybox\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags
check $? "Build busybox all logs in .log"
}
#------------------------------------------------------------------