From patchwork Mon Dec 9 18:08:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 299154 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 28E682C0079 for ; Tue, 10 Dec 2013 05:11:03 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8E19F4BF5B; Mon, 9 Dec 2013 19:10:46 +0100 (CET) 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 zULWvlU9MKEk; Mon, 9 Dec 2013 19:10:46 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 20635A7771; Mon, 9 Dec 2013 19:09:51 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 010F3A77EA for ; Mon, 9 Dec 2013 19:09:27 +0100 (CET) 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 814wQhcVadnY for ; Mon, 9 Dec 2013 19:09:21 +0100 (CET) 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-f48.google.com (mail-qe0-f48.google.com [209.85.128.48]) by theia.denx.de (Postfix) with ESMTPS id 57FE6A760D for ; Mon, 9 Dec 2013 19:08:43 +0100 (CET) Received: by mail-qe0-f48.google.com with SMTP id gc15so3117479qeb.7 for ; Mon, 09 Dec 2013 10:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=TuZhk549oHUfcE71csrBbJZhUD+Y5xb+xuiWhIXFYsI=; b=GRn2vNKt7LOjLTdZQF8rbPtUqwaOE/Xt7nwA5v8w/N0tFdykH2VTmrmaDqdOclIVwv VflK+q0wYuhg5LJjLwF8EuOJBlQzxlT6dWZZpWYTBVftI/RIPK6BA6962NlASGKWh/6y dwefE57dpGzRP8FwK9Xmxu04xK+0O22Bp3zsnF9UWzVYiB1+jETGz567Lm6OFOB8pcKi WGQFOWCSLL1Q29t6ZRiTXrqzlBtsfeNdfhKFCQquPzedoQFH66ZWdnJXuh3ydgRDt1ka G7UDYgCg57ET7uHJyDnagbJ874KkvZFe2r4QuERyCaRkyMbbHvCb+SM8DtsFkoTzxECE hdBA== X-Received: by 10.224.34.71 with SMTP id k7mr36319269qad.15.1386612522439; Mon, 09 Dec 2013 10:08:42 -0800 (PST) Received: from localhost.localdomain (cpe-174-106-216-211.ec.res.rr.com. [174.106.216.211]) by mx.google.com with ESMTPSA id hb2sm32083216qeb.6.2013.12.09.10.08.41 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Dec 2013 10:08:41 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Date: Mon, 9 Dec 2013 13:08:57 -0500 Message-Id: <1386612538-11186-12-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1386612538-11186-1-git-send-email-trini@ti.com> References: <1386612538-11186-1-git-send-email-trini@ti.com> Subject: [U-Boot] [PATCH v2 11/12] 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. Acked-by: Stefan Roese Signed-off-by: Tom Rini --- 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;