From patchwork Fri Aug 23 16:35:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parthiban Nallathambi X-Patchwork-Id: 1152297 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46FRqn2BVrz9s7T for ; Sat, 24 Aug 2019 02:36:37 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id DBEBCC22113; Fri, 23 Aug 2019 16:35:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D98ECC2212F; Fri, 23 Aug 2019 16:35:42 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2750BC22118; Fri, 23 Aug 2019 16:35:25 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by lists.denx.de (Postfix) with ESMTPS id 18EA7C220D4 for ; Fri, 23 Aug 2019 16:35:23 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46FRpL6Mqlz1rW6L; Fri, 23 Aug 2019 18:35:22 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46FRpL63l1z1qqkq; Fri, 23 Aug 2019 18:35:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id fxhImGyxKhht; Fri, 23 Aug 2019 18:35:21 +0200 (CEST) X-Auth-Info: iDUr570V9aK8wMJs2PZ/PYubBNpDhyx9zmRVYFvm6wo= Received: from xpert.denx.de (unknown [62.91.23.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 23 Aug 2019 18:35:21 +0200 (CEST) From: Parthiban Nallathambi To: sbabic@denx.de, shyam@amarulasolutions.com, festevam@gmail.com Date: Fri, 23 Aug 2019 18:35:10 +0200 Message-Id: <20190823163510.748006-3-pn@denx.de> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190823163510.748006-1-pn@denx.de> References: <20190823163510.748006-1-pn@denx.de> MIME-Version: 1.0 Cc: martyn.welch@collabora.com, uboot-imx@nxp.com, u-boot@lists.denx.de Subject: [U-Boot] [PATCH 3/3] imx: nandbcb: include long help only when enabled X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" conditionally include long help text when enabled Signed-off-by: Parthiban Nallathambi Reviewed-by: Peng Fan --- arch/arm/mach-imx/cmd_nandbcb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/cmd_nandbcb.c b/arch/arm/mach-imx/cmd_nandbcb.c index 065b814b2e..7811c61d22 100644 --- a/arch/arm/mach-imx/cmd_nandbcb.c +++ b/arch/arm/mach-imx/cmd_nandbcb.c @@ -359,9 +359,11 @@ usage: return CMD_RET_USAGE; } +#ifdef CONFIG_SYS_LONGHELP static char nandbcb_help_text[] = "update addr off|partition len - update 'len' bytes starting at\n" " 'off|part' to memory address 'addr', skipping bad blocks"; +#endif U_BOOT_CMD(nandbcb, 5, 1, do_nandbcb, "i.MX6 Nand BCB",