Lines Matching +full:built +full:- +full:in
2 # SPDX-License-Identifier: GPL-2.0+
7 # This file extracts default envs from built u-boot
8 # usage: get_default_envs.sh [build dir] > u-boot-env-default.txt
9 set -ue
11 : "${OBJCOPY:=${CROSS_COMPILE:-}objcopy}"
13 ENV_OBJ_FILE="built-in.o"
18 if [ "$#" -eq 1 ]; then
21 path=$(readlink -f $0)
25 env_obj_file_path=$(find ${path} -path "*/env/*" -not -path "*/spl/*" \
26 -not -path "*/tools/*" -name "${ENV_OBJ_FILE}")
27 [ -z "${env_obj_file_path}" ] && \
32 # NOTE: objcopy saves its output to file passed in
33 # (copy_${ENV_OBJ_FILE} in this case)
35 ${OBJCOPY} -O binary -j ".rodata.default_environment" ${ENV_OBJ_FILE_COPY}
38 tr '\0' '\n' < ${ENV_OBJ_FILE_COPY} | sort -u