Message ID | 20210506142438.1310977-9-sjg@chromium.org |
---|---|
State | Deferred |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) 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=YMYVvzSW; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FbbkL6MKYz9sWY for <incoming@patchwork.ozlabs.org>; Fri, 7 May 2021 00:36:42 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 59F0682D3E; Thu, 6 May 2021 16:33:26 +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="YMYVvzSW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CCF1182E3C; Thu, 6 May 2021 16:32:47 +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.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-oo1-xc30.google.com (mail-oo1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) (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 A904D82E2B for <u-boot@lists.denx.de>; Thu, 6 May 2021 16:25:39 +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-oo1-xc30.google.com with SMTP id i20-20020a4a8d940000b02901bc71746525so1288303ook.2 for <u-boot@lists.denx.de>; Thu, 06 May 2021 07:25:39 -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=USQz9za/SyN6vzXq8DHvZGAg9rbRkEqoL09CAGdHTL0=; b=YMYVvzSWd34wTrvMJGXbbq/UujHeHVnQBssvvFIn+xMyP6qaZZ7EQ8PT4nzfq1kuiX Pw1qHJrt3C7OuOPB+XB2l/K5WsdCvJc75FWZZfstfUPw+XVxJQz1zovjcJ+fzdHvt8vM hZAxpfJ7BCuQk37kIMkwAEI3qZsKeBwuF29RM= 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=USQz9za/SyN6vzXq8DHvZGAg9rbRkEqoL09CAGdHTL0=; b=qAjfMNYnOaxdy7/Ozbh9DLpLr7JUQymgaw1PHAa0DSpuHfwTKuHf/3ZN7A4N0JFWb1 P/Yee+btePoSvXQVj03CnQFD0X0owNdrF5EUC4/KikRXQxGGHeRJcwyQGj3Ck12eWMWq +5/8PiHFnuIIWqMo0N1PguLJxjya+Cw0q5PSl24jmWtoxGjY27AVhIN3TwiO/Ph/HR3A rYP5NTP1q1G3jXAimiCCVouePrjSbhCs+gDolri5QsxmcNPFskx3uoKO5VnIDaubw6OL fcu8mbSvIwa2/JOG3zFavFqlJaYaUdsDTyS5TsPkAnQ/kTxcnm7ISkoopWVCE83MQVe6 cSfw== X-Gm-Message-State: AOAM532iI40UQSBqbZSMHTcmg/wy936npRM1zvdsYMNGLYogtmlLOQvU CvoGHWbBBkZgAap0oWJzXYC+1jpkGrzuNYdL X-Google-Smtp-Source: ABdhPJw1DoAYn8NB7fWAIp57NhZFi0chLTj174J3B2JzClCqtGERXb9XvhCzQP1t8bd/fxP7x8qchg== X-Received: by 2002:a4a:ca0f:: with SMTP id w15mr3626942ooq.35.1620311138196; Thu, 06 May 2021 07:25:38 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id z204sm445490oia.2.2021.05.06.07.25.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 07:25:37 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Tom Rini <trini@konsulko.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Andre Przywara <andre.przywara@arm.com>, Masahiro Yamada <masahiroy@kernel.org>, Rasmus Villemoes <rasmus.villemoes@prevas.dk>, Robert Marko <robert.marko@sartura.hr>, Bin Meng <bmeng.cn@gmail.com>, Simon Glass <sjg@chromium.org>, Joe Hershberger <joe.hershberger@ni.com>, Marek Vasut <marex@denx.de> Subject: [PATCH v2 36/50] image: Drop IMAGE_ENABLE_IGNORE Date: Thu, 6 May 2021 08:24:24 -0600 Message-Id: <20210506142438.1310977-9-sjg@chromium.org> X-Mailer: git-send-email 2.31.1.607.g51e8a6a459-goog In-Reply-To: <20210506142438.1310977-1-sjg@chromium.org> References: <20210506142438.1310977-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
image: Reduce #ifdefs and ad-hoc defines in image code
|
expand
|
diff --git a/common/image-fit.c b/common/image-fit.c index 070835b3a87..c13ff6bba24 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1262,7 +1262,7 @@ static int fit_image_check_hash(const void *fit, int noffset, const void *data, } printf("%s", algo); - if (IMAGE_ENABLE_IGNORE) { + if (!host_build()) { fit_image_hash_get_ignore(fit, noffset, &ignore); if (ignore) { printf("-skipped "); diff --git a/include/image.h b/include/image.h index eb5ca8a32d3..64866c609f4 100644 --- a/include/image.h +++ b/include/image.h @@ -27,7 +27,6 @@ struct fdt_region; #include <sys/types.h> #include <linux/kconfig.h> -#define IMAGE_ENABLE_IGNORE 0 #define IMAGE_INDENT_STRING "" #else @@ -36,8 +35,6 @@ struct fdt_region; #include <asm/u-boot.h> #include <command.h> -/* Take notice of the 'ignore' property for hashes */ -#define IMAGE_ENABLE_IGNORE 1 #define IMAGE_INDENT_STRING " " #endif /* USE_HOSTCC */
We can use the new host_build() function for this, so drop it. Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) common/image-fit.c | 2 +- include/image.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-)