From 3863f840fa03f6b93672a5afff74f15d460cb911 Mon Sep 17 00:00:00 2001 From: "Cooper Jr., Franklin" Date: Fri, 16 Jun 2017 17:25:05 -0500 Subject: 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 Reviewed-by: Tom Rini Reviewed-by: Simon Glass [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 --- include/image.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/image.h b/include/image.h index fcfe730204a..1d763b33b83 100644 --- a/include/image.h +++ b/include/image.h @@ -1270,6 +1270,8 @@ int board_fit_config_name_match(const char *name); void board_fit_image_post_process(void **p_image, size_t *p_size); #endif /* CONFIG_SPL_FIT_IMAGE_POST_PROCESS */ +#define FDT_ERROR ((ulong)(-1)) + /** * Mapping of image types to function handlers to be invoked on the associated * loaded images -- cgit v1.2.3