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

Commit 38868b9b authored by Ying Wang's avatar Ying Wang Committed by Gerrit Code Review
Browse files

Merge "BuildBootImage: Add secondstage image support"

parents d23798bf fb9076d9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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")