build system: detect if build host has no bzip2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c3cfcc9242
commit
ed2af2e82d
@ -17,7 +17,7 @@ VERSION=`ls busybox-*.tar.gz | sed 's/busybox-\(.*\)\.tar\.gz/\1/'`
|
|||||||
zcat busybox-$VERSION.tar.gz | bzip2 > busybox-$VERSION.tar.bz2
|
zcat busybox-$VERSION.tar.gz | bzip2 > busybox-$VERSION.tar.bz2
|
||||||
|
|
||||||
for releasefile in busybox-$VERSION.tar.gz busybox-$VERSION.tar.bz2; do
|
for releasefile in busybox-$VERSION.tar.gz busybox-$VERSION.tar.bz2; do
|
||||||
test -f $releasefile || { echo "no $releasefile"; exit 1; }
|
test -f $releasefile || { echo "no $releasefile"; exit 1; }
|
||||||
gpg --detach-sign $releasefile
|
gpg --detach-sign $releasefile
|
||||||
sha256sum $releasefile > $releasefile.sha256
|
sha256sum $releasefile > $releasefile.sha256
|
||||||
done
|
done
|
||||||
|
@ -23,6 +23,12 @@ if test $? != 0; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
bzip2 </dev/null >/dev/null
|
||||||
|
if test $? != 0; then
|
||||||
|
echo 'bzip2 is not installed'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
custom_scripts=""
|
custom_scripts=""
|
||||||
if [ -d "$custom_loc" ]
|
if [ -d "$custom_loc" ]
|
||||||
then
|
then
|
||||||
|
@ -28,6 +28,17 @@
|
|||||||
|
|
||||||
config=.config
|
config=.config
|
||||||
|
|
||||||
|
od -v -b </dev/null >/dev/null
|
||||||
|
if test $? != 0; then
|
||||||
|
echo 'od tool is not installed or cannot accept "-v -b" options'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
bzip2 </dev/null >/dev/null
|
||||||
|
if test $? != 0; then
|
||||||
|
echo 'bzip2 is not installed'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
{
|
{
|
||||||
echo "\
|
echo "\
|
||||||
#ifndef _BBCONFIGOPTS_H
|
#ifndef _BBCONFIGOPTS_H
|
||||||
|
Loading…
Reference in New Issue
Block a user