All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Simon Glass <sjg@chromium.org>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Marek Vasut <marex@denx.de>, Raymond Mao <raymond.mao@linaro.org>
Subject: Re: [PATCH v3 06/33] stdio: Make use of the SERIAL define
Date: Tue, 1 Oct 2024 15:54:55 -0600	[thread overview]
Message-ID: <20241001215455.GM4737@bill-the-cat> (raw)
In-Reply-To: <20240930014956.1434060-7-sjg@chromium.org>

[-- Attachment #1: Type: text/plain, Size: 1118 bytes --]

On Sun, Sep 29, 2024 at 07:49:29PM -0600, Simon Glass wrote:
> This is always enabled for U-Boot proper, so simplify the condition
> in the common Makefile.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
> Changes in v3:
> - Move earlier in the series
> 
>  include/stdio.h | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/include/stdio.h b/include/stdio.h
> index 7b999a519ba..e7325795533 100644
> --- a/include/stdio.h
> +++ b/include/stdio.h
> @@ -9,10 +9,7 @@ int getchar(void);
>  int tstc(void);
>  
>  /* stdout */
> -#if !defined(CONFIG_SPL_BUILD) || \
> -	(defined(CONFIG_TPL_BUILD) && defined(CONFIG_TPL_SERIAL)) || \
> -	(defined(CONFIG_SPL_BUILD) && !defined(CONFIG_TPL_BUILD) && \
> -		defined(CONFIG_SPL_SERIAL))
> +#if !defined(CONFIG_SPL_BUILD) || CONFIG_IS_ENABLED(SERIAL)
>  void putc(const char c);
>  void puts(const char *s);
>  #ifdef CONFIG_CONSOLE_FLUSH_SUPPORT

There was, earlier on, reason for this level of complexity but it indeed
seems no longer required.

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2024-10-01 21:55 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-30  1:49 [PATCH v3 00/33] Tidy up use of 'SPL' and CONFIG_SPL_BUILD Simon Glass
2024-09-30  1:49 ` [PATCH v3 01/33] Makefile: Add a u-boot.cfg file for VPL Simon Glass
2024-10-01 21:54   ` Tom Rini
2024-09-30  1:49 ` [PATCH v3 02/33] boot: Drop unnecessary ifdef for LOAD_FIT Simon Glass
2024-10-01 21:54   ` Tom Rini
2024-09-30  1:49 ` [PATCH v3 03/33] tegra: Drop dependency on SPL_BUILD Simon Glass
2024-09-30  1:49 ` [PATCH v3 04/33] net: freescale: Drop use of SPL_BUILD dependency Simon Glass
2024-09-30  1:49 ` [PATCH v3 05/33] serial: Make use of the SERIAL define Simon Glass
2024-09-30  1:49 ` [PATCH v3 06/33] stdio: " Simon Glass
2024-10-01 21:54   ` Tom Rini [this message]
2024-09-30  1:49 ` [PATCH v3 07/33] scripts: Rename Makefile.spl to Makefile.xpl Simon Glass
2024-09-30  1:49 ` [PATCH v3 08/33] scripts: Add some comments about autoconf.mk Simon Glass
2024-09-30  1:49 ` [PATCH v3 09/33] scripts: Define CONFIG_XPL_BUILD for all xPL builds Simon Glass
2024-09-30  1:49 ` [PATCH v3 10/33] qconfig: Add XPL_BUILD to ignored symbols Simon Glass
2024-09-30  1:49 ` [PATCH v3 11/33] xpl: Rename u_boot_first_phase to xpl_is_first_phase() Simon Glass
2024-09-30  1:49 ` [PATCH v3 12/33] xpl: Rename spl_phase to xpl_phase_t Simon Glass
2024-09-30  1:49 ` [PATCH v3 13/33] xpl: Rename spl_phase() to xpl_phase() Simon Glass
2024-09-30  1:49 ` [PATCH v3 14/33] xpl: Rename spl_in_proper() to not_xpl() Simon Glass
2024-09-30  1:49 ` [PATCH v3 15/33] xpl: Add a function to indicate when in xPL Simon Glass
2024-09-30  1:49 ` [PATCH v3 16/33] xpl: Rename spl_next_phase() and spl_prev_phase() Simon Glass
2024-09-30  1:49 ` [PATCH v3 17/33] xpl: Rename spl_phase_prefix() and spl_phase_name() Simon Glass
2024-09-30  1:49 ` [PATCH v3 18/33] log: global: Rename warn_non_spl() Simon Glass
2024-09-30  1:49 ` [PATCH v3 19/33] doc: Update SPL docs for the xPL changes Simon Glass
2024-09-30  1:49 ` [PATCH v3 20/33] README: Drop SoC-specific comment about SPL Simon Glass
2024-09-30  1:49 ` [PATCH v3 21/33] doc: Move init-related things out of README Simon Glass
2024-09-30  1:49 ` [PATCH v3 22/33] doc: Update init docs for the xPL changes Simon Glass
2024-09-30  1:49 ` [PATCH v3 23/33] arch: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD Simon Glass
2024-09-30  1:49 ` [PATCH v3 24/33] board: " Simon Glass
2024-09-30  1:49 ` [PATCH v3 25/33] drivers: " Simon Glass
2024-09-30  1:49 ` [PATCH v3 26/33] include: " Simon Glass
2024-09-30  1:49 ` [PATCH v3 27/33] global: " Simon Glass
2024-09-30  1:49 ` [PATCH v3 28/33] xpl: Define CONFIG_SPL_BUILD only for the SPL build Simon Glass
2024-09-30  1:49 ` [PATCH v3 29/33] kconfig: binman: Check for SPL instead of XPL Simon Glass
2024-09-30  1:49 ` [PATCH v3 30/33] global: Rename SPL_ to XPL_ Simon Glass
2024-09-30  1:49 ` [PATCH v3 31/33] global: Rename SPL_TPL_ to PHASE_ Simon Glass
2024-10-01 21:54   ` Tom Rini
2024-09-30  1:49 ` [PATCH v3 32/33] spl: Rename SPL_TPL_NAME and SPL_TPL_PROMPT Simon Glass
2024-09-30  1:49 ` [PATCH v3 33/33] qconfig: Update tool for new Makefile variables Simon Glass
2024-10-11 23:01 ` [PATCH v3 00/33] Tidy up use of 'SPL' and CONFIG_SPL_BUILD Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241001215455.GM4737@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=marex@denx.de \
    --cc=raymond.mao@linaro.org \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.