From 0d953e73b5c99ce94f865111e53d275352bb44a2 Mon Sep 17 00:00:00 2001 From: "Dave Walker (Daviey)" Date: Tue, 19 Jun 2018 08:53:45 +0100 Subject: [PATCH] Busybox: Compile flash_eraseall The standard busybox config doesn't include the applet flash_eraseall, which is needed for erasing the flash device. This is included in the stock busybox, but not in the custom one. Closes: EliasKotlyar/Xiaomi-Dafang-Hacks#496 Signed-off-by: Dave Walker (Daviey) --- compile_busybox.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compile_busybox.sh b/compile_busybox.sh index a72f211ef..f453f0a73 100755 --- a/compile_busybox.sh +++ b/compile_busybox.sh @@ -20,4 +20,8 @@ sed -e 's/CONFIG_FALLOCATE=y/CONFIG_FALLOCATE=n/' -i .config sed -e 's/CONFIG_NSENTER=y/CONFIG_NSENTER=n/' -i .config sed -e 's/CONFIG_FSYNC=y/CONFIG_FSYNC=n/' -i .config sed -e 's/CONFIG_SYNC=y/CONFIG_SYNC=n/' -i .config + +# Enable some features (note the /c which changes the entire line) +sed -e '/CONFIG_FLASH_ERASEALL/c\CONFIG_FLASH_ERASEALL=y' -i .config + make CROSS_COMPILE=$CROSS_COMPILE