Patchwork [U-Boot,2/2] Makefile: Accept target names in all lower case to ease matching

login
register
mail settings
Submitter Henrik Nordström
Date Nov. 25, 2012, 11:22 a.m.
Message ID <1353842544.17518.11.camel@home.hno.se>
Download mbox | patch
Permalink /patch/201517/
State Superseded
Headers show

Comments

Henrik Nordström - Nov. 25, 2012, 11:22 a.m.
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Wolfgang Denk - Nov. 25, 2012, 5:45 p.m.
Dear Henrik Nordström,

In message <1353842544.17518.11.camel@home.hno.se> you wrote:
> ---
>  Makefile |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 1a17be9..5a98745 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -752,6 +752,7 @@ unconfig:
>  sinclude $(obj).boards.depend
>  $(obj).boards.depend:	boards.cfg
>  	@awk '(NF && $$1 !~ /^#/) { print $$1 ": " $$1 "_config; $$(MAKE)" }' $< > $@
> +	@awk '(NF && $$1 !~ /^#/ && tolower($$1) != $$1) { print tolower($$1) ": " $$1 "_config; $$(MAKE)" }' $< > $@

NAK.  This is not DOS.  Names are case sensitive.

Best regards,

Wolfgang Denk

Patch

diff --git a/Makefile b/Makefile
index 1a17be9..5a98745 100644
--- a/Makefile
+++ b/Makefile
@@ -752,6 +752,7 @@  unconfig:
 sinclude $(obj).boards.depend
 $(obj).boards.depend:	boards.cfg
 	@awk '(NF && $$1 !~ /^#/) { print $$1 ": " $$1 "_config; $$(MAKE)" }' $< > $@
+	@awk '(NF && $$1 !~ /^#/ && tolower($$1) != $$1) { print tolower($$1) ": " $$1 "_config; $$(MAKE)" }' $< > $@
 
 #
 # Functions to generate common board directory names