openap-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[openap-cvs] : openap-main/config/wl11000 build_flash.pl,1.1,1.2


From: Pavel Roskin <address@hidden>
Subject: [openap-cvs] : openap-main/config/wl11000 build_flash.pl,1.1,1.2
Date: Thu, 21 Nov 2002 10:51:21 -0500

Update of /cvsroot/openap/openap-main/config/wl11000
In directory subversions:/tmp/cvs-serv9740/config/wl11000

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/openap-main/config/wl11000/build_flash.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build_flash.pl      9 Aug 2002 22:55:13 -0000       1.1
+++ build_flash.pl      21 Nov 2002 15:51:18 -0000      1.2
@@ -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));





reply via email to

[Prev in Thread] Current Thread [Next in Thread]