From: Stijn Tintel <stijn@linux-ipv6.be>
Date: Fri, 4 Dec 2020 17:16:26 +0000 (+0200)
Subject: build: require rsync
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0ba83a757728185eabd965e07331508923cca825;p=openwrt%2Fstaging%2Fdedeckeh.git

build: require rsync

It seems to be required to build toolchain/kernel-headers.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
---

diff --git a/README.md b/README.md
index 8d9a616ac5..21acbf4b80 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ documentation.
 
 ```
 gcc binutils bzip2 flex python3 perl make find grep diff unzip gawk getopt
-subversion libz-dev libc-dev
+subversion libz-dev libc-dev rsync
 ```
 
 ### Quickstart
diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index e7314b253b..5045fabdfb 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -170,6 +170,9 @@ $(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.7.12.2, \
 $(eval $(call SetupHostCommand,file,Please install the 'file' package, \
 	file --version 2>&1 | grep file))
 
+$(eval $(call SetupHostCommand,rsync,Please install 'rsync', \
+	rsync --version </dev/null))
+
 $(STAGING_DIR_HOST)/bin/mkhash: $(SCRIPT_DIR)/mkhash.c
 	mkdir -p $(dir $@)
 	$(CC) -O2 -I$(TOPDIR)/tools/include -o $@ $<