diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-08-13 15:29:01 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-08-13 15:29:01 +0000 |
commit | fabde37cb8af695c605fc04fa005930de057b9a3 (patch) | |
tree | a7e87f47a1c952a4aa9cd28912b74df88436f0d4 /util/cbfstool | |
parent | a5c8bb39b5ec7d971971a56ecf386a71a2bc5a32 (diff) | |
download | coreboot-fabde37cb8af695c605fc04fa005930de057b9a3.tar.xz |
- AMD selected a couple of options that are incompatible with QEmu (and
probably others). Only select them for AMD
- Make the bootblock smaller (only one copy of it), and don't pad the
bootblock using dd(1), but top-align inside cbfstool, to reduce
dependencies on unix tools.
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@4542 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/cbfstool')
-rw-r--r-- | util/cbfstool/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/util.c b/util/cbfstool/util.c index e1da4cb6fc..054436d8ca 100644 --- a/util/cbfstool/util.c +++ b/util/cbfstool/util.c @@ -256,7 +256,7 @@ int add_bootblock(struct rom *rom, const char *filename) } /* Copy the bootblock into place at the end of the file */ - ret = copy_from_fd(fd, ROM_PTR(rom, rom->size - ntohl(rom->header->bootblocksize)), size); + ret = copy_from_fd(fd, ROM_PTR(rom, rom->size - size), size); close(fd); |