From: Seung-Woo Kim <sw0312.kim@samsung.com>
Date: Mon, 4 Jun 2018 04:25:04 +0000 (+0900)
Subject: script: Make get_default_envs.sh script exclude tools/env
X-Git-Tag: v2025.01-rc5-pxa1908~4128
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/git-favicon.png?a=commitdiff_plain;h=e94b93d5bba5751f420b641cdbcc0cb53fea1dc1;p=u-boot.git

script: Make get_default_envs.sh script exclude tools/env

If building envtools, there is env directory in tools directory.
Mafe the get_default_envs.sh script exclude tools/env directory.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
---

diff --git a/scripts/get_default_envs.sh b/scripts/get_default_envs.sh
index 2872653312..da86a9d69c 100755
--- a/scripts/get_default_envs.sh
+++ b/scripts/get_default_envs.sh
@@ -23,7 +23,7 @@ else
 fi
 
 env_obj_file_path=$(find ${path} -path "*/env/*" -not -path "*/spl/*" \
-			 -name "${ENV_OBJ_FILE}")
+			 -not -path "*/tools/*" -name "${ENV_OBJ_FILE}")
 [ -z "${env_obj_file_path}" ] && \
     { echoerr "File '${ENV_OBJ_FILE}' not found!"; exit 1; }