summaryrefslogtreecommitdiff
path: root/scripts/prereq.sh
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2020-06-07 11:14:19 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2020-06-07 11:14:19 +0200
commit8ba4645f6b4c79485f4d039e5c80a383087bc2cb (patch)
tree85e888544dc799a3f22fd30edc6e29633865a159 /scripts/prereq.sh
parentdc05dc8a143f8273ad911177f7259a4f4887760f (diff)
linux uses rsync nowadays to copy headers
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 1763a1d65..b71adaac1 100755
--- a/scripts/prereq.sh
+++ b/scripts/prereq.sh
@@ -521,6 +521,15 @@ else
printf "found\n"
fi
+printf " ---> checking if rsync is installed.. "
+host_build_rsync=0
+if ! which rsync >/dev/null 2>&1; then
+ printf "not found\n"
+ host_build_rsync=1
+else
+ printf "found\n"
+fi
+
host_build_tar=0
if which tar >/dev/null 2>&1; then
if ! tar --version 2>/dev/null|grep GNU >/dev/null;then
@@ -692,6 +701,9 @@ fi
if [ $host_build_patch -eq 1 ]; then
printf "\t%s\n" "select ADK_HOST_BUILD_PATCH" >> $topdir/target/config/Config.in.prereq
fi
+if [ $host_build_rsync -eq 1 ]; then
+ printf "\t%s\n" "select ADK_HOST_BUILD_RSYNC" >> $topdir/target/config/Config.in.prereq
+fi
if [ $host_build_findutils -eq 1 ]; then
printf "\t%s\n" "select ADK_HOST_BUILD_FINDUTILS" >> $topdir/target/config/Config.in.prereq
fi