[U-Boot] [PATCH v3 25/28] cmd: nand/sf: isolate legacy code

Miquel Raynal miquel.raynal at bootlin.com
Wed Dec 5 11:15:25 UTC 2018


Hello,

Thomas Petazzoni <thomas.petazzoni at bootlin.com> wrote on Wed, 5 Dec
2018 11:53:52 +0100:

> Hello,
> 
> On Wed, 5 Dec 2018 11:37:54 +0100, Boris Brezillon wrote:
> 
> > ifeq (,$(findstring y,$(CONFIG_CMD_NAND)$(CONFIG_CMD_SF)))  
> 
> This could be "simplified" as:
> 
> ifneq ($(CONFIG_CMD_NAND)$(CONFIG_CMD_SF),)
> 
> if either of the options is 'y', the string is non-empty, so the
> condition will be true.

Thank you both of you, I will use this trick to avoid build failures
with the situation raised by Boris.


Thanks,
Miquèl


More information about the U-Boot mailing list