]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
script: Make get_default_envs.sh script exclude tools/env
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 4 Jun 2018 04:25:04 +0000 (13:25 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 8 Jun 2018 00:06:29 +0000 (20:06 -0400)
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>
scripts/get_default_envs.sh

index 287265331281469f45f3dca3f0c407482c4cd968..da86a9d69ccc7e0d67c23681c4c375464b3695ed 100755 (executable)
@@ -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; }