On Sat, Apr 07, 2018 at 04:06:22PM +0200, Marek Vasut wrote:

> This patch fixes a situation where CONFIG_DM_SERIAL is enabled for
> regular U-Boot and SPL, but not for TPL. In that case, the build
> will try to include serial-uclass into the TPL nonetheless, because
> CONFIG_DM_SERIAL is set.
> 
> The solution is to check if the build is for SPL or TPL and in that
> case, check if CONFIG_$(SPL_TPL_)DM_SERIAL is also set. Only in that
> case, include serial-uclass.c . If the build is for regular U-Boot,
> CONFIG_BUILD is not set, so only check if CONFIG_DM_SERIAL is set
> and if so, include serial-uclass.c
> 
> Signed-off-by: Marek Vasut <marek.vasut+rene...@gmail.com>
> Cc: Simon Glass <s...@chromium.org>
> Cc: Tom Rini <tr...@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: PGP signature

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to