summaryrefslogtreecommitdiff
path: root/util/buildrom
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2006-01-19 18:11:21 +0000
committerRonald G. Minnich <rminnich@gmail.com>2006-01-19 18:11:21 +0000
commita00719b2f2b5bd74cfc52d0326c13e115e860eba (patch)
treef1055a471facdd6ae734105ccca69cf4de12203e /util/buildrom
parent264e84adb835ce9bb7eb5d703417ef2a41c0231d (diff)
downloadcoreboot-a00719b2f2b5bd74cfc52d0326c13e115e860eba.tar.xz
add a tinylinux config file
Make the error in buildrom a lot more informative -- how big are the things that did not fit? it now tells you. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2162 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/buildrom')
-rw-r--r--util/buildrom/buildrom.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/buildrom/buildrom.c b/util/buildrom/buildrom.c
index 9dde492d0f..36c2443d78 100644
--- a/util/buildrom/buildrom.c
+++ b/util/buildrom/buildrom.c
@@ -64,8 +64,10 @@ int main(int argc, char *argv[])
if (fstat(payloadfd, &payloadbuf) < 0)
fatal("stat of infile");
- if (payloadbuf.st_size > (romsize - size))
- fatal("payload + linuxbios size larger than ROM size!\n");
+ if (payloadbuf.st_size > (romsize - size)){
+ fprintf(stderr, "payload (%d) + linuxbios (%d) size larger than ROM (%d) size!\n", payloadbuf.st_size, size, romsize);
+ exit(1);
+ }
cp = malloc(romsize);
if (!cp)