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
> 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!


Attachment: signature.asc
Description: PGP signature

U-Boot mailing list

Reply via email to