From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars Povlsen Date: Mon, 22 Oct 2018 10:48:47 +0200 Subject: [U-Boot] Compile error with CONFIG_MULTI_DTB_FIT and not SPL Message-ID: <8736sybc40.fsf@soft-dev15.microsemi.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de When changing some MIPS configs from CONFIG_OF_EMBED to CONFIG_OF_SEPARATE, I ran into this compile issue since SPL is not enabled. The fix is to guard the header with the CONFIG_SPL_LIBCOMMON_SUPPORT preprocessor symbol. It seems that the is not needed even when SPL is enabled, but I'm not 100% sure on that. The code at lines 55..57 guarded by CONFIG_SPL_LIBCOMMON_SUPPORT does not require the header file. Signed-off-by: Lars Povlsen --- common/common_fit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/common_fit.c b/common/common_fit.c index 577b352..33e26cc 100644 --- a/common/common_fit.c +++ b/common/common_fit.c @@ -8,7 +8,9 @@ #include #include #include +#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT #include +#endif ulong fdt_getprop_u32(const void *fdt, int node, const char *prop) { -- 2.7.4