diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-22 00:24:53 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-22 00:24:53 +0200 |
| commit | 7ff24bd5fb37c58d9e41743a910df147357dda61 (patch) | |
| tree | 033d12aae4f5ca7b83d890d418c8b9c47c6eeabe /scripts | |
| parent | d7b502c05911e1cf1d4fc31be71f3abccd0927a5 (diff) | |
| download | busybox-w32-7ff24bd5fb37c58d9e41743a910df147357dda61.tar.gz busybox-w32-7ff24bd5fb37c58d9e41743a910df147357dda61.tar.bz2 busybox-w32-7ff24bd5fb37c58d9e41743a910df147357dda61.zip | |
generate_BUFSIZ.sh: catch BUFSIZE < 1024 also on "big" builds
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/generate_BUFSIZ.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generate_BUFSIZ.sh b/scripts/generate_BUFSIZ.sh index 8aa0174a6..750fedbef 100755 --- a/scripts/generate_BUFSIZ.sh +++ b/scripts/generate_BUFSIZ.sh | |||
| @@ -105,14 +105,14 @@ if $postcompile; then | |||
| 105 | COMMON_BUFSIZE=$(( (-END) & PAGE_MASK )) | 105 | COMMON_BUFSIZE=$(( (-END) & PAGE_MASK )) |
| 106 | echo "COMMON_BUFSIZE = $COMMON_BUFSIZE bytes" | 106 | echo "COMMON_BUFSIZE = $COMMON_BUFSIZE bytes" |
| 107 | 107 | ||
| 108 | if test x"$method" = x"1k"; then | 108 | if test x"$method" != x"malloc"; then |
| 109 | if test $COMMON_BUFSIZE -lt 1024; then | 109 | if test $COMMON_BUFSIZE -lt 1024; then |
| 110 | # _end[] has no enough space for bb_common_bufsiz1[] | 110 | # _end[] has no enough space for bb_common_bufsiz1[] |
| 111 | rm -- "$common_bufsiz_h.1k.OK" 2>/dev/null | 111 | rm -- "$common_bufsiz_h.1k.OK" 2>/dev/null |
| 112 | { md5sum <.config | cut -d' ' -f1; stat -c "%Y" .config; } >"$common_bufsiz_h.1k.FAIL" | 112 | { md5sum <.config | cut -d' ' -f1; stat -c "%Y" .config; } >"$common_bufsiz_h.1k.FAIL" |
| 113 | echo "Warning! Space in _end[] is too small ($COMMON_BUFSIZE bytes)!" | 113 | echo "Warning! Space in _end[] is too small ($COMMON_BUFSIZE bytes)!" |
| 114 | echo "Rerun make to build a binary which doesn't use it!" | 114 | echo "Rerun make to build a binary which doesn't use it!" |
| 115 | rm busybox_unstripped | 115 | rm busybox_unstripped busybox |
| 116 | exitcmd="exit 1" | 116 | exitcmd="exit 1" |
| 117 | else | 117 | else |
| 118 | rm -- "$common_bufsiz_h.1k.FAIL" 2>/dev/null | 118 | rm -- "$common_bufsiz_h.1k.FAIL" 2>/dev/null |
