public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH] cmd: fitupd: move config check to Kconfig
Date: Wed, 27 May 2020 09:26:30 +0200	[thread overview]
Message-ID: <20200527092630.479fb456@jawa> (raw)
In-Reply-To: <20200526163415.16288-1-xypron.glpk@gmx.de>

Hi Heinrich,

> Configuration checks should not be in the C files but in the Kconfig
> files.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> @Lukasz, @Tom
> No board seems to be using the 'fitupd' command anymore. Shouldn't we
> simply remove it? 'dfu tftp' offers a similar functionality.

We can plan to remove it after the current release (as we are now with
-rc3).

> 
> Best regards
> 
> Heinrich
> ---
>  cmd/Kconfig  | 1 +
>  cmd/fitupd.c | 4 ----
>  2 files changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 153864c587..192b3b262f 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -491,6 +491,7 @@ config CMD_SPL_WRITE_SIZE
> 
>  config CMD_FITUPD
>  	bool "fitImage update command"
> +	depends on UPDATE_TFTP
>  	help
>  	  Implements the 'fitupd' command, which allows to
> automatically store software updates present on a TFTP server in NOR
> Flash diff --git a/cmd/fitupd.c b/cmd/fitupd.c
> index f6270d9c15..0f490c58fc 100644
> --- a/cmd/fitupd.c
> +++ b/cmd/fitupd.c
> @@ -8,10 +8,6 @@
>  #include <command.h>
>  #include <net.h>
> 
> -#if !defined(CONFIG_UPDATE_TFTP)
> -#error "CONFIG_UPDATE_TFTP required"
> -#endif
> -
>  static int do_fitupd(struct cmd_tbl *cmdtp, int flag, int argc,
>  		     char *const argv[])
>  {
> --
> 2.26.2
> 




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200527/3d179ffd/attachment.sig>

  parent reply	other threads:[~2020-05-27  7:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-26 16:34 [PATCH] cmd: fitupd: move config check to Kconfig Heinrich Schuchardt
2020-05-26 17:10 ` Tom Rini
2020-05-27  7:26 ` Lukasz Majewski [this message]
2020-06-03 16:25 ` 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=20200527092630.479fb456@jawa \
    --to=lukma@denx.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox