summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-30 19:49:07 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-30 19:49:07 +0200
commit712a7998a6e64638154c2cc3b3262b0881ca0138 (patch)
treea8cb06c8f87a571b4132ca5ce1280316df321d5e /scripts
parent2615fde640b4420ab281006b996360ae7efb2e82 (diff)
add findutils do host machinery
Diffstat (limited to 'scripts')
-rw-r--r--scripts/scan-tools.sh22
1 files changed, 16 insertions, 6 deletions
diff --git a/scripts/scan-tools.sh b/scripts/scan-tools.sh
index 119a7a6bd..c9b8029d5 100644
--- a/scripts/scan-tools.sh
+++ b/scripts/scan-tools.sh
@@ -196,12 +196,6 @@ if ! which perl >/dev/null 2>&1; then
out=1
fi
-if ! which xargs >/dev/null 2>&1; then
- echo "You need xargs to continue."
- echo
- out=1
-fi
-
if ! which g++ >/dev/null 2>&1; then
echo "You need g++ (GNU C++ compiler) to continue."
echo
@@ -251,6 +245,21 @@ if ! which pkgconf >/dev/null 2>&1; then
host_build_pkgconf=1
fi
+host_build_findutils=0
+if ! which gxargs >/dev/null 2>&1; then
+ if ! which xargs >/dev/null 2>&1; then
+ echo "No xargs found, will build one."
+ host_build_findutils=1
+ fi
+fi
+
+if ! which gfind >/dev/null 2>&1; then
+ if ! which find >/dev/null 2>&1; then
+ echo "No find found, will build one."
+ host_build_findutils=1
+ fi
+fi
+
host_build_xz=0
if ! which xz >/dev/null 2>&1; then
echo "No xz found, will build one."
@@ -288,6 +297,7 @@ if [ $host_build_file -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_FILE"
if [ $host_build_flex -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_FLEX" >> $topdir/target/config/Config.in.prereq ;fi
if [ $host_build_m4 -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_M4" >> $topdir/target/config/Config.in.prereq ;fi
if [ $host_build_pkgconf -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_PKGCONF" >> $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
if [ $host_build_xz -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_XZ" >> $topdir/target/config/Config.in.prereq ;fi
# optional
if [ $host_build_ccache -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_CCACHE if ADK_HOST_NEED_CCACHE" >> $topdir/target/config/Config.in.prereq ;fi