summaryrefslogtreecommitdiff
path: root/scripts/prereq.sh
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-12-25 10:32:38 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-12-25 10:35:31 +0100
commit2c6139f32fd4eb2829568bc3c6eeb379c3c7d9be (patch)
tree9904e99f5e1d3293e993ca06070f75c2f29b90af /scripts/prereq.sh
parentacd7dc43632c921003b795f25876e98996fc7bf4 (diff)
use GNU cpio instead of heirloom cpio
On newer hardware heirloom cpio triggers a segfault in memcpy from glibc (ssse3 optimized version). Just use default GNU cpio and provide it via host package.
Diffstat (limited to 'scripts/prereq.sh')
-rwxr-xr-xscripts/prereq.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/prereq.sh b/scripts/prereq.sh
index fa2d52161..57652ed5f 100755
--- a/scripts/prereq.sh
+++ b/scripts/prereq.sh
@@ -575,6 +575,15 @@ else
host_build_sed=1
fi
+printf " ---> checking if cpio is installed.. "
+host_build_cpio=0
+if ! which cpio >/dev/null 2>&1; then
+ printf "not found\n"
+ host_build_cpio=1
+else
+ printf "found\n"
+fi
+
printf " ---> checking if xz is installed.. "
host_build_xz=0
if ! which xz >/dev/null 2>&1; then
@@ -668,6 +677,9 @@ fi
if [ $host_build_tar -eq 1 ]; then
printf "\t%s\n" "select ADK_HOST_BUILD_TAR" >> $topdir/target/config/Config.in.prereq
fi
+if [ $host_build_cpio -eq 1 ]; then
+ printf "\t%s\n" "select ADK_HOST_BUILD_CPIO" >> $topdir/target/config/Config.in.prereq
+fi
if [ $host_build_xz -eq 1 ]; then
printf "\t%s\n" "select ADK_HOST_BUILD_XZ" >> $topdir/target/config/Config.in.prereq
fi