Kumar Gala wrote:
> If the path we are trying to print doesn't exist see if it matches an
> aliases.  We don't do anything fancy at this point, but just strip the
> leading '/' if it exists and see if we have an exact match to an alias.
> 
> In the future we could try and prefix matching so the alias could be used
> as a shorter path reference.
> 
> Signed-off-by: Kumar Gala <[EMAIL PROTECTED]>

Cool and useful too.  Out of curiousity, does "real" Open Firmware do 
this sort of thing with aliases?

One reservation I have (which may disappear if the answer to the 
previous question is "yes"), it automatically and silently dereferences 
the /aliases/X node when asked to display /X or X (but only if /X 
doesn't exist in the dtb).  This is not an obvious behavior since X 
isn't real.

Should we have a different display syntax to force the dereference of an 
alias X?  Assuming "*" is a good choice, this would change the behavior
   fdt print *ethernet0
to dereference /aliases/ethernet0 and print out
   /[EMAIL PROTECTED]/.../enet0 (or whatever).

Thanks,
gvb

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to