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)
committerTom Rini <trini@konsulko.com>
Mon, 10 Jul 2017 18:24:39 +0000 (14:24 -0400)
commit3863f840fa03f6b93672a5afff74f15d460cb911
tree60d1922970f5732c042ccf2e70a72f7274bcd58f
parente936f997a956dbcd7ccd414770951f981fa586a1
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>
common/Makefile
common/common_fit.c [new file with mode: 0644]
common/spl/spl_fit.c
include/image.h