Merge branch 'next' of https://gitlab.denx.de/u-boot/custodians/u-boot-mpc83xx
[platform/kernel/u-boot.git] / scripts / get_default_envs.sh
index 2872653..da86a9d 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; }