This commit is contained in:
wt
2026-03-05 17:18:16 +07:00
parent ebfecd6f94
commit 81ffa09e4e
30 changed files with 58 additions and 54 deletions
+6 -6
View File
@@ -10,7 +10,7 @@
#----------- Building busybox for rootfs ----------
busybox_rootfs() {
printf "$UGREEN** Building busybox for rootfs\n$RESET"
print_info "** Building busybox for rootfs"
[ -d $build/busybox ] && return 0
mkdir -p $build/busybox
cd $build/busybox
@@ -18,10 +18,10 @@ busybox_rootfs() {
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
printf "$UGREEN** Configuring busybox\n$RESET"
print_info "** Configuring busybox"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig
check $? "Configure busybox all logs in .log"
printf "$UGREEN** Building busybox\n$RESET"
print_info "** Building busybox"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags
check $? "Build busybox all logs in .log"
cp -v busybox $rootfspath/usr/bin
@@ -32,7 +32,7 @@ busybox_rootfs() {
#------------------ Building busybox for initramfs ----------------
busybox_initramfs() {
printf "$UGREEN** Building busybox for initramfs\n$RESET"
print_info "** Building busybox for initramfs"
[ -f $build/initramfs.img ] && return 0
mkdir -p $build/busybox
cd $build/busybox
@@ -40,10 +40,10 @@ busybox_initramfs() {
check $? "Extract busybox"
cd busybox-${BUSYBOX_VERSION}
cp -v $root/board/${BOARD_NAME}/busybox-initrd-${BUSYBOX_VERSION}.config .config
printf "$UGREEN** Configuring busybox\n$RESET"
print_info "** Configuring busybox"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig
check $? "Configure busybox all logs in .log"
printf "$UGREEN** Building busybox\n$RESET"
print_info "** Building busybox"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags
check $? "Build busybox all logs in .log"
}