From ed2af2e82dbcfccb7392e9fbc3f837de1594c103 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 4 Jan 2022 14:32:41 +0100 Subject: build system: detect if build host has no bzip2 Signed-off-by: Denys Vlasenko --- scripts/mkconfigs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'scripts/mkconfigs') diff --git a/scripts/mkconfigs b/scripts/mkconfigs index 6a26fe1..1bbf10c 100755 --- a/scripts/mkconfigs +++ b/scripts/mkconfigs @@ -28,6 +28,17 @@ config=.config +od -v -b /dev/null +if test $? != 0; then + echo 'od tool is not installed or cannot accept "-v -b" options' + exit 1 +fi +bzip2 /dev/null +if test $? != 0; then + echo 'bzip2 is not installed' + exit 1 +fi + { echo "\ #ifndef _BBCONFIGOPTS_H -- cgit v1.1