[U-Boot] [PATCH v2] Makefile: remove generated boards.cfg within make distclean

Masahiro Yamada yamada.m at jp.panasonic.com
Mon Aug 18 06:23:31 CEST 2014


Hi Roger,


On Sun, 10 Aug 2014 14:37:40 +0200
Roger Meier <roger at bufferoverflow.ch> wrote:

> Signed-off-by: Roger Meier <roger at bufferoverflow.ch>
> CC: Masahiro Yamada <yamada.m at jp.panasonic.com>
> CC: Tom Rini <trini at ti.com>
> CC: Wolfgang Denk <wd at denx.de>
> 
> ---
> Changes for v2:
>    - remove boards.cfg within make distclean instead of mrproper
>    - use mrproper instead of distclean within MAKEALL
> ---
>  MAKEALL  |    2 +-
>  Makefile |    3 ++-
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/MAKEALL b/MAKEALL
> index 929fe88..392ea8d 100755
> --- a/MAKEALL
> +++ b/MAKEALL
> @@ -658,7 +658,7 @@ build_target() {
>  		MAKE="${MAKE} O=${output_dir}"
>  	fi
>  
> -	${MAKE} distclean >/dev/null
> +	${MAKE} mrproper >/dev/null
>  
>  	echo "Building ${target} board..."
>  	${MAKE} -s ${target}_defconfig >/dev/null
> diff --git a/Makefile b/Makefile
> index 666d291..067a301 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1285,7 +1285,8 @@ distclean: mrproper
>  		-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
>  		-o -name '.*.rej' -o -name '*%' -o -name 'core' \
>  		-o -name '*.pyc' \) \
> -		-type f -print | xargs rm -f
> +		-type f -print | xargs rm -f \
> +	rm -f boards.cfg
>  
>  backup:
>  	F=`basename $(srctree)` ; cd .. ; \


The backslash after "xargs rm -f" is unnecessary, I think.


Should be like follows?


		-type f -print | xargs rm -f
	@rm -f boards.cfg





Best Regards
Masahiro Yamada



More information about the U-Boot mailing list