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

Commit c5953e25 authored by Pat Tjin's avatar Pat Tjin Committed by Android (Google) Code Review
Browse files

Merge "BuildBootImage: Add secondstage image support [DO NOT MERGE]" into lmp-dev

parents e7391fcf a45a8682
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")