Fix mkbootimg parameters for releasetools.

Change-Id: I6192743e9db415f5fe7f3b82081f8a82061254b3
This commit is contained in:
Ying Wang
2010-08-25 14:29:34 -07:00
parent 0962b71980
commit 4de6b5bfc8
2 changed files with 15 additions and 0 deletions

View File

@@ -121,6 +121,11 @@ def BuildBootableImage(sourcedir):
cmd.append("--base")
cmd.append(open(fn).read().rstrip("\n"))
fn = os.path.join(sourcedir, "pagesize")
if os.access(fn, os.F_OK):
cmd.append("--pagesize")
cmd.append(open(fn).read().rstrip("\n"))
cmd.extend(["--ramdisk", ramdisk_img.name,
"--output", img.name])