summaryrefslogtreecommitdiff
path: root/util/cbfstool/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool/common.h')
-rw-r--r--util/cbfstool/common.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h
index a50419b27b..b8ff4a3c7c 100644
--- a/util/cbfstool/common.h
+++ b/util/cbfstool/common.h
@@ -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]))