Browse Source

package/busybox: use minimal.config for no MMU

By default, when Busybox is enabled, it uses the
package/busybox/busybox.config configuration file, even on noMMU
configurations. As this default configuration enables the 'ash' shell
which isn't available for noMMU targets, Busybox falls back to
enabling the 'hush' shell, but without enabling a number of its
sub-options that are quite relevant. In particular, it doesn't enable
umask, which is used in our startup scripts.

In order to have a default configuration that is more sensible, this
commit changes the Busybox package to use
package/busybox/busybox-minimal.config by default for noMMU
configurations.

Signed-off-by: Jesse Taube <Mr-Bossman075@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Jesse Taube 1 year ago
parent
commit
80b5688700
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/busybox/Config.in

+ 1 - 0
package/busybox/Config.in

@@ -13,6 +13,7 @@ if BR2_PACKAGE_BUSYBOX
 
 
 config BR2_PACKAGE_BUSYBOX_CONFIG
 config BR2_PACKAGE_BUSYBOX_CONFIG
 	string "BusyBox configuration file to use?"
 	string "BusyBox configuration file to use?"
+	default "package/busybox/busybox-minimal.config" if !BR2_USE_MMU
 	default "package/busybox/busybox.config"
 	default "package/busybox/busybox.config"
 	help
 	help
 	  Some people may wish to use their own modified BusyBox
 	  Some people may wish to use their own modified BusyBox