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

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

build: Update install tools packaging for target-files support

Modifies "build: ota: Support for install tools in /tmp/install" to
support signing steps being split from build steps.

Package install files into target-files INSTALL path
Read from target-files for OTA package creation

Change-Id: I64f919c2a757b5474f6cc5f82bd6c33c2a8b558a
(cherry picked from commit daff3dcd)
parent b862a884
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1451,6 +1451,8 @@ $(BUILT_TARGET_FILES_PACKAGE): \
	$(hide) mkdir -p $(zip_root)/RECOVERY
	$(hide) $(call package_files-copy-root, \
		$(TARGET_RECOVERY_ROOT_OUT),$(zip_root)/RECOVERY/RAMDISK)
	@# OTA install helpers
	$(hide) $(call package_files-copy-root, $(OUT)/install, $(zip_root)/INSTALL)
ifdef INSTALLED_KERNEL_TARGET
	$(hide) $(ACP) $(INSTALLED_KERNEL_TARGET) $(zip_root)/RECOVERY/kernel
endif
+5 −6
Original line number Diff line number Diff line
@@ -477,13 +477,12 @@ def GetImage(which, tmpdir, info_dict):


def CopyInstallTools(output_zip):
  oldcwd = os.getcwd()
  os.chdir(os.getenv('OUT'))
  for root, subdirs, files in os.walk("install"):
  install_path = os.path.join(OPTIONS.input_tmp, "INSTALL")
  for root, subdirs, files in os.walk(install_path):
    for f in files:
      p = os.path.join(root, f)
      output_zip.write(p, p)
  os.chdir(oldcwd)
      install_source = os.path.join(root, f)
      install_target = os.path.join("install", os.path.relpath(root, install_path), f)
      output_zip.write(install_source, install_target)


def WriteFullOTAPackage(input_zip, output_zip):