Re: [U-Boot-Users] [PATCH] fdt: Add simple alias support to fdt print command

2008-08-03 Thread Jerry Van Baren
David Gibson wrote: > On Sat, Aug 02, 2008 at 08:51:54PM -0400, Jerry Van Baren wrote: [snip] >> I've CC:ed David Gibson in case he has some advice - the concept is to >> indicate a dereference of /aliases nodes so that us lazy engineers don't >> have to cut'n'paste the whole long path from t

Re: [U-Boot-Users] [PATCH] fdt: Add simple alias support to fdt print command

2008-08-03 Thread David Gibson
On Sat, Aug 02, 2008 at 08:51:54PM -0400, Jerry Van Baren wrote: > Kumar Gala wrote: >> >> On Jul 9, 2008, at 12:02 PM, Jerry Van Baren wrote: >> >>> >>> Thinking out loud... we could define the syntax that a leading "*" >>> indicates the first part of the path is a dereference of /aliases. >>> >

Re: [U-Boot-Users] [PATCH] fdt: Add simple alias support to fdt print command

2008-08-02 Thread Jerry Van Baren
Kumar Gala wrote: > > On Jul 9, 2008, at 12:02 PM, Jerry Van Baren wrote: > >> >> Thinking out loud... we could define the syntax that a leading "*" >> indicates the first part of the path is a dereference of /aliases. >> >> Assuming >> /aliases/soc = /[EMAIL PROTECTED] >> /aliases/ethernet0 =

Re: [U-Boot-Users] [PATCH] fdt: Add simple alias support to fdt print command

2008-08-01 Thread Kumar Gala
On Jul 9, 2008, at 12:02 PM, Jerry Van Baren wrote: > > Thinking out loud... we could define the syntax that a leading "*" > indicates the first part of the path is a dereference of /aliases. > > Assuming > /aliases/soc = /[EMAIL PROTECTED] > /aliases/ethernet0 = /[EMAIL PROTECTED]/.../enet0

Re: [U-Boot-Users] [PATCH] fdt: Add simple alias support to fdt print command

2008-07-09 Thread Jerry Van Baren
Kumar Gala wrote: > > On Jul 9, 2008, at 10:17 AM, Jerry Van Baren wrote: > >> 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

Re: [U-Boot-Users] [PATCH] fdt: Add simple alias support to fdt print command

2008-07-09 Thread Kumar Gala
On Jul 9, 2008, at 10:17 AM, Jerry Van Baren wrote: > 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 >>

Re: [U-Boot-Users] [PATCH] fdt: Add simple alias support to fdt print command

2008-07-09 Thread Jerry Van Baren
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 ali

[U-Boot-Users] [PATCH] fdt: Add simple alias support to fdt print command

2008-07-09 Thread Kumar Gala
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 shorte