Browse Source

require gnu cpio and build it

Waldemar Brodkorb 4 years ago
parent
commit
ff5e4823de
1 changed files with 7 additions and 3 deletions
  1. 7 3
      scripts/prereq.sh

+ 7 - 3
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.. "