cbfstool: Remove more unused functions from common.c
A lot of the early functions have been re-implemented in a context- centric mode, rather than relying on global variables. Removing these has the nice side-effect of allowing us to remove more global variables. Change-Id: Iee716ef38729705432dd10d12758c886d38701a8 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/5104 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
@@ -62,21 +62,12 @@ int buffer_write_file(struct buffer *buffer, const char *filename);
|
||||
/* Destroys a memory buffer. */
|
||||
void buffer_delete(struct buffer *buffer);
|
||||
|
||||
extern uint32_t romsize;
|
||||
extern int host_bigendian;
|
||||
extern uint32_t arch;
|
||||
|
||||
const char *arch_to_string(uint32_t a);
|
||||
uint32_t string_to_arch(const char *arch_string);
|
||||
|
||||
#define ALIGN(val, by) (((val) + (by)-1)&~((by)-1))
|
||||
|
||||
size_t getfilesize(const char *filename);
|
||||
void *loadfile(const char *filename, uint32_t * romsize_p, void *content,
|
||||
int place);
|
||||
void *loadrom(const char *filename);
|
||||
int writerom(const char *filename, void *start, uint32_t size);
|
||||
|
||||
int iself(unsigned char *input);
|
||||
|
||||
typedef void (*comp_func_ptr) (char *, int, char *, int *);
|
||||
@@ -103,17 +94,6 @@ int parse_flat_binary_to_payload(const struct buffer *input,
|
||||
int parse_elf_to_stage(const struct buffer *input, struct buffer *output,
|
||||
comp_algo algo, uint32_t *location);
|
||||
|
||||
void *create_cbfs_file(const char *filename, void *data, uint32_t * datasize,
|
||||
uint32_t type, uint32_t * location);
|
||||
|
||||
int add_file_to_cbfs(void *content, uint32_t contentsize, uint32_t location);
|
||||
int remove_file_from_cbfs(const char *filename);
|
||||
void print_cbfs_directory(const char *filename);
|
||||
int extract_file_from_cbfs(const char *filename, const char *payloadname, const char *outpath);
|
||||
|
||||
uint32_t cbfs_find_location(const char *romfile, uint32_t filesize,
|
||||
const char *filename, uint32_t align);
|
||||
|
||||
void print_supported_filetypes(void);
|
||||
|
||||
#define ARRAY_SIZE(a) (int)(sizeof(a) / sizeof((a)[0]))
|
||||
|
Reference in New Issue
Block a user