make_factory_package: to copy EFI partition by image_partition_overwrite().

Originally copy EFI partition from factory image is done by
image_partition_copy() and this function needs the same partition size
of src and dest. Now new release image is with more bigger partition
size of EFI, and the output diskimg is referred to partition table of
release image. In this case EFI partition in factory image will be small
then diskimg hence we need to call image_partition_overwrite(). Which
can cover conditions of either two partitions are the same or source one
is small then destination.

TEST=To generate a diskimg by with R61 version
of release image.

Change-Id: I8fc2410f77012670dc7d9f2e3e8f01792322e61f
Reviewed-by: Marco Chen <>
Commit-Queue: Kitty Liu <>
Tested-by: Kitty Liu <>
1 file changed