From patchwork Thu May 25 16:23:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pantelis Antoniou X-Patchwork-Id: 767012 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wYZNZ5bh9z9s82 for ; Fri, 26 May 2017 02:24:46 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="JBFiuwfL"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id 20B36C21CD4; Thu, 25 May 2017 16:24:41 +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=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 4EFDEC21C40; Thu, 25 May 2017 16:24:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4E427C21C40; Thu, 25 May 2017 16:24:38 +0000 (UTC) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by lists.denx.de (Postfix) with ESMTPS id DA6D1C21C30 for ; Thu, 25 May 2017 16:24:37 +0000 (UTC) Received: by mail-wm0-f52.google.com with SMTP id 7so97947575wmo.1 for ; Thu, 25 May 2017 09:24:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id; bh=Y4Bg54R6yrLNTAXVUXgg/MHBKzw49rEu0zThgXhR25U=; b=JBFiuwfLqgZbIqr6hZL9MI5u38pQCgHNerZNLlNhRlNsWYjBUXBa/6nZxvfXRECZzt U54TKY+xsFUn1fvitjFLRzHmyNxNS66IOkZS8qWjMVhLw0S2iiwP8RXdiMQ7qSHkLSDF /BQg5B15iFp1g1GccJEsGJINvArvcYfM048jU= 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=Y4Bg54R6yrLNTAXVUXgg/MHBKzw49rEu0zThgXhR25U=; b=MLjdy/mvWeOqswry0/8Ypzol9xO1XT/QTKaXnyPPPdXVnvYY1xbaQ38Ld6Bie3/SIp ml8fwDgnbApuZFnREg8H+TxNCr1ubmtLRfMmiEGkmMK2LVWEBh4kcXkxuZaGFqKMZY0N BTeibARSFu60X1KRurkjG5V4Rlr+aqDIoedZhUiqcMCzJM/SDnR5RbKaKRkeOmDU8vNW fiOwCXl5z0u9gqgNvGufyYl553YZwXtohdS3emv/kLd5+rjU/bmJplHkG/4QsZ8VxIdu hbIhRGSm448y0DfTaLCtkXnzA7hT3g1TLVF1RRqc23ShEbSh9RfmL+IDHBO+8v59RHvY Gm4w== X-Gm-Message-State: AODbwcA40ubmQJxtgph5YpMlxdsPoeDMYIfyhj/6n7zlPs0Rjxr5/vvt 3Q1YfV5iVSYKlcrA X-Received: by 10.28.66.23 with SMTP id p23mr9833278wma.38.1495729477074; Thu, 25 May 2017 09:24:37 -0700 (PDT) Received: from localhost.localdomain ([195.97.110.117]) by smtp.gmail.com with ESMTPSA id o97sm11535233wrc.48.2017.05.25.09.24.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 May 2017 09:24:36 -0700 (PDT) From: Pantelis Antoniou To: Tom Rini , u-boot@lists.denx.de Date: Thu, 25 May 2017 19:23:58 +0300 Message-Id: <1495729438-5974-1-git-send-email-pantelis.antoniou@konsulko.com> X-Mailer: git-send-email 2.1.4 Cc: Pantelis Antoniou Subject: [U-Boot] [PATCH] arm: Always keep the dtb section on objcopy 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" The dtb blob section must always be present in the resulting image. Either if OF_EMBEDED is used or if unit tests include dtb blobs. Signed-off-by: Pantelis Antoniou Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- arch/arm/config.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/config.mk b/arch/arm/config.mk index a5eebb9..1a77779 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -142,9 +142,11 @@ OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .hash \ -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn endif -ifdef CONFIG_OF_EMBED +# if a dtb section exists we always have to include it +# there are only two cases where it is generated +# 1) OF_EMBEDED is turned on +# 2) unit tests include device tree blobs OBJCOPYFLAGS += -j .dtb.init.rodata -endif ifdef CONFIG_EFI_LOADER OBJCOPYFLAGS += -j .efi_runtime -j .efi_runtime_rel