switch-coreboot/util/lar/lib.h
Stefan Reinauer d44bf71932 This is another LAR update. It changes the way a LinuxBIOS image is
built.
Instead of having a bootblock and a lar archive, the bootblock is now
part of the archive:

$ lar -l build/linuxbios.rom
  normal/initram (93 bytes @0x24)
  normal/payload (32768 bytes @0xb4)
  normal/stage2 (32028 bytes @0x80e4)
  linuxbios.bootblock (16384 bytes @0x3c000)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@240 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-11 13:55:36 +00:00

67 lines
1.7 KiB
C

/*
* lar - LinuxBIOS archiver
*
* Copyright (C) 2006-2007 coresystems GmbH
* Written by Stefan Reinauer <stepan@coresystems.de> for coresystems GmbH.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
*/
#ifndef __LAR_LIB_H
#define __LAR_LIB_H
/* data types */
struct file {
char *name;
struct file *next;
};
enum {
NONE,
CREATE,
LIST,
EXTRACT
} larmodes;
/* prototypes for lar.c functions */
int verbose(void);
long get_larsize(void);
char *get_bootblock(void);
/* prototypes for lib.c functions */
int mkdirp(const char *dirpath);
int add_files(const char *name);
int add_file_or_directory(const char *name);
struct file *get_files(void);
void free_files(void);
/* prototypes for extract.c functions */
int extract_lar(const char *archivename, struct file *files);
/* prototypes for list.c functions */
int list_lar(const char *archivename, struct file *files);
/* prototypes for create.c functions */
int create_lar(const char *archivename, struct file *files);
/* prototypes for bootblock.c functions */
extern char *bootblock_code;
extern int bootblock_len;
int load_bootblock(const char *bootblock);
int fixup_bootblock(void);
#endif