coreboot-kgpe-d16/util
Patrick Georgi 0da38dde4b Add a "locate" function cbfstool, which helps you find
out a suitable address to put a XIP stage to.

Specifically, you pass it the file (to get its filesize), its filename
(as the header has a variable length that depends on it), and the
granularity requirement it has to fit in (for XIP).
The granularity is MTRR-style: when you request 0x10000, cbfstool looks
for a suitable place in a 64kb-aligned 64kb block.

cbfstool simply prints out a hex value which is the start address of a
suitably located free memory block. That value can then be used with
cbfs add-stage to store the file in the ROM image.

It's a two-step operation (instead of being merged into cbfs add-stage)
because the image must be linked twice: First, with some bogus, but safe
base address (eg. 0) to figure out the target address (based on file
size). Then a second time at the target address.

The work flow is:
 - link file
 - cbfstool locate
 - link file again
 - cbfstool add-stage.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4929 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2009-11-09 17:18:02 +00:00
..
abuild Remove: 2009-10-03 16:24:58 +00:00
amdtools Add an initial version of some tools to compare (extended) K8 memory settings. 2009-10-28 19:41:52 +00:00
analysis This patch unifies the use of config options in v2 to all start with CONFIG_ 2009-06-30 15:17:49 +00:00
cbfstool Add a "locate" function cbfstool, which helps you find 2009-11-09 17:18:02 +00:00
compareboard Add kconfig menus for most chipset VIDEO_MB values. 2009-10-26 21:42:13 +00:00
crossgcc This adds a simple script to build a default toolchain for coreboot 2009-09-26 16:43:17 +00:00
dump_mmcr small ts5300 update, fix endian problem in dummmcr. 2006-03-18 00:10:29 +00:00
ectool Add 'install' target for ectool (trivial). 2009-04-23 22:22:47 +00:00
getpir This patch changes following in getpir application. 2009-09-26 16:18:22 +00:00
inteltool Add 82Q35/P35/Q33/G33/G31/P31 support to inteltool. 2009-11-02 15:01:49 +00:00
k8resdump K8 resource dump utility from Rudolf Marek 2007-10-30 01:12:20 +00:00
kbuildall Add the compareboard utility which is useful for porting 2009-10-12 18:43:26 +00:00
kconfig In the mainboard selection, the selected mainboard is printed twice in 2009-09-14 14:15:43 +00:00
lbtdump Fix a typo in lbtdump output (trivial). 2008-05-07 19:21:18 +00:00
mkelfImage Impact: fix vmlinux from 2.6.30 2009-06-28 15:04:06 +00:00
mptable fix typo 2008-03-15 16:30:39 +00:00
msrtool fix building on Linux again, working around crude runtime OS detection. 2009-10-05 10:23:36 +00:00
newconfig Remove: 2009-10-03 16:24:58 +00:00
nrv2b don't ignore return values (trivial) 2009-04-22 12:14:39 +00:00
nvramtool fix some wrong occurences of the FSF's address (trivial) 2009-09-23 21:53:25 +00:00
optionlist More compact format for wiki output at 2009-06-02 23:49:00 +00:00
options Make the error messages somewhat less incomprehensible. I forget 2009-09-29 13:34:56 +00:00
resetcf epia-m support 2004-10-06 17:33:54 +00:00
romcc Improve coreboot build output and eliminate some warnings: 2009-10-27 21:49:33 +00:00
sconfig Remove all build/ prefixes in the build output. 2009-10-28 17:10:51 +00:00
superiotool Add detection support for the SMSC FDC37M602. 2009-09-24 12:17:07 +00:00
vgabios this is probably in vain because this tool should use the same x86emu as 2009-10-16 01:08:07 +00:00
x86emu biosemu (non-yabel) cleanup 2009-11-05 17:24:03 +00:00
xcompile Only remove .xcompile with distclean. Look for crossgcc in util. 2009-10-31 20:47:14 +00:00