From patchwork Wed Jan 6 10:09:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 357551 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp738512jai; Wed, 6 Jan 2021 02:11:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyh3AmMzf0HznMRQ/2j6oJe68sxqC8IUtFQhNNCfi5FlqyDWNSj8QsaF4MRtQInccA4TDtD X-Received: by 2002:a05:6402:797:: with SMTP id d23mr3475737edy.302.1609927893918; Wed, 06 Jan 2021 02:11:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609927893; cv=none; d=google.com; s=arc-20160816; b=NdwKtZSrKn6M+yubaRrQ400TO4hN1wUE/5s+nAT4YiTyFpBKKZvE4Ppam2r5CEnPq9 B8Eor9VQ1/Sneqe9311Ddj+xUKyE0oDEFh86Gup3oURNcWhiNRk6NQ7c4s/18W6M1jg1 3lpm5mNBsKDd/aYJz2Qg7Aqv2owW/yl6HwJ7oxrhjDoZtx9/X8o4gIpOzs+8T5IGBFuP kRgSUeO4L5pkL/s8uPLJSSJRkxvNUb2fHovWftGXxRkLfSkhYsrsy7IQYl1p7AjG9n2L sk4l3oUekox1/OjILQvj4/TcTl4g6AZ2B4QE+roHt9K/JW1SYEfOKqEKYVttdku421Le 4Rtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vIPKS1Ft1bWawzU3/HUFP2aGC5QczgfahJgd1GFd2V8=; b=xS/pKqKu7pIGGYbkqY8JBMmUtzlZijgeaUgqcn6ZOVIfjKY96dTS82xahdlqdXY75s t5TiJ8C7iSbuJlYqulPhM6GLh3Su0iWH3VUrmCpKaZQ51dm+BxzzEipCyqAbpG8UsOv6 uxMQmDds5chxTBLxhm127UOZ5P3oAX+7TonwntdvvL2fls6aQwNlw9xE5PJmMH7Uip4/ ZuNwk9RKKTfIRvixgbfRf/fK4nJA/+sxoQPcHRpSr6n8K2Nqg3B62R2zElZZpDe9jJMa XVf4EKzHdmBz39h429HB8a5t0RFVEvmF9yeaUvvt9JouTSpIv96SyyiCv9NVT3qstb1X gXQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HuZzNThi; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lo2si680937ejb.37.2021.01.06.02.11.33; Wed, 06 Jan 2021 02:11:33 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HuZzNThi; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725925AbhAFKKj (ORCPT + 6 others); Wed, 6 Jan 2021 05:10:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725960AbhAFKKj (ORCPT ); Wed, 6 Jan 2021 05:10:39 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14787C061357 for ; Wed, 6 Jan 2021 02:09:59 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id n3so2364536pjm.1 for ; Wed, 06 Jan 2021 02:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vIPKS1Ft1bWawzU3/HUFP2aGC5QczgfahJgd1GFd2V8=; b=HuZzNThi4I4FEVGN1LjeeYcLmlyA9zRyzkYwh6z0pQArRBn5gQTFbX+zxOr8VvBrM8 tsn37JvixzZWCFZ6cO4ed7m/5px53d3FYnYsKwx4nMSMfHTy2Z5jaCkjpa4kAsNvKzDu G4hLTWMJDkTJzQMp0Q8nCWlbDUTHHYyYA+0+ZpnfruNziicJZugML6UNlV99g0Ux35Fo JWV6Ad8/VnoGclUIIgQd8ILfQYekax5wabVOd/HOnbt/m00t7s2C4ABWcIBkspV/u0pj i4D3FH+qYUokDcg1ynW8EMcSthUeysVjdxl81fYvfcDXsRRqSbQ/rby4xgqsn39Wzlq5 1AdQ== 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=vIPKS1Ft1bWawzU3/HUFP2aGC5QczgfahJgd1GFd2V8=; b=Oi5wmzgI4dannecjVCC5mmZWuIJQuysJShW7JEuc+DheI0PiAvoNY6mf3pP0lVTyfb 9orV4TbJH8SFI3JMUwkuKQcagV5OMk4FqNM410hqMKP2+uZo7cUt/nKEN64p+tqHMAyN +s6HHtiXuW4lk1e6DzNGGVCyn7PNdZ5NxlXH5PmFITeSunTFyRIQwyXvtXiGOxwVlW0y tr7BYHPFS8yl6JPD4vAClRo27JcxAv0aNdMJREWfQywrmyKdR/IVAOT7zU4tXiFq9vu5 Wb8ftok9QSxU+jGghPpOXmx+V8tTjPS3YSSzA4SPrwjRGrPUjxCPgjG8tpB7fDtGD3my j3Ig== X-Gm-Message-State: AOAM5317d2YjbATSUkqplroTQbIMqknrAROh895t8RPCk07IWFRnTRVl 4iFuMmjrUx4jqBrkHypDf7fQEQ== X-Received: by 2002:a17:902:7887:b029:dc:20e:47ff with SMTP id q7-20020a1709027887b02900dc020e47ffmr3830047pll.65.1609927798615; Wed, 06 Jan 2021 02:09:58 -0800 (PST) Received: from localhost ([122.172.20.109]) by smtp.gmail.com with ESMTPSA id j14sm1809400pjm.10.2021.01.06.02.09.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jan 2021 02:09:57 -0800 (PST) From: Viresh Kumar To: Pantelis Antoniou , Frank Rowand , Rob Herring Cc: Viresh Kumar , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Vincent Guittot , Bill Mills , anmar.oueja@linaro.org Subject: [PATCH] scripts: dtc: Start building fdtoverlay and fdtdump Date: Wed, 6 Jan 2021 15:39:31 +0530 Message-Id: <5a416b44155409e45b99c5624d66992a2138cd4c.1609927722.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org We will start building overlays for platforms soon in the kernel and would need these tools going forward. Lets fetch and build these. Note that a copy of fdtdump.c was already copied back in the year 2012, but it was never updated or built for some reason. Signed-off-by: Viresh Kumar --- scripts/dtc/Makefile | 8 +++++++- scripts/dtc/update-dtc-source.sh | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) -- 2.25.0.rc1.19.g042ed3e048af Reported-by: kernel test robot diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile index 4852bf44e913..c607980a5c17 100644 --- a/scripts/dtc/Makefile +++ b/scripts/dtc/Makefile @@ -1,12 +1,18 @@ # SPDX-License-Identifier: GPL-2.0 # scripts/dtc makefile -hostprogs-always-$(CONFIG_DTC) += dtc +hostprogs-always-$(CONFIG_DTC) += dtc fdtdump fdtoverlay hostprogs-always-$(CHECK_DT_BINDING) += dtc dtc-objs := dtc.o flattree.o fstree.o data.o livetree.o treesource.o \ srcpos.o checks.o util.o dtc-objs += dtc-lexer.lex.o dtc-parser.tab.o +fdtdump-objs := fdtdump.o util.o + +libfdt_dir = libfdt +libfdt-objs := fdt.o fdt_ro.o fdt_wip.o fdt_sw.o fdt_rw.o fdt_strerror.o fdt_empty_tree.o fdt_addresses.o fdt_overlay.o +libfdt = $(addprefix $(libfdt_dir)/,$(libfdt-objs)) +fdtoverlay-objs := $(libfdt) fdtoverlay.o util.o # Source files need to get at the userspace version of libfdt_env.h to compile HOST_EXTRACFLAGS += -I $(srctree)/$(src)/libfdt diff --git a/scripts/dtc/update-dtc-source.sh b/scripts/dtc/update-dtc-source.sh index bc704e2a6a4a..9bc4afb71415 100755 --- a/scripts/dtc/update-dtc-source.sh +++ b/scripts/dtc/update-dtc-source.sh @@ -31,9 +31,9 @@ set -ev DTC_UPSTREAM_PATH=`pwd`/../dtc DTC_LINUX_PATH=`pwd`/scripts/dtc -DTC_SOURCE="checks.c data.c dtc.c dtc.h flattree.c fstree.c livetree.c srcpos.c \ - srcpos.h treesource.c util.c util.h version_gen.h yamltree.c \ - dtc-lexer.l dtc-parser.y" +DTC_SOURCE="checks.c data.c dtc.c dtc.h fdtdump.c fdtoverlay.c flattree.c \ + fstree.c livetree.c srcpos.c srcpos.h treesource.c util.c \ + util.h version_gen.h yamltree.c dtc-lexer.l dtc-parser.y" LIBFDT_SOURCE="fdt.c fdt.h fdt_addresses.c fdt_empty_tree.c \ fdt_overlay.c fdt_ro.c fdt_rw.c fdt_strerror.c fdt_sw.c \ fdt_wip.c libfdt.h libfdt_env.h libfdt_internal.h"