[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[openap-cvs] : misc build_flash.pl,1.2,1.3
From: |
Pavel Roskin <address@hidden> |
Subject: |
[openap-cvs] : misc build_flash.pl,1.2,1.3 |
Date: |
Thu, 21 Nov 2002 10:51:21 -0500 |
Update of /cvsroot/openap/misc
In directory subversions:/tmp/cvs-serv9740/misc
Modified Files:
build_flash.pl
Log Message:
Exit with error is the free space is negative (i.e. not enough space).
Index: build_flash.pl
===================================================================
RCS file: /cvsroot/openap/misc/build_flash.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- build_flash.pl 21 May 2002 04:07:28 -0000 1.2
+++ build_flash.pl 21 Nov 2002 15:51:19 -0000 1.3
@@ -83,6 +83,12 @@
# create configuration file:
+# Sanity check if we fit the requested space
+ if ($free < 0) {
+ printf "ERROR: Image is too short, extra %d Kb required\n", -$free;
+ die;
+ }
+
# concatenate the images
pad_file($flash, $kernel_location - get_size_b($flash));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [openap-cvs] : misc build_flash.pl,1.2,1.3,
Pavel Roskin <address@hidden> <=