On Tue, Jan 13, 2015 at 08:07:59PM -0800, Simon Glass wrote: > Hi Wang, > > On 13 January 2015 at 19:53, Wang Long <long.wanglong@xxxxxxxxxx> wrote: > > add the delete node and property function for fdtput. > > > > usage: > > 1) delete a node > > # fdtput test.dtb -d node /chosen/son > > 2) delete a property > > # fdtput test.dtb -d prop /chosen/ prop_name > > This is a great addition! > > I know David is keen on single character flags. But would it be better > to have a separate delete option, e.g. Well.. it's not that I'm actually keen on them. Just that I haven't thought the bother of another dependency adding a long options library was worth it so far. > -r to remove a node > -d to delete a property I like that suggestion better than "-d node" and "-d prop". But I wonder if it might be even simpler to just base it on the number of arguments so: $ fdtput foo.dtb -d /node@1234 some-property will delete a single property, but $ fdtput foo.dtb -d /node@1234 will delete the whole node. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Attachment:
pgpfbGLzHVXxS.pgp
Description: PGP signature