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

Commit 926f6718 authored by Ying Wang's avatar Ying Wang Committed by Android Git Automerger
Browse files

am 45ff36ee: Print out the tree size of system directory if it failes to build system.img

* commit '45ff36ee':
  Print out the tree size of system directory if it failes to build system.img
parents 0a5db68c 45ff36ee
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -940,7 +940,11 @@ define build-systemimage-target
      skip_fsck=true)
  $(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BINARY_PATHS),$(p):)$$PATH \
      ./build/tools/releasetools/build_image.py \
      $(TARGET_OUT) $(systemimage_intermediates)/system_image_info.txt $(1)
      $(TARGET_OUT) $(systemimage_intermediates)/system_image_info.txt $(1) \
      || ( 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 ;\
           exit 1 )
endef

$(BUILT_SYSTEMIMAGE): $(FULL_SYSTEMIMAGE_DEPS) $(INSTALLED_FILES_FILE)