[U-Boot-Users] [PATCH] Use `ln -sf` rather than `rm -f && ln -s`
Wolfgang Denk
wd at denx.de
Mon Jan 28 21:53:28 CET 2008
In message <1201520254-25593-1-git-send-email-vapier at gentoo.org> you wrote:
>
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> tools/Makefile | 9 +++------
> 1 files changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/tools/Makefile b/tools/Makefile
> index af0de47..22d9dae 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -203,19 +203,16 @@ else
> endif
>
> $(obj)environment.c:
> - @rm -f $(obj)environment.c
> - ln -s $(src)../common/environment.c $(obj)environment.c
> + ln -s -f $(src)../common/environment.c $(obj)environment.c
Be careful here. Are you 100% sure that all systems in the field will
behave exactly as your's is doing?
What is the exact problem you are trying to solve? If it's not a bug,
I recomment to leave the code as is.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If you can't beat it or corrupt it, you pretend it was your idea in
the first place. - Terry Pratchett, _Guards! Guards!_
More information about the U-Boot
mailing list