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

Commit ebe63fb0 authored by Ying Wang's avatar Ying Wang
Browse files

Store a copy of installed-files.txt in DIST_DIR if system.img failed to build

Because we already have rule to store installed-files.txt in DIST_DIR,
to avoid the slim chance of race condition, this copy is named as
installed-files-rescued.txt

Change-Id: I9fa6d8aded0ad5de1f1422d70a4224b3fc308e75
parent d8a20db0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -944,6 +944,7 @@ define build-systemimage-target
      || ( echo "Out of space? the tree size of $(TARGET_OUT) is (MB): " 1>&2 ;\
           du -sm $(TARGET_OUT) 1>&2;\
           echo "The max is $$(( $(BOARD_SYSTEMIMAGE_PARTITION_SIZE) / 1048576 )) MB." 1>&2 ;\
           mkdir -p $(DIST_DIR); cp $(INSTALLED_FILES_FILE) $(DIST_DIR)/installed-files-rescued.txt; \
           exit 1 )
endef