Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a45a8682 authored by Benoit Fradin's avatar Benoit Fradin Committed by Patrick Tjin
Browse files

BuildBootImage: Add secondstage image support [DO NOT MERGE]



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.

Bug: 17035158

Change-Id: I8ed9d9e56449945c2d42fc908269921c394f68c0
Signed-off-by: default avatarBenoit Fradin <benoit.fradin@intel.com>
Signed-off-by: default avatarJeremy Compostella <jeremy.compostella@intel.com>
Signed-off-by: default avatarPatrick Tjin <pattjin@google.com>
parent 903e2dd0
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -303,6 +303,11 @@ def BuildBootableImage(sourcedir, fs_config_file, info_dict=None):


  cmd = [mkbootimg, "--kernel", os.path.join(sourcedir, "kernel")]
  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")
  fn = os.path.join(sourcedir, "cmdline")
  if os.access(fn, os.F_OK):
  if os.access(fn, os.F_OK):
    cmd.append("--cmdline")
    cmd.append("--cmdline")