[U-Boot-Users] [PATCH] add 'license' command to u-boot?commandline

Jerry Van Baren gerald.vanbaren at ge.com
Wed Jul 9 16:42:31 CEST 2008


Harald Welte wrote:
> Hi!
> 
> Since there has been support by Detlev and Stefan, I have modified the
> patch in a way to dynamically create the include/license.h file from the
> COPYING file by the use of a small C program and gzip combined with a
> Makefile rule.
> 
> What do you think now?

Bleah on the small C program (nothing personal, just hate to add Yet 
Another Program to the build process).  How about using echo for prelim 
text (if necessary) and xxd to create the struct instead?  I like making 
maintenance Somebody Else's Problem (SEP[1])

$ man xxd
XXD(1)

NAME
        xxd - make a hexdump or do the reverse.

[snip other possibly useful flags like column]

        -i | -include
               output in C include file style. A complete static array 
definition is written  (named  after  the  input  file),
               unless xxd reads from stdin.

        -l len | -len len
               stop after writing <len> octets.

Best regards,
gvb

[1] <http://en.wikipedia.org/wiki/Somebody_Else%27s_Problem>




More information about the U-Boot mailing list