From patchwork Mon Jan 25 10:57:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 12043199 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0AE98C433DB for ; Mon, 25 Jan 2021 10:59:37 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A4A1A22B37 for ; Mon, 25 Jan 2021 10:59:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A4A1A22B37 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kleine-koenig.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ixoelWhW53nRwUi6yiH7RK56xFbYlPSZUDnby36BXP0=; b=gUfsOFKIRUuYmoXTL7BFMfNSIp kNiBDR9rh4fPfDfO+eR9M4WSAlq5IOqnh2QTIGcNp2Jn/7kH0dI6mc4e6cl0J+ao/ts141XcIfptX Hym/K3JRmcgqgBqQ71/Ibe/M21ORRsK8MvSJIu7cG964mLf5j+BtRcXXEsYdc2QC6f/WoAfiAct0+ 838EMzFipZhhy/oZMnYrJP1cHHe3XFLhJ5++MS9GoZIQV1yUhPa5297/FLFwDwlWivTahhN4nzd0y 7X2ZjxdjccGqgBvvfCrgfTjTxB6sEv8Gfw/E9w3M5xu0AGiNgxVuAQIOEUm0hofsCfM/JyvRyWhfm OwBRLjSw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l3zZa-0004CV-OP; Mon, 25 Jan 2021 10:58:18 +0000 Received: from antares.kleine-koenig.org ([2a01:4f8:c0c:3a97::2]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l3zZR-00048D-DI for linux-arm-kernel@lists.infradead.org; Mon, 25 Jan 2021 10:58:12 +0000 Received: by antares.kleine-koenig.org (Postfix, from userid 1000) id C857AADD4CA; Mon, 25 Jan 2021 11:58:05 +0100 (CET) From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Masahiro Yamada , Michal Marek Subject: [PATCH] cmd_dtc: Enable generation of device tree symbols Date: Mon, 25 Jan 2021 11:57:57 +0100 Message-Id: <20210125105757.661240-1-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210125_055809_592758_E5350AA6 X-CRM114-Status: GOOD ( 12.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Maxime Ripard , cyril@debamax.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Adding the -@ switch to dtc results in the binary devicetrees containing a list of symbolic references and their paths. This is necessary to apply device tree overlays e.g. on Raspberry Pi as described on https://www.raspberrypi.org/documentation/configuration/device-tree.md. Obviously the downside of this change is an increas of the size of the generated dtbs, for an arm out-of-tree build (multi_v7_defconfig): $ du -s arch/arm/boot/dts* 101380 arch/arm/boot/dts-pre 114308 arch/arm/boot/dts-post so this is in average an increase of 12.8% in size. Signed-off-by: Uwe Kleine-König Tested-by: Cyril Brulebois --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 213677a5ed33..0683a5808f7f 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -319,7 +319,7 @@ $(obj)/%.dtb.S: $(obj)/%.dtb FORCE quiet_cmd_dtc = DTC $@ cmd_dtc = $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ - $(DTC) -O $(patsubst .%,%,$(suffix $@)) -o $@ -b 0 \ + $(DTC) -@ -O $(patsubst .%,%,$(suffix $@)) -o $@ -b 0 \ $(addprefix -i,$(dir $<) $(DTC_INCLUDE)) $(DTC_FLAGS) \ -d $(depfile).dtc.tmp $(dtc-tmp) ; \ cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)