From ff5e4823deb6fc7a03c0173f02abc506e800f04d Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 9 Oct 2019 18:42:06 +0200 Subject: require gnu cpio and build it --- scripts/prereq.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'scripts/prereq.sh') diff --git a/scripts/prereq.sh b/scripts/prereq.sh index f86af6435..b9a47458c 100755 --- a/scripts/prereq.sh +++ b/scripts/prereq.sh @@ -596,11 +596,15 @@ fi printf " ---> checking if cpio is installed.. " host_build_cpio=0 -if ! which cpio >/dev/null 2>&1; then +if which cpio >/dev/null 2>&1; then + if ! cpio --version 2>/dev/null|grep GNU >/dev/null;then + printf "found but not usable\n" + host_build_cpio=1 + else + printf "found\n" + fi printf "not found\n" host_build_cpio=1 -else - printf "found\n" fi printf " ---> checking if xz is installed.. " -- cgit v1.2.3