From 2c6139f32fd4eb2829568bc3c6eeb379c3c7d9be Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 25 Dec 2016 10:32:38 +0100 Subject: 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. --- scripts/prereq.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'scripts/prereq.sh') 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 -- cgit v1.2.3