BuildBootImage: Add secondstage image support

The AOSP bootimage format allows the use of a second stage image
however the BuildBootableImage function does not allows the "second"
optional argument. This patch adds the support of this argument.

Change-Id: I8ed9d9e56449945c2d42fc908269921c394f68c0
Signed-off-by: Benoit Fradin <benoit.fradin@intel.com>
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
This commit is contained in:
Benoit Fradin 2014-07-14 21:00:43 +02:00 committed by Jeremy Compostella
parent d23798bfdc
commit fb9076d9f2
1 changed files with 5 additions and 0 deletions

View File

@ -292,6 +292,11 @@ def BuildBootableImage(sourcedir, fs_config_file, info_dict=None):
cmd = [mkbootimg, "--kernel", os.path.join(sourcedir, "kernel")]
fn = os.path.join(sourcedir, "second")
if os.access(fn, os.F_OK):
cmd.append("--second")
cmd.append(fn)
fn = os.path.join(sourcedir, "cmdline")
if os.access(fn, os.F_OK):
cmd.append("--cmdline")