#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0+
#
# Copyright (C) 2016, Lukasz Majewski <l.majewski@majess.pl>
#
-# SPDX-License-Identifier: GPL-2.0+
-#
# This file extracts default envs from built u-boot
# usage: get_default_envs.sh [build dir] > u-boot-env-default.txt
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; }