From patchwork Fri Jan 11 19:56:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Goldschmidt X-Patchwork-Id: 1023762 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=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.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="SapTygCB"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43btsX0HJyz9sBQ for ; Sat, 12 Jan 2019 06:56:15 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B4FE1C2222C; Fri, 11 Jan 2019 19:56:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 54639C221B9; Fri, 11 Jan 2019 19:56:11 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A0D7FC221B9; Fri, 11 Jan 2019 19:56:10 +0000 (UTC) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by lists.denx.de (Postfix) with ESMTPS id 3EF67C22176 for ; Fri, 11 Jan 2019 19:56:10 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id n190so3520347wmd.0 for ; Fri, 11 Jan 2019 11:56:10 -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; bh=HfDA/ZLctO/6xhFuLDyJMO/Nzt8ePRyczRWy8URoloU=; b=SapTygCBQ1KHzjwpsSDRfU05HCUdULJaXBTSjnYpRjZUJrA2mQ4vQiBTwTVBpsBjsO YlVG57x/KPL3sC428Cy0P6Ihi2GLlHEbiAwlauFnXpYmFeESNfF1lkk6f0/cmeRA0j3A o2mSM9GyLqYGueiPNjTN2DpxBTeu0LVn78yi0ZPipACZBwk7Yt6//Q6gG9GHStDAmBqg Y9hpIK/QK1M1bhD5Hre8SipnpyATclDpMAYeULbDjmwsAmVtlYeK0N9CbGoov2jO0zaG xQCqqM3Lov2E/f8X1cfVgUmL4wq2p67n/7ALtg8ApXxyI9KafFXF2WhFCpyzdSkur+wb B73g== 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; bh=HfDA/ZLctO/6xhFuLDyJMO/Nzt8ePRyczRWy8URoloU=; b=sVvGlhZm/fQsXJbbwA0zFgeEqKWAozhs6TTwXm3aau/Ykn1ragGXYvoF+SulGWQwkQ XIgGkSWbBWrq9x+KRBVYW/3BhBQWNLV27/6Q0/A2CwJHxkPGt2bcehBzlL/cuYT9P4Uh +IBpU/9OLVAZsFwh+BAg5xrgUg9e1R+UisUFT9cXNCJIb7O+MTLUmfRYiANd0NLUNysG EATwTOGzGaZNOecC85t7QPv7Mhz0K/C7LmC814XVQo0heFyPW79qPad3Xo1JYkeLd4/s nJBbrjawGvwmCU7w73vfWUojL/k4Ww6RlJ3FrFgBHikEHUXu6TXXQmxYEYn5cNFEi/6Y BQ+A== X-Gm-Message-State: AJcUukcrVTmo1IHtxirKl3yxE9KcVO2VJSq5HowQlSWzXkZ0UZji9nsc c34raON/yvx1AULH4Wee8s0= X-Google-Smtp-Source: ALg8bN6e9fZojE34p1DK7tNkzuJG67sQ+SpAd3H9bYKcnss1OIwJDqEGuKsqAlknxfSfCUeTZ3b5QA== X-Received: by 2002:a1c:a00f:: with SMTP id j15mr3334847wme.84.1547236569880; Fri, 11 Jan 2019 11:56:09 -0800 (PST) Received: from ubuntu.home ([2a02:8071:6a3:700:8c22:ee0c:efc8:ed86]) by smtp.gmail.com with ESMTPSA id 125sm30905977wmm.26.2019.01.11.11.56.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 11:56:08 -0800 (PST) From: Simon Goldschmidt To: Tom Rini , u-boot@lists.denx.de Date: Fri, 11 Jan 2019 20:56:02 +0100 Message-Id: <20190111195602.22542-1-simon.k.r.goldschmidt@gmail.com> X-Mailer: git-send-email 2.17.1 Cc: Baruch Siach , Stephen Warren , Chris Packham Subject: [U-Boot] [PATCH] Makefile: run CONFIG_BOARD_SIZE_LIMIT against .img X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" With the current Makefile, CONFIG_BOARD_SIZE_LIMIT is used to check the U-Boot binary without devicetree only. This produces wrong results when OF_SEPARATE is used. To fix this, run the CONFIG_BOARD_SIZE_LIMIT check on all .img binaries as well. Signed-off-by: Simon Goldschmidt Reviewed-by: Simon Glass --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 99cb9e434d..56236c64cd 100644 --- a/Makefile +++ b/Makefile @@ -1198,6 +1198,7 @@ MKIMAGEFLAGS_u-boot.pbl = -n $(srctree)/$(CONFIG_SYS_FSL_PBL_RCW:"%"=%) \ u-boot-dtb.img u-boot.img u-boot.kwb u-boot.pbl u-boot-ivt.img: \ $(if $(CONFIG_SPL_LOAD_FIT),u-boot-nodtb.bin dts/dt.dtb,u-boot.bin) FORCE $(call if_changed,mkimage) + $(BOARD_SIZE_CHECK) u-boot.itb: u-boot-nodtb.bin dts/dt.dtb $(U_BOOT_ITS) FORCE $(call if_changed,mkfitimage)