platform_build/target/board
Jiyong Park 03eb06150b Don't reserve size for bad blocks when checking image size
When checking *.img size with the partition size, the build system
reserves additional bits for spare bits and spare bad blocks.

However, for emmc and ufs, the space bits and blocks are entirely
managed by the underlying controller and thus not visible from outside
of the controller. In fact the check routine was made for legacy MTD
storages where raw flash blocks are directly exposed.

This makes the size checking a little bit conservative in modern devices.
Builds were failed even though the *.img can actually fit into the
partition. To handle this problem, the additional size is no longer
reserved when checking *.img size with the partition size.

This change also removes following build flags that are meaningful
only for devices having MTD storages:
BOARD_NAND_PAGE_SIZE
BOARD_NAND_SPARE_SIZE
Further use of them breaks the build

Bug: 35790399
Bug: 66399382
Test: build

Merged-In: I954bf261441b53844e75d05788866f1692a2ad43
Change-Id: I954bf261441b53844e75d05788866f1692a2ad43
2017-10-04 21:25:08 +09:00
..
generic emulator: fix widevine drm vndbinder denial 2017-08-30 17:13:55 -07:00
generic_arm64 emulator: squash misc modifications from oc-emu-dev 2017-08-30 17:13:47 -07:00
generic_arm64_a Don't reserve size for bad blocks when checking image size 2017-10-04 21:25:08 +09:00
generic_arm64_ab Don't reserve size for bad blocks when checking image size 2017-10-04 21:25:08 +09:00
generic_arm_a Don't reserve size for bad blocks when checking image size 2017-10-04 21:25:08 +09:00
generic_armv5 Remove ARCH_ARM_HAVE_TLS_REGISTER. 2015-02-13 20:51:12 -08:00
generic_mips emulator: squash misc modifications from oc-emu-dev 2017-08-30 17:13:47 -07:00
generic_mips64 emulator: squash misc modifications from oc-emu-dev 2017-08-30 17:13:47 -07:00
generic_x86 emulator: squash misc modifications from oc-emu-dev 2017-08-30 17:13:47 -07:00
generic_x86_64 emulator: squash misc modifications from oc-emu-dev 2017-08-30 17:13:47 -07:00
generic_x86_arm Use HWC2 for all emulator images. 2017-03-23 19:33:33 +00:00
Android.mk get kernel configs from kernel/configs 2017-09-12 16:26:28 -07:00