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

Commit 0e6d660d authored by Brint E. Kriebel's avatar Brint E. Kriebel
Browse files

releasetools: use variable instead of fixed name for bootable image

When building for a device with a custom bootimage makefile, this
would cause the boot image to be used as the recovery image during
fastboot zip creation.

Change-Id: I075cfe4e9a2a8384d3767de351ec7f751f3e95ab
parent c440c839
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -347,7 +347,7 @@ def GetBootableImage(name, prebuilt_name, unpack_dir, tree_subdir,
  prebuilt_path = os.path.join(prebuilt_dir, prebuilt_name)
  custom_bootimg_mk = os.getenv('MKBOOTIMG')
  if custom_bootimg_mk:
    bootimage_path = os.path.join(os.getenv('OUT'), "boot.img")
    bootimage_path = os.path.join(os.getenv('OUT'), prebuilt_name)
    print "using custom bootimage makefile %s..." % (custom_bootimg_mk,)
    if not os.path.isdir(prebuilt_dir):
        os.mkdir(prebuilt_dir)