From patchwork Mon Feb 26 21:17:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 129724 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp652961lja; Mon, 26 Feb 2018 13:18:11 -0800 (PST) X-Google-Smtp-Source: AH8x226GPzr1y+rnlgPLyY5zqazs2bpX9XR9zEzb3YOKVAlNPx71/6mRgR+U6GcO1g3K6dnjjkDN X-Received: by 10.80.159.196 with SMTP id c62mr16072384edf.277.1519679891737; Mon, 26 Feb 2018 13:18:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519679891; cv=none; d=google.com; s=arc-20160816; b=FP4t+GbEQ/uXHV+1GBSKb/CDD3SyOxrGl2mNQMeNg+OxbyJlJj4k4UV9OKUQ1eRw0D 1FbGiQVvEC7E3FQPvfwKsJFnOiORo9n1byqO+BWGH2bo/xMNnOz3JivC9T9lJSDioLQQ vFBGo3N4biBAXsw9y5eLD0u7WjkfS6g7ao26d+CVH0oUxySzQeh2yYoS95jbYzEdBn8w sU4TE6s7g0ucm+/K2bKl17ZyIBi4lKXZXgHEbQ6BlfndwD822dt0c76wEBRh38Kr3hD/ U/2YkYnXwi3AfNAaqMh+LbLvSDYysA6/hJXJUUaTOSvK5N5ldmgLvU1l7jM/6DZlFnHa +OGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=Ko39c3hCwT5ZSo3A3DismJnXCNB/BabFJ+MyncDOISw=; b=tKW2lI4lDdLYIJUz7iRPbh3O+CqGWKJieqMHYWH7ACpDuxaV/0/GkVMqM7xyhr1QI+ So8MTyWN6En/PIfupHd1pzaRG3Htw6Th3rFy0S6HbJfRq6kKhrv43wf2mlmhFcbptSUI OAUMAoblsDFkK15aGYi5iP8EOIb+yJYsBbuqO8/h7klB/jmNjNRaJFmiZa9BHSDJ132u btZVQJ9EIkUzdmJv4BKZNP/cQRJLu8wVUL/WHMMe1fuCmzAvEist2RdajLL42Do5690H pbDklQdC7ZGcCfDO5T4+NdAVEe0KtWESc5cuGp+cCWsJbBGEtlBD5nfzAa/2FEWr/Pql 4ofQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ONlBg+yq; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 31si4290590edh.107.2018.02.26.13.18.11; Mon, 26 Feb 2018 13:18:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ONlBg+yq; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id E1F2FC21F50; Mon, 26 Feb 2018 21:18:07 +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=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID 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 6E9F4C21DE8; Mon, 26 Feb 2018 21:18:05 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 60813C21DE8; Mon, 26 Feb 2018 21:18:04 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by lists.denx.de (Postfix) with ESMTPS id 0B56AC21C3F for ; Mon, 26 Feb 2018 21:18:04 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id p104so22677412wrc.12 for ; Mon, 26 Feb 2018 13:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=sKOevVqsRuVbXVTErF1zKc0j351K2VdUAnt4+7MVFBs=; b=ONlBg+yqLqSBxyuFYuhqoA4bf7SXbF9KWn7I7RJDTpvcIKVsgNgmD8kscgR1XLsoVD VUQ89val+rLfDbD61wUKFsaxjX3/Ll6ztfG1UDAbGMQPlMnbNoqKBRHAF6LglKCXZXam 2HwYs70ly/HRvBVJv+m4Tdi/JeeG1rnhqgHwo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sKOevVqsRuVbXVTErF1zKc0j351K2VdUAnt4+7MVFBs=; b=Jb/gxbe4lQhOaGDygM5Mn8lQv1d54TflSpszh39vePm1Aq0luuXBxmJWbkYdnqQX71 Gm+5t1eX+3XO42PPZIeOhljObPWPNcZxiGDlnCHUCN8gYOPDv8IvJTbn1hoPM1WCEjww B/iMsXVaL7Fk4Cr8EGNOMtq9ukX7NxW4UavT3LD8JcYRTaWio99b6h5/uR8jRN+E7sz+ wn6UhdlTTtKdadErPnUrCCpWBJCP657ATfrgEhSXkD9cEqEQgNHIGzd12Q3AhBqVUal/ EKHSlQQ3guh6DpkQiya7RCBA6iLIJp5q5UKjm0Ua3CPCN2JjR8+BfkhXkxJSsVtD9Wga ktMw== X-Gm-Message-State: APf1xPBN0NqeFy1gNvFVg0Gz4+p0y4wXor8C/qp+BsEql+w7NG63Alnm a+Oviz2wpNgge836n1ESCk7kKUZrPfI= X-Received: by 10.223.138.251 with SMTP id z56mr10517774wrz.196.1519679883107; Mon, 26 Feb 2018 13:18:03 -0800 (PST) Received: from localhost ([195.238.92.76]) by smtp.gmail.com with ESMTPSA id r1sm9169457wmg.22.2018.02.26.13.18.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Feb 2018 13:18:02 -0800 (PST) From: Sam Protsenko To: u-boot@lists.denx.de Date: Mon, 26 Feb 2018 23:17:58 +0200 Message-Id: <20180226211801.16060-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.16.1 Cc: Tom Rini , igor.opaniuk@linaro.org, Praneeth Bajjuri , Neil Williams Subject: [U-Boot] [PATCH 0/3] Provide partition names to commands in environment 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch series makes it possible to pass partition name to "part start" and "part size" commands, and fixes corresponding magic numbers (partition numbers) in TI boot environment. Sam Protsenko (3): cmd: part: Allow passing partition name to start and size cmd: part: Extract common code to separate function env: ti: boot: Get rid of magic numbers cmd/part.c | 75 +++++++++++++++++++++---------------------- include/environment/ti/boot.h | 10 +++--- 2 files changed, 41 insertions(+), 44 deletions(-)