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

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

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
parent 78d216bc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1477,7 +1477,7 @@ ifdef BOARD_RAMDISK_OFFSET
	$(hide) echo "$(BOARD_RAMDISK_OFFSET)" > $(zip_root)/RECOVERY/ramdisk_offset
endif
ifeq ($(strip $(BOARD_KERNEL_SEPARATED_DT)),true)
	$(hide) echo "$(INSTALLED_DTIMAGE_TARGET)" > $(zip_root)/RECOVERY/dt_args
	$(hide) $(ACP) $(INSTALLED_DTIMAGE_TARGET) $(zip_root)/RECOVERY/dt
endif
	@# Components of the boot image
	$(hide) mkdir -p $(zip_root)/BOOT
@@ -1511,7 +1511,7 @@ ifdef BOARD_RAMDISK_OFFSET
endif

ifeq ($(strip $(BOARD_KERNEL_SEPARATED_DT)),true)
	$(hide) echo "$(INSTALLED_DTIMAGE_TARGET)" > $(zip_root)/BOOT/dt_args
	$(hide) $(ACP) $(INSTALLED_DTIMAGE_TARGET) $(zip_root)/BOOT/dt
endif
ifdef ZIP_SAVE_UBOOTIMG_ARGS
	$(hide) echo "$(ZIP_SAVE_UBOOTIMG_ARGS)" > $(zip_root)/BOOT/ubootargs
+2 −2
Original line number Diff line number Diff line
@@ -355,10 +355,10 @@ def BuildBootableImage(sourcedir, fs_config_file, info_dict=None):
      cmd.append("--ramdisk_offset")
      cmd.append(open(fn).read().rstrip("\n"))

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

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