up
This commit is contained in:
+6
-6
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user