[LinuxBIOS] [patch 4/5] Add an "ADD" mode to the LAR utility

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Mon Jul 23 18:44:24 CEST 2007


On 23.07.2007 18:06, jordan.crouse at amd.com wrote:
> Provide the ability to add arbitrary files to an existing LAR.  Also
> fleshed out the "usage" screen.
> 
> Signed-off-by: Jordan Crouse <jordan.crouse at amd.com>
> Index: LinuxBIOSv3/util/lar/lar.c
> ===================================================================
> --- LinuxBIOSv3.orig/util/lar/lar.c	2007-07-11 11:41:37.000000000 -0600
> +++ LinuxBIOSv3/util/lar/lar.c	2007-07-11 11:51:57.000000000 -0600
> @@ -44,7 +44,33 @@
>  static void usage(char *name)
>  {
>  	printf("\nLAR - the LinuxBIOS Archiver " VERSION "\n" COPYRIGHT "\n\n"
> -	       "Usage: %s [-cxl] archive.lar [[[file1] file2] ...]\n\n", name);
> +	       "Usage: %s [-cxal] archive.lar [[[file1] file2] ...]\n\n", name);
> +	printf("Examples:\n");
> +	printf("  lar -c -s 32768 -b bootblock myrom.lar foo nocompress:bar\n");
> +	printf("  lar -a myrom.lar foo blob:baz\n");

"blob" flag used here

> +	printf("  lar -l myrom.lar\n\n");
> +
> +	printf("File names:\n");
> +	printf("   Names specified in the create or add modes are formatted as\n");
> +	printf("   follows:  [flags]:[filename]:[pathname].\n");
> +	printf("     * Flags are modifiers for the file.  Valid flags:\n");
> +	printf("       nocompress\tDon't compress the file in the LAR\n");

"blob" flag not mentioned here

> +	printf("     * Filename is the name of the file on disk.  If no pathname\n");

Regards,
Carl-Daniel




More information about the coreboot mailing list