[U-Boot] serial: Fix Makefile during SPL and TPL build
Tom Rini
trini at konsulko.com
Wed Apr 11 20:59:50 UTC 2018
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+renesas at gmail.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tom Rini <trini at konsulko.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180411/db9af27c/attachment.sig>
More information about the U-Boot
mailing list