From patchwork Sat Sep 12 17:13:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1362892 X-Patchwork-Delegate: trini@ti.com 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=RQz7EFfb; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BpfNy6dZnz9sTM for ; Sun, 13 Sep 2020 03:14:10 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 37A5D822E8; Sat, 12 Sep 2020 19:13:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="RQz7EFfb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 848B082242; Sat, 12 Sep 2020 19:13:46 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (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 1027C821DB for ; Sat, 12 Sep 2020 19:13:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x142.google.com with SMTP id b17so11895592ilh.4 for ; Sat, 12 Sep 2020 10:13:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QkA+e/QE1Ockld5HiSE4MVAGyG8BKngeeN0NdepZgOk=; b=RQz7EFfbqIf8o4grXl21btX+0I/1tELw39jL8n5yfvhNVQ7dLxo+mco01qzRAcwRnc FVIaLVcXLiWQtZV2W2OEp1zPrd7iwpHaDgYLv191tfgXPuYXPYcHSLUp9xI2pduobbmi 8b5yuXKQ1IIEMtpmI/O/0ag/mU8KdElsqJm2Y= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=QkA+e/QE1Ockld5HiSE4MVAGyG8BKngeeN0NdepZgOk=; b=bDG4M+IjE8JcJNoQSJH8sOM5ZY0gjoOgUhdSC/Pv635u72wMNi1rav1hxLA9sQsiwx fAjyJb3shkvXi+R6uXg1p0uqwc2JZw+CJqU6HMRPMMfcyIK0KPxGXOkVA1Ul3J8snYji qgRjyj0ZVtVtatazqfdW+ZI9D6pN/T4S9316JaOwHmteQUamDFkTkkpsisZApX2tg2+3 GAVQEdFe9hYWbx2/Yzm79FVSTKhxuaxS2BWniaChw63J4im+mhH9cc/1R1MH275riM/u 4PGueaMs843godnxz/iAAZCdDzedWPLz7Jnr/klTt5pHWsSyfBMW6HOaF0ItUkXqkSxe t5sw== X-Gm-Message-State: AOAM531F47ALygD/GSrJqOy/Iq9IH63+McsoA0Xm1IbqE0b0mJxkiesH PwOHPbV4Ah+Q1uVlMFgSohp1D6OiYMpjFyGk X-Google-Smtp-Source: ABdhPJxzxyoG8hq8Wu3TdmYWYvPs4gHNyJnDYNaAX1Lf9r1lWMSgUN+G6qJZqyxIDeYDVzoKkZMYqw== X-Received: by 2002:a92:7984:: with SMTP id u126mr6475146ilc.139.1599930822904; Sat, 12 Sep 2020 10:13:42 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id r5sm3464134ilc.2.2020.09.12.10.13.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Sep 2020 10:13:42 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Simon Glass , Stefan Roese , AKASHI Takahiro , Bin Meng , Marcin Juszkiewicz , Marek Szyprowski , Reuben Dowle , Thomas Hebb Subject: [PATCH v2 2/2] lib: Allow hexdump to be used in SPL Date: Sat, 12 Sep 2020 11:13:35 -0600 Message-Id: <20200912111330.v2.2.I16c8d3df6d96f3485c94555ab7c5cd7510db6038@changeid> X-Mailer: git-send-email 2.28.0.618.gf4bc123cb7-goog In-Reply-To: <20200912171335.3889616-1-sjg@chromium.org> References: <20200912171335.3889616-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean It is sometimes useful to output hex dumps in SPL. Add a config option to allow this. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese --- Changes in v2: - Leave the Makefile alone as the logic is in the C file lib/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 8efb154f734..37aae73a266 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -542,6 +542,14 @@ config HEXDUMP help This enables functions for printing dumps of binary data. +config SPL_HEXDUMP + bool "Enable hexdump in SPL" + depends on HEXDUMP + default y + help + This enables functions for printing dumps of binary data in + SPL. + config OF_LIBFDT bool "Enable the FDT library" default y if OF_CONTROL