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
This commit is contained in:
Ronald G. Minnich
2006-01-19 18:11:21 +00:00
parent 264e84adb8
commit a00719b2f2
2 changed files with 25 additions and 2 deletions

View File

@@ -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)