OSDN Git Service

fix typo in bash expression
authorDoug Zongker <dougz@android.com>
Wed, 26 Aug 2009 03:38:50 +0000 (20:38 -0700)
committerDoug Zongker <dougz@android.com>
Wed, 26 Aug 2009 03:38:50 +0000 (20:38 -0700)
Fortunately the error doesn't change the value of the expression
(since undefined variables are treated as 0 inside "$((...))").

core/definitions.mk

index 3f8ab88..9b3a03d 100644 (file)
@@ -1589,7 +1589,7 @@ $(if $(2), \
   if [ "$(3)" == "yaffs" ]; then \
     reservedblocks=5; \
   else \
-    reselvedblocks=0; \
+    reservedblocks=0; \
   fi; \
   twoblocks=$$((img_blocksize * 2)); \
   onepct=$$((((($(2) / 100) - 1) / img_blocksize + 1) * img_blocksize)); \