From patchwork Tue Dec 24 16:51:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniu Rosca X-Patchwork-Id: 1215256 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mudIzTR7"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47j2LY6Wlpz9sPn for ; Wed, 25 Dec 2019 03:51:46 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1FA7580421; Tue, 24 Dec 2019 17:51:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mudIzTR7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 85296804C1; Tue, 24 Dec 2019 17:51:37 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, SPF_HELO_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BB813801BA for ; Tue, 24 Dec 2019 17:51:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=roscaeugeniu@gmail.com Received: by mail-wm1-x32b.google.com with SMTP id m24so2798942wmc.3 for ; Tue, 24 Dec 2019 08:51:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=N2Whh7fR9zWUo3yee+Bt+2YAz1H/NljiiTLybkF99LA=; b=mudIzTR75IKjL6MOM+OyxJAO4p7adBT0CLfIdqkq6sFXllWKsYwmr1mqRFe5kL5Obz QOE5rOAxk5dT4lx5p2BmEx6Iec5j2WpoOREKQsXqkK1b2h0cXHPPHp53BWN/heVtVFu+ skZp15jNzkRZIADkPu3N+DPTtjCe2hEDCNtLMbe1V6+PaXFax3zVnF5fJajibuBXKJO2 PZMyN9JVGcVQI8OakR5GUGbI6Hc15RZl87r8EzUp4zuJzl+2ym/fWtCIxoaRDGxTNVjx EAaEUMOypp7tA/dR3Myu1K5Vkdn/aRqyLt3PPBgDuAoX2Wc+aBDVYY59VpT7eZ9x+WQ1 QcRw== 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:mime-version :content-transfer-encoding; bh=N2Whh7fR9zWUo3yee+Bt+2YAz1H/NljiiTLybkF99LA=; b=HBTF+FnTnQKfUn0mPJ+yNPCf76zWPtDXp50aAQFnsjNqhngJJOLcWqePIXFUCWY4H8 3T8OxagyArfFhMgDe+9/UHH09k4ijAl89iqfWD97HbKcYz1NrINwyZq6Hibdn/E1Vy8e hVDmrOk2/F8dbha4bsFIzAP6heYTeEYQMDxl2DEENGdR6iAwfLr+ajwbKB66+clO1D3Z lXhEAGEccZ7Vbx2eKygPRAhJYiqMaxyvIu1GfHkZFMa+Kja680Anu1T+TKsw/U6iIhVU I48dDns0HBX+blpENcpiQuF1x/VazNAzejJ2c1SdcXznAvV4pAyIliZ83vIkN6LPmNW1 sNbQ== X-Gm-Message-State: APjAAAWvrQ5bsB/SeXjVknlmde/47cr2Kmgy7o9BMua/hiRMyF3/gPSi 1gSAA32NtOHsZOkTxaOF4LY= X-Google-Smtp-Source: APXvYqy2MJEZrF2TpFozcxVV1j7pqedQsIZGwU5SMSVpEHdVTKk3PKxflQyQK79a9OiH9xha6cZ9EA== X-Received: by 2002:a05:600c:23c9:: with SMTP id p9mr5139023wmb.160.1577206294300; Tue, 24 Dec 2019 08:51:34 -0800 (PST) Received: from erosca.fritz.box (x4e37979c.dyn.telefonica.de. [78.55.151.156]) by smtp.gmail.com with ESMTPSA id s128sm3136376wme.39.2019.12.24.08.51.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Dec 2019 08:51:33 -0800 (PST) From: Eugeniu Rosca X-Google-Original-From: Eugeniu Rosca To: Sam Protsenko , u-boot@lists.denx.de Subject: [PATCH 0/3] cmd: dtimg: Rename to adtimg and refactor usage style Date: Tue, 24 Dec 2019 17:51:05 +0100 Message-Id: <20191224165108.2836-1-erosca@de.adit-jv.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom Rini , Eugeniu Rosca , Eugeniu Rosca Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean The main focus of this series is to prepare the ground for: - adding the id/rev-based DT lookup in dtimg/adtimg [1] - adding the abootimg command [2] To be more clear, the above topics are handled _outside_ of this series, but they treat this series as hard dependency. The per-patch motivation and testing are described meticulously in each commit. [1] https://patchwork.ozlabs.org/patch/1202580/ ("cmd: dtimg: Get start and size based on --id and --rev") [2] https://patchwork.ozlabs.org/patch/1182212/ ("cmd: bootimg: Add bootimg command") Eugeniu Rosca (3): dtimg/am57xx_evm_defconfig: Rename dtimg to adtimg cmd: adtimg: Rename internal symbols cmd: adtimg: Refactor usage style cmd/Kconfig | 4 +- cmd/Makefile | 2 +- cmd/adtimg.c | 242 ++++++++++++++++++++++++++++ cmd/dtimg.c | 142 ---------------- common/Makefile | 2 +- configs/am57xx_evm_defconfig | 2 +- configs/am57xx_hs_evm_defconfig | 2 +- configs/am57xx_hs_evm_usb_defconfig | 2 +- 8 files changed, 249 insertions(+), 149 deletions(-) create mode 100644 cmd/adtimg.c delete mode 100644 cmd/dtimg.c Reviewed-by: Sam Protsenko