ERROR:Failed to allocate 119 blocks


androidソースコードをコンパイルすると、次のエラーが発生します.
 1 make_ext4fs -l 167772160 -a system out/target/product/Mary/system.img.ext4 out/target/product/Mary/system
 2 Creating filesystem with parameters:
 3     Size: 167772160
 4     Block size: 4096
 5     Blocks per group: 32768
 6     Inodes per group: 5120
 7     Inode size: 256
 8     Journal blocks: 1024
 9     Label: 
10     Blocks: 40960
11     Block groups: 2
12     Reserved block group size: 15
13 error: do_inode_allocate_extents: Failed to allocate 119 blocks
14 
15 make: *** [out/target/product/Mary/obj/PACKAGING/systemimage_intermediates/system.img]    4
16 make: ***       “out/target/product/Mary/obj/PACKAGING/systemimage_intermediates/system.img”

このエラーは、割り当てられたスペースが小さすぎるためです.
解決方法:
デバイス/odm/Mary/BoardConfigを開く.mk 
拡大BOARD_*PARTITION_SIZEの大きさは、次のようになります.
  BOARD_SYSTEMIMAGE_PARTITION_SIZE := 251658240 #0x0F000000 #167772160   # 0x0A000000
 
参考資料:
=== error: do_inode_allocate_extents: Failed to allocate blocks === One way to workaround this is to increase the system image size. Please see BOARD_*_PARTITION_SIZE variables in device//$(TARGET_PRODUCT)/BoardConfig.mk in your workspace.