[git commit] generate_BUFSIZ.sh: catch BUFSIZE < 1024 also on "big" builds
Denys Vlasenko
vda.linux at googlemail.com
Thu Apr 21 22:24:53 UTC 2016
commit: https://git.busybox.net/busybox/commit/?id=7ff24bd5fb37c58d9e41743a910df147357dda61
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
scripts/generate_BUFSIZ.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/generate_BUFSIZ.sh b/scripts/generate_BUFSIZ.sh
index 8aa0174..750fedb 100755
--- a/scripts/generate_BUFSIZ.sh
+++ b/scripts/generate_BUFSIZ.sh
@@ -105,14 +105,14 @@ if $postcompile; then
COMMON_BUFSIZE=$(( (-END) & PAGE_MASK ))
echo "COMMON_BUFSIZE = $COMMON_BUFSIZE bytes"
- if test x"$method" = x"1k"; then
+ if test x"$method" != x"malloc"; then
if test $COMMON_BUFSIZE -lt 1024; then
# _end[] has no enough space for bb_common_bufsiz1[]
rm -- "$common_bufsiz_h.1k.OK" 2>/dev/null
{ md5sum <.config | cut -d' ' -f1; stat -c "%Y" .config; } >"$common_bufsiz_h.1k.FAIL"
echo "Warning! Space in _end[] is too small ($COMMON_BUFSIZE bytes)!"
echo "Rerun make to build a binary which doesn't use it!"
- rm busybox_unstripped
+ rm busybox_unstripped busybox
exitcmd="exit 1"
else
rm -- "$common_bufsiz_h.1k.FAIL" 2>/dev/null
More information about the busybox-cvs
mailing list