Skip to content

Commit 81ea6db

Browse files
Brint E. KriebelSteve Kondik
authored andcommitted
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
1 parent 83324f5 commit 81ea6db

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

core/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,8 @@ $(BUILT_TARGET_FILES_PACKAGE): \
14621462
$(hide) mkdir -p $(zip_root)/RECOVERY
14631463
$(hide) $(call package_files-copy-root, \
14641464
$(TARGET_RECOVERY_ROOT_OUT),$(zip_root)/RECOVERY/RAMDISK)
1465+
@# OTA install helpers
1466+
$(hide) $(call package_files-copy-root, $(OUT)/install, $(zip_root)/INSTALL)
14651467
ifdef INSTALLED_KERNEL_TARGET
14661468
$(hide) $(ACP) $(INSTALLED_KERNEL_TARGET) $(zip_root)/RECOVERY/kernel
14671469
endif

tools/releasetools/ota_from_target_files

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,12 @@ def GetImage(which, tmpdir, info_dict):
477477

478478

479479
def CopyInstallTools(output_zip):
480-
oldcwd = os.getcwd()
481-
os.chdir(os.getenv('OUT'))
482-
for root, subdirs, files in os.walk("install"):
480+
install_path = os.path.join(OPTIONS.input_tmp, "INSTALL")
481+
for root, subdirs, files in os.walk(install_path):
483482
for f in files:
484-
p = os.path.join(root, f)
485-
output_zip.write(p, p)
486-
os.chdir(oldcwd)
483+
install_source = os.path.join(root, f)
484+
install_target = os.path.join("install", os.path.relpath(root, install_path), f)
485+
output_zip.write(install_source, install_target)
487486

488487

489488
def WriteFullOTAPackage(input_zip, output_zip):

0 commit comments

Comments
 (0)