Hi, On Tue, 13 Feb 2018 23:01:13 +0100 Lukasz Majewski <lu...@denx.de> wrote:
> This commit fixes several issues: > > - After moving env related code to ./env directory the env_common.o file > is no longer present in the system (has been replaced with built-in.o). > > - Use ${OBJCOPY} if available, fallback to system default's objcopy if not > present. > > - Extend the script to accept different build directory than current one. > It is extremely handy with OE usage, where source code is separated from > build. > > Signed-off-by: Lukasz Majewski <lu...@denx.de> > --- > > scripts/get_default_envs.sh | 19 ++++++++++++++----- > 1 file changed, 14 insertions(+), 5 deletions(-) > > diff --git a/scripts/get_default_envs.sh b/scripts/get_default_envs.sh > index 7955db60e5..bbb6d0a6ef 100755 > --- a/scripts/get_default_envs.sh > +++ b/scripts/get_default_envs.sh > @@ -6,16 +6,24 @@ > # > > # This file extracts default envs from built u-boot > -# usage: get_default_envs.sh > u-boot-env-default.txt > +# usage: get_default_envs.sh [build dir] > u-boot-env-default.txt > set -ue > > -ENV_OBJ_FILE="env_common.o" > +: "${OBJCOPY:=objcopy}" Maybe "${CROSS_COMPILE}objcopy" would be a better default as that's what the build system uses. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot