coreboot-kgpe-d16/util
Hung-Te Lin 3cfacbf196 cbfstool: Add buffer management API.
Many functions in cbfstool need to deal with a memory buffer - both location and
size. Right now it's made by different ways: for ROM image using global variable
(romsize, master_header); and in cbfs-* using return value for size and char**
to return memory location.

This may cause bugs like assuming incorrect return types, ex:
	uint32_t file_size = parse();	// which returns "-1" on error
	if (file_size <= 0) { ...
And the parse error will never be caught.

We can simplify this by introducing a buffer API, to change
	unsigned int do_something(char *input, size_t len, char **output, ...)
into
	int do_something(struct buffer *input, struct buffer *output, ...)

The buffer API will be used by further commits.

Change-Id: Iaddaeb109f08be6be84c6728d72c6a043b0e7a9f
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: http://review.coreboot.org/2205
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2013-02-05 22:24:45 +01:00
..
abuild abuild: Select correct cross compiler for ARMV7 architecture 2012-12-08 01:22:17 +01:00
acpi Remove whitespace. 2012-02-17 19:04:31 +01:00
amdtools Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
cbfstool cbfstool: Add buffer management API. 2013-02-05 22:24:45 +01:00
cbmem Implement GCC code coverage analysis 2013-01-12 19:09:55 +01:00
crossgcc crossgcc: add armv7a-eabi to list of working toolchains 2013-02-04 16:44:26 +01:00
dtd_parser Add utility for parsing/modifying DTD array 2012-11-08 20:21:19 +01:00
dumpmmcr dumpmmcr: Fix compilation warnings in printf 2012-01-26 09:57:56 +01:00
ectool ectool: Allow build under Cygwin 2012-04-28 02:46:54 +02:00
genprof Rename devices -> device 2012-11-30 23:59:58 +01:00
getpir Cut the crap. 2010-09-21 21:16:27 +00:00
gitconfig gitconfig: Match the Change-Id line more exactly 2012-08-27 15:41:33 +02:00
i915tool Add a tool to work on i915 hardware in user mode 2012-05-08 00:40:36 +02:00
ifdtool ifdtool: Dump more registers from FD 2012-11-12 06:56:03 +01:00
inteltool inteltool: Add support for Atom N455 (0x106c0) in CPU MSRs dump 2013-01-25 20:09:24 +01:00
k8resdump add license headers to some trivial files and pc87427.h 2010-12-17 00:13:54 +00:00
kconfig kconfig: Some terms or curses libraries treat backspace as 0x08 2012-10-23 05:05:53 +02:00
lbtdump Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
lint build system: Split linking into multiple steps 2012-11-27 22:02:02 +01:00
mkelfImage mkelfimage: pkgdata directory created but never used 2012-07-09 22:18:37 +02:00
mptable mptable: realign comments with code 2012-06-20 12:46:55 +02:00
msrtool msrtool: Decoding for most of Intel Core 2 MSRs 2013-01-28 18:36:33 +01:00
nrv2b Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
nvramtool Change "VERSION*" to more determined name "CBFS_HEADER_VERSION*". 2013-01-04 06:27:33 +01:00
optionlist Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
resetcf Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
romcc ROMCC: fix unused attribute lookup 2012-06-22 09:19:37 +02:00
runfw Add a clean target to the run firmware (runfw) Makefile 2013-01-30 21:22:04 +01:00
sconfig use a relative path for #line 3 2013-01-16 09:58:00 +01:00
superiotool superiotool: Fix for FreeBSD 2012-10-03 09:26:59 +02:00
vgabios Rename devices -> device 2012-11-30 23:59:58 +01:00
xcompile update CFLAGS for armv7 2013-01-04 00:48:49 +01:00