aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2022-01-04 14:32:41 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2022-01-04 14:32:41 +0100
commited2af2e82dbcfccb7392e9fbc3f837de1594c103 (patch)
treeb7f56fe38963c79ecf6fc7698200daf4d93873ae
parentc3cfcc92422f6e525073226cdbfdcb00ab1e7dc7 (diff)
downloadbusybox-w32-ed2af2e82dbcfccb7392e9fbc3f837de1594c103.tar.gz
busybox-w32-ed2af2e82dbcfccb7392e9fbc3f837de1594c103.tar.bz2
busybox-w32-ed2af2e82dbcfccb7392e9fbc3f837de1594c103.zip
build system: detect if build host has no bzip2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-xscripts/bb_release6
-rwxr-xr-xscripts/embedded_scripts6
-rwxr-xr-xscripts/mkconfigs11
3 files changed, 20 insertions, 3 deletions
diff --git a/scripts/bb_release b/scripts/bb_release
index 545440d3a..180ad8f2e 100755
--- a/scripts/bb_release
+++ b/scripts/bb_release
@@ -17,7 +17,7 @@ VERSION=`ls busybox-*.tar.gz | sed 's/busybox-\(.*\)\.tar\.gz/\1/'`
17zcat busybox-$VERSION.tar.gz | bzip2 > busybox-$VERSION.tar.bz2 17zcat busybox-$VERSION.tar.gz | bzip2 > busybox-$VERSION.tar.bz2
18 18
19for releasefile in busybox-$VERSION.tar.gz busybox-$VERSION.tar.bz2; do 19for releasefile in busybox-$VERSION.tar.gz busybox-$VERSION.tar.bz2; do
20 test -f $releasefile || { echo "no $releasefile"; exit 1; } 20 test -f $releasefile || { echo "no $releasefile"; exit 1; }
21 gpg --detach-sign $releasefile 21 gpg --detach-sign $releasefile
22 sha256sum $releasefile > $releasefile.sha256 22 sha256sum $releasefile > $releasefile.sha256
23done 23done
diff --git a/scripts/embedded_scripts b/scripts/embedded_scripts
index aa7bf3e8a..205ac591a 100755
--- a/scripts/embedded_scripts
+++ b/scripts/embedded_scripts
@@ -23,6 +23,12 @@ if test $? != 0; then
23 exit 1 23 exit 1
24fi 24fi
25 25
26bzip2 </dev/null >/dev/null
27if test $? != 0; then
28 echo 'bzip2 is not installed'
29 exit 1
30fi
31
26custom_scripts="" 32custom_scripts=""
27if [ -d "$custom_loc" ] 33if [ -d "$custom_loc" ]
28then 34then
diff --git a/scripts/mkconfigs b/scripts/mkconfigs
index 6a26fe1dd..1bbf10c3a 100755
--- a/scripts/mkconfigs
+++ b/scripts/mkconfigs
@@ -28,6 +28,17 @@
28 28
29config=.config 29config=.config
30 30
31od -v -b </dev/null >/dev/null
32if test $? != 0; then
33 echo 'od tool is not installed or cannot accept "-v -b" options'
34 exit 1
35fi
36bzip2 </dev/null >/dev/null
37if test $? != 0; then
38 echo 'bzip2 is not installed'
39 exit 1
40fi
41
31{ 42{
32echo "\ 43echo "\
33#ifndef _BBCONFIGOPTS_H 44#ifndef _BBCONFIGOPTS_H