Переглянути джерело

busybox: prevent compile hang with bzip2 enabled

The BZIP2_SMALL option was not being exposed via Config.in which
caused the build to fail as 'yes' is piped to the config during
build.  As it's expecting a number, it gets stuck in a loop.

Signed-off-by: Rob Mosher <[email protected]>
Rob Mosher 7 роки тому
батько
коміт
8a3582fa8a
1 змінених файлів з 9 додано та 0 видалено
  1. 9 0
      package/utils/busybox/config/archival/Config.in

+ 9 - 0
package/utils/busybox/config/archival/Config.in

@@ -170,6 +170,15 @@ config BUSYBOX_CONFIG_BZIP2
 	  Unless you have a specific application which requires bzip2, you
 	  should probably say N here.
 
+config BUSYBOX_CONFIG_BZIP2_SMALL
+	int "Trade size for speed (0:fast 9:slow)"
+	default BUSYBOX_DEFAULT_BZIP2_SMALL
+	range 0 9
+	depends on BUSYBOX_CONFIG_BZIP2
+	help
+	  0 is faster but larger
+	  9 is smaller but slower
+
 config BUSYBOX_CONFIG_FEATURE_BZIP2_DECOMPRESS
 	bool "Enable decompression"
 	default BUSYBOX_DEFAULT_FEATURE_BZIP2_DECOMPRESS