From patchwork Thu Sep 26 20:28:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 278267 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id C426A2C0331 for ; Fri, 27 Sep 2013 06:31:34 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F19314A0D4; Thu, 26 Sep 2013 22:30:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o8hyPjvYc1GB; Thu, 26 Sep 2013 22:30:31 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5F6D14A105; Thu, 26 Sep 2013 22:29:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 324484A0D2 for ; Thu, 26 Sep 2013 22:28:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yE6zxVV-8YD1 for ; Thu, 26 Sep 2013 22:28:48 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-qe0-f41.google.com (mail-qe0-f41.google.com [209.85.128.41]) by theia.denx.de (Postfix) with ESMTPS id 72E794A07F for ; Thu, 26 Sep 2013 22:28:22 +0200 (CEST) Received: by mail-qe0-f41.google.com with SMTP id 1so1207209qee.0 for ; Thu, 26 Sep 2013 13:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Hmmv490VkSKs0j/OuA7xgF12RlaGUZYx9Zt6ReolxHE=; b=UBQm2hzE2ltn1XkPaerHIBDnCCbPDAl9+u1kA+oLOm/h7mW8kJJjiCVv/HYxLM8L4n 1oVHd4AkL4UiVAfpTnf1lscaR4Y8vh+rIcvnYDOgiM9eP4LLTvstqFDtoYZstmOX56pv Cp2dPZvd0E0+ErEJ2iB8Jw0otWowZ8ZTvW5WbyE0c+nv1wr6ma2spqrZa4W1tqbmSiTN uiY2oyKTYd3h0c+9iSa3Nw/5dWqCULx6HAQwgiijoRh4j/Ap2EebA153r+pl4fLFMJ01 jnEuKrH6KxM62Z6k8jHcOBMph6kZtIo9+Pht4X1Fne7DlRiu2kzeua0Sa7divnchxeMX 0NOg== X-Received: by 10.49.98.100 with SMTP id eh4mr4233757qeb.42.1380227301266; Thu, 26 Sep 2013 13:28:21 -0700 (PDT) Received: from localhost.localdomain (cpe-174-106-216-211.ec.res.rr.com. [174.106.216.211]) by mx.google.com with ESMTPSA id u4sm11180058qat.5.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 13:28:20 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Thu, 26 Sep 2013 16:28:06 -0400 Message-Id: <1380227287-26057-11-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1380227287-26057-1-git-send-email-trini@ti.com> References: <1380227287-26057-1-git-send-email-trini@ti.com> Cc: Stefan Roese Subject: [U-Boot] [PATCH 10/11] a3m071: Make spl_start_uboot test like getenv_yesno does X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This change makes the behaviour slightly more rebust and will match other implementations which can use getenv_yesno directly. Cc: Stefan Roese Signed-off-by: Tom Rini Acked-by: Stefan Roese --- board/a3m071/a3m071.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/a3m071/a3m071.c b/board/a3m071/a3m071.c index 7aeefb2..b96ba81 100644 --- a/board/a3m071/a3m071.c +++ b/board/a3m071/a3m071.c @@ -412,7 +412,8 @@ int spl_start_uboot(void) env_init(); getenv_f("boot_os", s, sizeof(s)); - if ((s != NULL) && (strcmp(s, "yes") == 0)) + if ((s != NULL) && (*s == '1' || *s == 'y' || *s == 'Y' || + *s == 't' || *s == 'T')) return 0; return 1;