From patchwork Thu Feb 25 17:08:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 588195 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id B2F731402EC for ; Fri, 26 Feb 2016 04:08:37 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DF13532EAD; Thu, 25 Feb 2016 17:08:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dPxDKSa4J90T; Thu, 25 Feb 2016 17:08:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id ABFCB3397F; Thu, 25 Feb 2016 17:08:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 290931C10D5 for ; Thu, 25 Feb 2016 17:08:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2566B92298 for ; Thu, 25 Feb 2016 17:08:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id di-fTjyJKtSf for ; Thu, 25 Feb 2016 17:08:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.ind.br (mx.datacom.ind.br [177.66.5.10]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6D3C792282 for ; Thu, 25 Feb 2016 17:08:30 +0000 (UTC) Received: from mail.datacom.ind.br (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTPS id DFA931907900; Thu, 25 Feb 2016 14:07:17 -0300 (BRT) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTP id CF2061906248; Thu, 25 Feb 2016 14:07:17 -0300 (BRT) X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from mail.datacom.ind.br ([127.0.0.1]) by localhost (mail.datacom.ind.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id OYISQgSeX6Jn; Thu, 25 Feb 2016 14:07:17 -0300 (BRT) Received: from PEDELD048.datacom.net (pedeld048.datacom.net [10.0.120.146]) by mail.datacom.ind.br (Postfix) with ESMTPSA id A84351901BD2; Thu, 25 Feb 2016 14:07:17 -0300 (BRT) From: Carlos Santos To: buildroot@buildroot.org Date: Thu, 25 Feb 2016 14:08:14 -0300 Message-Id: <1456420094-1215-1-git-send-email-casantos@datacom.ind.br> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456409941-10295-1-git-send-email-paulo.zaneti@datacom.ind.br> References: <1456409941-10295-1-git-send-email-paulo.zaneti@datacom.ind.br> In-Reply-To: <1456409941-10295-1-git-send-email-paulo.zaneti@datacom.ind.br> References: <1456409941-10295-1-git-send-email-paulo.zaneti@datacom.ind.br> Cc: paulo.zaneti@datacom.ind.br Subject: [Buildroot] [PATCH 1/1] uboot-tools: add option for dumpimage X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Paulo Zaneti The tool dumpimage extracts data from U-Boot images. U-Boot added dumpimage tool on release 2014.01. This commit allows installation on target and host. Signed-off-by: Paulo Zaneti Tested-by: Carlos Santos Built host (x86_64) and target (PowerPC) packages and verified that both are compiled and installed properly. Signed-off-by: Carlos Santos --- package/uboot-tools/Config.in | 6 ++++++ package/uboot-tools/uboot-tools.mk | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/package/uboot-tools/Config.in b/package/uboot-tools/Config.in index e2c621c..aca310b 100644 --- a/package/uboot-tools/Config.in +++ b/package/uboot-tools/Config.in @@ -53,4 +53,10 @@ config BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV bootloader, which allows access to the U-Boot environment from Linux. +config BR2_PACKAGE_UBOOT_TOOLS_DUMPIMAGE + bool "dumpimage" + help + The dumpimage tool from Das U-Boot bootloader, which allows + extraction of data from U-Boot images. + endif diff --git a/package/uboot-tools/uboot-tools.mk b/package/uboot-tools/uboot-tools.mk index 3150279..264e9dd 100644 --- a/package/uboot-tools/uboot-tools.mk +++ b/package/uboot-tools/uboot-tools.mk @@ -52,10 +52,17 @@ define UBOOT_TOOLS_INSTALL_FWPRINTENV endef endif +ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_DUMPIMAGE),y) +define UBOOT_TOOLS_INSTALL_DUMPIMAGE + $(INSTALL) -m 0755 -D $(@D)/tools/dumpimage $(TARGET_DIR)/usr/sbin/dumpimage +endef +endif + define UBOOT_TOOLS_INSTALL_TARGET_CMDS $(UBOOT_TOOLS_INSTALL_MKIMAGE) $(UBOOT_TOOLS_INSTALL_MKENVIMAGE) $(UBOOT_TOOLS_INSTALL_FWPRINTENV) + $(UBOOT_TOOLS_INSTALL_DUMPIMAGE) endef ifeq ($(BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SIGNATURE_SUPPORT),y) @@ -79,6 +86,7 @@ endef define HOST_UBOOT_TOOLS_INSTALL_CMDS $(INSTALL) -m 0755 -D $(@D)/tools/mkimage $(HOST_DIR)/usr/bin/mkimage $(INSTALL) -m 0755 -D $(@D)/tools/mkenvimage $(HOST_DIR)/usr/bin/mkenvimage + $(INSTALL) -m 0755 -D $(@D)/tools/dumpimage $(HOST_DIR)/usr/bin/dumpimage endef $(eval $(generic-package))