From patchwork Thu Jan 7 05:15:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 12002973 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 493A9C433E6 for ; Thu, 7 Jan 2021 05:16:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 156A123123 for ; Thu, 7 Jan 2021 05:16:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726113AbhAGFQH (ORCPT ); Thu, 7 Jan 2021 00:16:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbhAGFQH (ORCPT ); Thu, 7 Jan 2021 00:16:07 -0500 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FA01C0612F3 for ; Wed, 6 Jan 2021 21:15:27 -0800 (PST) Received: by mail-pg1-x52f.google.com with SMTP id n7so4065920pgg.2 for ; Wed, 06 Jan 2021 21:15:27 -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:mime-version :content-transfer-encoding; bh=QrVR8HrI6fCDnvS29akD+JwZDL2psh/KfBG4Bf4pDa0=; b=Wf+24L0IT9UHUeT09QDwDD7oc2wA5g4dXjH/S1mEj2unyVAdbxP7dTp7FfqsgKxQ41 3CM3LRfVS/sNbg2Caxhi5appIi0Ua5MplMVfz4tqTyqh3aXQGHMz0TMTVjvIq6obngU9 04dLHj7erJsLtMa8krTcRDokQYeLGkMun7FNvn/qLuo6AXSPc87sM4H4jOiUmiTQJFTL uXxzKfzdTpQ2iW6M9YjvEOyRT8ytPk/IOKYgYt0OjQZgD2acc7svIiBzSEprUvRmcg0u 7R/AJGvEStDMm0be3IXtrYLm/LjNzGJJfJEb5jFP0f1dnNPllwxdHblCCFBIt7OnVl3c PiTA== 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:mime-version :content-transfer-encoding; bh=QrVR8HrI6fCDnvS29akD+JwZDL2psh/KfBG4Bf4pDa0=; b=adVfDliAFo8z9fw+Im4HIZkd+aPtMUTc8/jrIrvvt8W8gH278le/xxnAMUQkZ/I1go SCsGSuh89LX/rF2x8TN1ClHX+DeXMsDdYjrzzCxwSHtTy70SPTdHIeDdjJcgZf9DjgF6 gPvLchsIxRmh1yelsC1ZPetaa7wpkYudslT7+GKPMJr1VfDivEsW0DNW3Aq+I7sAWZ52 IZ2uQm84x2svXWQaQX8JN7NojbZ8IE/6VXmUuoVG889c8Fkr21sWN+LBmNZJl2iwFF8Y GvNzRmKR2OdPto4NJKLORxz1g5wPmlg/ijldWWPuS3ZgeOKYziowy4d3DdId5Z8NP7IE EPNQ== X-Gm-Message-State: AOAM530SPKbCBzXQuv4F+krlaBaJt2tKK8VF4Ujito05/EjUHRBAg/Rp 7jY9bCOm+gpizD2L0RTK1W/2hg== X-Google-Smtp-Source: ABdhPJyuhdozZ+SaDR8TYXsWTOQye8KRK3yrj49NREqdmFPZsv2+9J/gk4oLkatYwFaeu7aE3cqmdA== X-Received: by 2002:a62:6c2:0:b029:19e:b63a:91e9 with SMTP id 185-20020a6206c20000b029019eb63a91e9mr590211pfg.79.1609996526613; Wed, 06 Jan 2021 21:15:26 -0800 (PST) Received: from localhost ([122.172.20.109]) by smtp.gmail.com with ESMTPSA id a29sm4158602pfr.73.2021.01.06.21.15.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jan 2021 21:15:25 -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 V2 1/2] scripts: dtc: Add fdtoverlay.c and fdtdump.c to DTC_SOURCE Date: Thu, 7 Jan 2021 10:45:19 +0530 Message-Id: X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org We will start building overlays for platforms soon in the kernel and would need these tools going forward. Lets start fetching them. Note that a copy of fdtdump.c was already copied back in the year 2012, but was never updated or built for some reason. Signed-off-by: Viresh Kumar --- V2: Separate out this change from Makefile one. This needs to be followed by invocation of the ./update-dtc-source.sh script so the relevant files can be copied before the Makefile is updated in the next patch. scripts/dtc/update-dtc-source.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" From patchwork Thu Jan 7 05:15:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 12002975 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 713E9C433E9 for ; Thu, 7 Jan 2021 05:16:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 40E7F2311A for ; Thu, 7 Jan 2021 05:16:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726496AbhAGFQO (ORCPT ); Thu, 7 Jan 2021 00:16:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbhAGFQN (ORCPT ); Thu, 7 Jan 2021 00:16:13 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BA2FC0612F8 for ; Wed, 6 Jan 2021 21:15:30 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id n3so3524166pjm.1 for ; Wed, 06 Jan 2021 21:15:30 -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=veLiPLptQPatfIKZ55m17NpOdTlfTsyV4zGOGB1KjD0=; b=GZTm+0fKGDN75n1VaB2xqy6SPEh0CpZxMX24JMwAozI8QJGbQb/ygcQ8W34NCvbqTt MGv90E8rxhdjg9hkTpAOxMwF234gOE2ooYEtQdzBLgcVxBD3Hz/O8zWpyxLQu3WWrmDT AXBWgG3/SlPMT7O5TyRom38Dq6hbZrtDRxZ20Mp0I2jZzVwYqBLl2nJeEs3GHHmv7bi8 GMlLC3c1I6OReyi2bulptuGc58ZZAsHgwjZsWywZM1ZB+G5Ru60Db0ij/0dwUu9b9yhv JMAJim0oOWFFS+5jDvFQjO0Rxpz+XSSwk/n+K1qRGumeIZA3Wku4qW97jyyezfa0jtsa gfSw== 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=veLiPLptQPatfIKZ55m17NpOdTlfTsyV4zGOGB1KjD0=; b=mAJC6hIev9Hr7yzXIFHRr/x4EiBYtKk8BPid8Rht44V+YVsDQAlNeE+t4jrUhMcWFs RWCqxtXq0CiVm08S+pdVXeog4GyD8gJ0QNXAcRRiUMGVHVQbLYt00eKOiUB9m2NtemRR mhoiNAntkdZLWmhnkwr+GJyvMk4YiKL5HmXoOqgaVrNIQejJt1iNe00HH8xFF7SxtBTN AxohkAUQzvXtWX201JJy9W9n5ph3GfHN5c3IQqs09I7MwAPZU8tKWT9fiuyJj128Ajoi TVX/Sbg/gtqgXU7toDN9ZpEJwd6AtvVyI+eYrFy4rq2OTSvwkhrT0rF5IFpQQ5Trnpp2 eViQ== X-Gm-Message-State: AOAM531PAZ2TL0zdF4vck7aLp0sldPFjDOHEne7K+nUiDm6ob0EefBtU 5hcqEnFh0KjOfS8pZoRT+WMWdg== X-Google-Smtp-Source: ABdhPJwEaQDf/oNyjrW67E9uvdaxm0yeBtQtn0qsc5+sZVNaVTHprnnAaiUlR/CS3sa0MkhiDQCGww== X-Received: by 2002:a17:903:22ca:b029:dc:9882:1f79 with SMTP id y10-20020a17090322cab02900dc98821f79mr7383369plg.33.1609996530149; Wed, 06 Jan 2021 21:15:30 -0800 (PST) Received: from localhost ([122.172.20.109]) by smtp.gmail.com with ESMTPSA id ds24sm3559263pjb.30.2021.01.06.21.15.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jan 2021 21:15:29 -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 V2 2/2] scripts: dtc: Build fdtoverlay and fdtdump tools Date: Thu, 7 Jan 2021 10:45:20 +0530 Message-Id: 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: linux-kbuild@vger.kernel.org We will start building overlays for platforms soon in the kernel and would need these tools going forward. Lets start building them. Signed-off-by: Viresh Kumar --- scripts/dtc/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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