> From: Wolfgang Denk [mailto:w...@denx.de] > Sent: Sunday, November 01, 2009 8:58 AM > > Dear Mike Frysinger, > > In message <200911010838.08938.vap...@gentoo.org> you wrote: > > > > > > > +if [ ! -z "$ARCH" -a "$ARCH" != "$2" ]; then > > > > > > > > is the !-z really needed ? > > > > > > We don't want the check to trigger if ARCH is not defined. > > > [ "$ARCH" != "$2" ] will trigger as "" != "arm" > > > > the implied question is whether this is a valid state. i know you dont > wan> t > > that kind of comparison, but i thought the Makefile would have set it up > fo> r > > you by default. now that i think about it a bit more, that isnt what > happe> ns > > at all. > > > > so only thing to change here is to use -n and not !-z > > Or even omit the (redundant) "-n" and just write > > if [ "$ARCH" -a "$ARCH" != "$2" ]; then Ack. V2 coming up
Regards, Nishanth Menon _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot