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: I0e786b61997847d5a022eedf55fffb6f362a1fb1
Reviewed-by: Marco Chen <>
Commit-Queue: Marco Chen <>
Tested-by: Marco Chen <>
(cherry picked from commit 8e7774a7c1bfaf8f55cd0af3311de7ce06997b0d)
Reviewed-by: Wei-Han Chen <>
Commit-Queue: Wei-Han Chen <>
Tested-by: Wei-Han Chen <>
1 file changed