From patchwork Sat May 20 20:55:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Edwards X-Patchwork-Id: 1784176 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=awmH5y/D; 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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QPKkg6KGyz20PS for ; Sun, 21 May 2023 22:33:47 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 30581846D8; Sun, 21 May 2023 14:33:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="awmH5y/D"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A71298478A; Sat, 20 May 2023 22:56:04 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (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 0457884707 for ; Sat, 20 May 2023 22:56:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=cfsworks@gmail.com Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-64d24136685so1496178b3a.1 for ; Sat, 20 May 2023 13:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684616158; x=1687208158; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eBQPn1ttd5RL2hcc0XHcIkM9VoBio8IrpHrpkQHtGcc=; b=awmH5y/DbC4B2JA7M9iMCK7PMlJE8HWdMNpfAmiD+lH+dXqCQ57ulwcXmY1giK3aKO qpd0ShmVyyqZVY9z4VjQGvywgpmTFDFVWSgZ+0camkr2tBsPCwyUIY7rP14GvKvmKVnh wd6Njrd8qtv6dz6DiMQYU18mAIHCYgoALBo3nSRW5kEWSuW3IMvWo8lQGqhZ3zLp3q/l K/S5fflk+wMBYYJmLULWbwH2aJQRa8vfqPyyXjD9G5YMN68EDEN+bNVXo59+otPTtR1z bDNgfNqdgxL1UWaW7o9EVORpqkb/2Ix99+VPxhMmAxlWo1YOhx2SBjbCsT4jPVP11e5E mUOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684616158; x=1687208158; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eBQPn1ttd5RL2hcc0XHcIkM9VoBio8IrpHrpkQHtGcc=; b=aAOBFoRcpQfDe33y4tpdA6P8CiQLDQl5oMTQSZlNRSYQZ5YKhbRV9h2ZMAm8fiJ6Zj Dek3wUMiqkJvVOX4BE9/fWktTg3HczEKk66KMsrClmyXaS2s43EK4z7YHC/g2NrKKGZV P39IzQ+ZL4dchyqwupakyeJv8s0VoX0DlrTWZ9V8qCNIe+M1HSTQFHJPW37tRsAVLuXI U8ydrWOSVj/jjGGF5PItSHNJS3FrZTPc5uz1ZeaAHTvlgvAVl0p1Y67CIdOSwaRIoVRu 6NSFHr/pTdD/7TN/CDNpIOCobaEVke3SirXes4l6OssXNF58oFcNSB4FpxA6+tpjgy/0 W/cQ== X-Gm-Message-State: AC+VfDzdI+Mrhsd+oXGpe418UFqw77tVRwuZfbwvntb/AtHDZVeOuDYg CkxlxLLM/FRx/OGAxAPPtaJbq4IXQQIeINhV X-Google-Smtp-Source: ACHHUZ4IVeSEeECh+OjSxDFmI5ZV0je1AiszujElFda+Byh9gAq2NThdlUyNdUnCcY4J0sm0ndyh9A== X-Received: by 2002:a05:6a00:4c0a:b0:63c:56f5:5053 with SMTP id ea10-20020a056a004c0a00b0063c56f55053mr13596296pfb.13.1684616158126; Sat, 20 May 2023 13:55:58 -0700 (PDT) Received: from celestia.nettie.lan (static-198-54-134-172.cust.tzulo.com. [198.54.134.172]) by smtp.gmail.com with ESMTPSA id j17-20020a62e911000000b0064d413caea6sm1651045pfh.179.2023.05.20.13.55.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 May 2023 13:55:57 -0700 (PDT) From: Sam Edwards X-Google-Original-From: Sam Edwards To: u-boot@lists.denx.de Cc: Sam Edwards , Tom Rini , Heinrich Schuchardt , Kever Yang , =?utf-8?q?Marek_Beh=C3=BAn?= , =?utf-8?q?Pali_Roh=C3=A1r?= , Quentin Schulz , Simon Glass Subject: [RFC PATCH 01/10] makefile: Fix symbol typo in binary_size_check Date: Sat, 20 May 2023 14:55:38 -0600 Message-Id: <20230520205547.1009254-2-CFSworks@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230520205547.1009254-1-CFSworks@gmail.com> References: <20230520205547.1009254-1-CFSworks@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 21 May 2023 14:33:27 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean The start-of-image marker symbol is `__image_copy_start`; by searching for `_image_copy_start` instead, this check can accidentally match `_image_copy_start_ofs`. Signed-off-by: Sam Edwards Reviewed-by: Tom Rini --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a5ab5e3da9..19017cbfa0 100644 --- a/Makefile +++ b/Makefile @@ -1262,7 +1262,7 @@ OBJCOPYFLAGS_u-boot-nodtb.bin := -O binary \ binary_size_check: u-boot-nodtb.bin FORCE @file_size=$(shell wc -c u-boot-nodtb.bin | awk '{print $$1}') ; \ map_size=$(shell cat u-boot.map | \ - awk '/_image_copy_start/ {start = $$1} /_image_binary_end/ {end = $$1} END {if (start != "" && end != "") print "ibase=16; " toupper(end) " - " toupper(start)}' \ + awk '/__image_copy_start/ {start = $$1} /_image_binary_end/ {end = $$1} END {if (start != "" && end != "") print "ibase=16; " toupper(end) " - " toupper(start)}' \ | sed 's/0X//g' \ | bc); \ if [ "" != "$$map_size" ]; then \