[U-Boot] [PATCH 4/4 v2] Makefile/mkconfig: read simple board configurations from boards.cfg

Peter Tyser ptyser at xes-inc.com
Fri May 28 07:32:55 CEST 2010


On Fri, 2010-05-28 at 00:13 -0500, Peter Tyser wrote:
> Hi Wolfgang,
> 
> <snip>
> 
> > Note:
> > 	I had to disable the simple and very convenient rule
> > 		%: %_config
> > 			$(MAKE)
> > 	in the top level Makefile, because it caused each invocation
> > 	of "make" to fail with an error message:
> > 
> > 		make: *** No rule to make target `Makefile_config'.  Stop.
> > 	
> > 	Fixes welcome!
> 
> I think adding the following line somewhere in the Makefile should allow
> the %:%_config rule to be re-enabled:
> 
> Makefile:;

Maybe I spoke too soon...  It seems that make looks for other files that
are dependencies, but don't have explicit rules.  Like
include/autoconf.mk, config.mk, etc.  Linux has a number of implicit
rule overrides (search for implicit in its top-level Makefile) that
appear to be for the same type of issue.  This seems like a somewhat
hokey fix to have a number of empty rules defined though.  Any better
ideas or comments on why this issue didn't exist before?

Best,
Peter



More information about the U-Boot mailing list