spl: fit: Break out some functions into a common file
authorCooper Jr., Franklin <fcooper@ti.com>
Fri, 16 Jun 2017 22:25:05 +0000 (17:25 -0500)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:23 +0000 (02:37 +0800)
commita52b7c437413df4dd829fe613a98c6a74d19e4e5
tree28f8e2e994f742de4c7453c83a612bb2446949f9
parent5a5ed5d2041d894fcdfe7f4a24a94b84367e0d33
spl: fit: Break out some functions into a common file

Some of the functions within spl_fit will be used for non spl purposes.
Instead of duplicating functions simply break the functions to be reused
into its own file.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: Only add the new define to image.h, otherwise we see breakage
due to massive include leakage into host tools in some cases]
Signed-off-by: Tom Rini <trini@konsulko.com>
(cherry picked from commit 3863f840fa03f6b93672a5afff74f15d460cb911)
common/Makefile
common/common_fit.c [new file with mode: 0644]
common/spl/spl_fit.c
include/image.h