Skip to content

Commit b3c4377

Browse files
Brint E. KriebelSteve Kondik
authored andcommitted
releasetools: Store and use the dt image file through target files
Target files packages may be used for signing images separate from the build process. Store the device tree image file in the target files package so it can be used during the signing process. Change-Id: Ie8507121fa9c4ba57ecffeab05bd859ae5f5b788
1 parent 13f7d2a commit b3c4377

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ ifdef BOARD_RAMDISK_OFFSET
14881488
$(hide) echo "$(BOARD_RAMDISK_OFFSET)" > $(zip_root)/RECOVERY/ramdisk_offset
14891489
endif
14901490
ifeq ($(strip $(BOARD_KERNEL_SEPARATED_DT)),true)
1491-
$(hide) echo "$(INSTALLED_DTIMAGE_TARGET)" > $(zip_root)/RECOVERY/dt_args
1491+
$(hide) $(ACP) $(INSTALLED_DTIMAGE_TARGET) $(zip_root)/RECOVERY/dt
14921492
endif
14931493
@# Components of the boot image
14941494
$(hide) mkdir -p $(zip_root)/BOOT
@@ -1522,7 +1522,7 @@ ifdef BOARD_RAMDISK_OFFSET
15221522
endif
15231523

15241524
ifeq ($(strip $(BOARD_KERNEL_SEPARATED_DT)),true)
1525-
$(hide) echo "$(INSTALLED_DTIMAGE_TARGET)" > $(zip_root)/BOOT/dt_args
1525+
$(hide) $(ACP) $(INSTALLED_DTIMAGE_TARGET) $(zip_root)/BOOT/dt
15261526
endif
15271527
ifdef ZIP_SAVE_UBOOTIMG_ARGS
15281528
$(hide) echo "$(ZIP_SAVE_UBOOTIMG_ARGS)" > $(zip_root)/BOOT/ubootargs

tools/releasetools/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,10 @@ def BuildBootableImage(sourcedir, fs_config_file, info_dict=None):
355355
cmd.append("--ramdisk_offset")
356356
cmd.append(open(fn).read().rstrip("\n"))
357357

358-
fn = os.path.join(sourcedir, "dt_args")
358+
fn = os.path.join(sourcedir, "dt")
359359
if os.access(fn, os.F_OK):
360360
cmd.append("--dt")
361-
cmd.append(open(fn).read().rstrip("\n"))
361+
cmd.append(fn)
362362

363363
fn = os.path.join(sourcedir, "pagesize")
364364
if os.access(fn, os.F_OK):

0 commit comments

Comments
 (0)