updated files and added busybox vars

This commit is contained in:
wt
2025-10-03 12:42:22 +07:00
parent 99e2da836f
commit 3a39d99661
21 changed files with 5715 additions and 276 deletions
+9 -8
View File
@@ -11,12 +11,13 @@
#----------- Building busybox for rootfs ----------
busybox_rootfs() {
printf "$UGREEN** Building busybox for rootfs\n$RESET"
rm -rv $build/busybox # &>> $fulllogfile
mkdir -pv $build/busybox # &>> $fulllogfile
rm -r $build/busybox # &>> $fulllogfile
mkdir -p $build/busybox # &>> $fulllogfile
cd $build/busybox
tar -xvjf $root/downloads/busybox-1.36.1.tar.bz2 # &>> $fulllogfile
cd busybox-1.36.1
cp -v $root/busybox/busybox-rootfs-config .config # &>> $fulllogfile
tar -xjf $root/downloads/busybox-${BUSYBOX_VERSION}.tar.bz2 # &>> $fulllogfile
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
printf "$UGREEN** Configuring busybox\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig # &>> $fulllogfile
check $? "Configure busybox all logs in .log"
@@ -32,10 +33,10 @@ busybox_initramfs() {
rm -r $build/busybox # &>> $fulllogfile
mkdir -p $build/busybox
cd $build/busybox
tar -xjf $root/downloads/busybox-1.36.1.tar.bz2
tar -xjf $root/downloads/busybox-${BUSYBOX_VERSION}.tar.bz2
check $? "Extract busybox"
cd busybox-1.36.1
cp $root/busybox/busybox-initramfs-config .config
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