busybox: disable bzip2

bzip2 adds about 8kb of size. For tiny builds it's often disabled.
It's not directly used by stock OpenWrt programs.
Kernel images compressed with bzip2 are also not fully supported.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
[fix \ indention]
Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
Sergey Ponomarev 2021-06-20 23:38:37 +03:00 committed by Paul Spooren
parent bb2ac5a33b
commit bffee5ea19
3 changed files with 3 additions and 4 deletions

View File

@ -96,7 +96,6 @@ get_image() { # <source> [ <command> ]
local magic="$(dd if="$from" bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"')" local magic="$(dd if="$from" bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"')"
case "$magic" in case "$magic" in
1f8b) cmd="zcat";; 1f8b) cmd="zcat";;
425a) cmd="bzcat";;
*) cmd="cat";; *) cmd="cat";;
esac esac
fi fi

View File

@ -39,7 +39,7 @@ switch_to_ramfs() {
for binary in \ for binary in \
/bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount \ /bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount \
pivot_root mount_root reboot sync kill sleep \ pivot_root mount_root reboot sync kill sleep \
md5sum hexdump cat zcat bzcat dd tar \ md5sum hexdump cat zcat dd tar \
ls basename find cp mv rm mkdir rmdir mknod touch chmod \ ls basename find cp mv rm mkdir rmdir mknod touch chmod \
'[' printf wc grep awk sed cut \ '[' printf wc grep awk sed cut \
mtd partx losetup mkfs.ext4 nandwrite flash_erase \ mtd partx losetup mkfs.ext4 nandwrite flash_erase \

View File

@ -351,10 +351,10 @@ config BUSYBOX_DEFAULT_FEATURE_GUNZIP_LONG_OPTIONS
default n default n
config BUSYBOX_DEFAULT_BUNZIP2 config BUSYBOX_DEFAULT_BUNZIP2
bool bool
default y default n
config BUSYBOX_DEFAULT_BZCAT config BUSYBOX_DEFAULT_BZCAT
bool bool
default y default n
config BUSYBOX_DEFAULT_UNLZMA config BUSYBOX_DEFAULT_UNLZMA
bool bool
default n default n