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: 358155 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp195558jai; Wed, 6 Jan 2021 21:16:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxESuOy9hypwmKAYjgQ0JD9pGEl3mOHpDlXIQ6O0mSJUTTWFz6d3iM0uw1iAwcw49sc++pE X-Received: by 2002:aa7:d999:: with SMTP id u25mr332635eds.297.1609996612956; Wed, 06 Jan 2021 21:16:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609996612; cv=none; d=google.com; s=arc-20160816; b=XF7qmbkuHdr0S1D9SUFipnxucgUTAz103Sfi7oJjIzGPTX2iV1aYAJuY4UoNStMl94 1rmaAfxtYRw+yg4HoepaOL96fVfoKXgWzagosUv8Pu8pfmhrsxAYj5XuK31crG4aEHNT 4Vvx3ez7DrrEl+SdnoAgRwwHxwScZJiprlX8VzoarpmXzngUGJ60EznJkDQwtbtKNmCm SfY2hjnhE1XuInvJXD1wlcbq9daMPYYvn04dkVhd8dqgv6U4UebwP3jm9iSKGatNEUYB /I/9E9/zWe1iOgZ1Q+tCmaz7Zivfp+ihS3ITn4t9Azf45p8FIFbA9BLMzU0aXQpaOKfI Poig== 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=veLiPLptQPatfIKZ55m17NpOdTlfTsyV4zGOGB1KjD0=; b=iaVTXNCSaefAHMHEWCzlYhB3+SG0rTzNFtrxOilZbzlG/9RaJ548+XDtf7fhv4h7du J13pvkhZugXfc61wzu/3OeY4BkDOLk7dhcAw6lQiv8OdWnht5jtQ1s6wvo926mbq8iwh 67kdtfCxeIvCrPPqh6ZEkj6Ke2MhFB+Q0OfCA5Jfx6wmgxr7NLCy6RA4ndyOaFKr+nRz qfRdtvGOmaE6XD4FYxXbm5ca6oOkE2i+aetwOYrguLBU7T2bX9OxmKzSZvVh3tiI6hjG Zwa3JGzv2G7zMqpr4yuyx+gSt9SDv5St2LX5LXlX2sdXLOaezFjimc9Nx4KsMLbGG4ak UAPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GZTm+0fK; 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 l11si1875514ejx.27.2021.01.06.21.16.52; Wed, 06 Jan 2021 21:16:52 -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=GZTm+0fK; 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 S1726489AbhAGFQO (ORCPT + 6 others); Thu, 7 Jan 2021 00:16:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbhAGFQN (ORCPT ); Thu, 7 Jan 2021 00:16:13 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89E75C0612F6 for ; Wed, 6 Jan 2021 21:15:30 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id q4so2890143plr.7 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=c14J/g78oRVG6tCmNnf9gLajb7mpSg18ufTIQGfvfNW+Ca8SPoB2xm/7sJ03Wr1cPT aIO/PeDSF070alKlaUgtWSF8VCdQi9TFoo3YJLV9CYze5BxKNCaM6/YOeCwAtKD0Ch/J 2Ln212GWP7ZIaAIfvpTrjugkIOKTSttGz2Ns2qRhc+r1KJLhRPZHBFrphIyT6xQS8Ec0 73Us6XLM+JKW0E8+z/VwLxx5EQRYS/yKJ3N6KK+SfHBZZJe9Peay+e8UvQEQ7RYknsWT l97jRH1GXtTzUaKRKoks/ZMJk+RmFmmVtANcs4gPO1HLJcXjwzRcqSM2CwuvSl8NsiBw r0AQ== X-Gm-Message-State: AOAM53045xE537vPUz4kx5OUSoGOulLimuYZUQCjw5naDTSEUMFh3qel 7T6iC1cfYvV72ewjviQmGrTF7g== 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: devicetree@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(-) -- 2.25.0.rc1.19.g042ed3e048af 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