diff mbox

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

Message ID 1353842544.17518.11.camel@home.hno.se
State Superseded
Headers show

Commit Message

Henrik Nordström Nov. 25, 2012, 11:22 a.m. UTC
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Wolfgang Denk Nov. 25, 2012, 5:45 p.m. UTC | #1
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
diff mbox

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