[PATCH 05/10] fdtdump: make usage a bit more friendly

Mike Frysinger vapier at gentoo.org
Fri Apr 12 02:31:36 EST 2013


On Thursday 11 April 2013 00:00:14 David Gibson wrote:
> On Wed, Apr 10, 2013 at 02:29:10PM -0400, Mike Frysinger wrote:
> > This starts a new usage framework and then cuts fdtdump over to it.
> > Now we can do `fdtdump -h` and get something useful back.
> 
> Hrm.  The problem is that the new scheme relies on getopt_long(),
> which is a GNU extension.  I'd like to have dtc and associated tools
> compilable on FreeBSD as well as Linux.

i don't run FreeBSD myself, but according to their own website, it looks like
getopt_long() is available ?
http://www.freebsd.org/cgi/man.cgi?query=getopt_long&apropos=0&sektion=3&manpath=FreeBSD+9.1-
RELEASE&arch=default&format=html

HISTORY
     The getopt_long() and getopt_long_only() functions first appeared in the
     GNU libiberty library.  The first BSD implementation of getopt_long()
     appeared in NetBSD 1.5, the first BSD implementation of
     getopt_long_only() in OpenBSD 3.3.  FreeBSD first included getopt_long()
     in FreeBSD 5.0, getopt_long_only() in FreeBSD 5.2.

i'm assuming you don't need to support <FreeBSD 5.0 :)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20130411/b35dba78/attachment.sig>


More information about the devicetree-discuss mailing list