From patchwork Wed Jan 20 07:06:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 366961 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp204355jam; Tue, 19 Jan 2021 23:09:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzd2MnvI5rcn/0WCilHnAuGMlaPIhxnN9L28NC0UpIpvMYyDcBSi0qWIP6x7OKTw+HSo2gv X-Received: by 2002:a05:6402:134b:: with SMTP id y11mr6151859edw.88.1611126583084; Tue, 19 Jan 2021 23:09:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611126583; cv=none; d=google.com; s=arc-20160816; b=pTT2ljDo8A+CYAnmpaxvegCT0onIx6mwPyqRn5d2QG+eQ4bhNdDxDKvrcrJ2o5N0Cv pqaA8yUYLPBcyzyVD9auQKf6xGZJL5ROZuiGB3epirRg97E8aafIgtLtx/jzluYPTUjF bM3EGSZ3fTbFcAahLeUVFjNrNMPjXUgoxmC0Qbj64kUH46cwBRmM+C03jpdkxsOzjJb+ m89YaTXuIgWfkGGj4F8Scl/WAyXSNcSOClkY+UeCMnfTANFMq7j4bRAaxz9a/EnekxRd 6+t4KjwF15DZWolVbKWXjxAh2018HqnPWDta6u8Ha9I157+itf7EZKLQlc6fg3l4qSLB eGhg== 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=Mj8NkcRMiBcX8enUu0QdAFt4QvkXJ54u28VgjHZrnr8=; b=w4/PFRxz3gp4fp1DgK55L8nLAqnmgn1bazhT1vNy5X6d68HqbgF4BCC361uYOz7gF4 wWQ1ZK0m0QPpasIKyN1zduQQ6uWs0irt0Q9HktfN8MQpT4l1xGSSAwSd3yK28nRsF+/r I7679/J1Q+OWcWG+CbFg0iYjOdp4QWWtkU80dmgZscpew+nauGQuYfWr/DNuf/ZcZH5t bdrIz5yFYYAWZuBWvUnpFnujqXh0MdxQcAP1iNFSUfwX+EuZwU3rf7K0JrZsSm/PtRWb IbXsxdLyRhJ2d8/6Q1H5OSSQ+WNOTW7GmcXD0nYmeF36G1k2Dc0KD2ZmTbK86YVZo6nH tPEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RCNvvfTp; 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 hh2si401429ejb.627.2021.01.19.23.09.42; Tue, 19 Jan 2021 23:09:43 -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=RCNvvfTp; 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 S1728181AbhATHJH (ORCPT + 6 others); Wed, 20 Jan 2021 02:09:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728093AbhATHJC (ORCPT ); Wed, 20 Jan 2021 02:09:02 -0500 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46FDCC0613ED for ; Tue, 19 Jan 2021 23:07:46 -0800 (PST) Received: by mail-pg1-x52c.google.com with SMTP id c132so14616685pga.3 for ; Tue, 19 Jan 2021 23:07:46 -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=Mj8NkcRMiBcX8enUu0QdAFt4QvkXJ54u28VgjHZrnr8=; b=RCNvvfTpxIdN/nNDfGHT1EcShTnBb7HFMbpIVOvEPPfcuiAHYkrYTnuq7rBrspS2gc PvxboNcM9aHa/GE7yejLB/Wr4HMsWKHzLvfFXD99uuMRqI9BxCU64HAehQ5AKT2l8/Nv ZZKXO35K9jIvLuLIUp5Dx2a2EkE0h74ujyg4fUSQ6kKL0AG0t6RxaPsYO9/xFcG4iOn5 d7u1rUGnow9POp8IBN9rOisee6bfnSrT37a9ft/fPBF+WZt5/y2AgoEBtqZdQOkBzCED vXoDy2QWo/bo+ws6aq+xe4uSpEzJOdanRA7WpSt3wRL5BuR/4njVAq5Uc7inIIOwESt/ Ku7w== 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=Mj8NkcRMiBcX8enUu0QdAFt4QvkXJ54u28VgjHZrnr8=; b=RlSqY7FmgISVRiCz6UgHw4crHaCK7g7tMlDWLZGGv69DXZRIAR1e2VDOqs064lOiet F535BBSL9UNagqWojxs3/8zcaFe863dy2BiIDnQmK2LhN23OpYrNMFNJ6EknrB8Dv77a Az1vaKDv7QGqQU4atbWJM5mbUAobIqDlWTHJ5j57YZEVbjzoaaE+7daugIGznWTMmAvH ILaJYOXh1xZkJKZpS96UBFrL+S7aIo5M1jdtvfGuT8JTehv/HjIWeALoMejYlq7I0u8C abi31dXq02AiYNAF5u2a5hGFSj4MH3n4SA0cblCKJsZGAJ3KGC/+kh2iidnIpxHU+igt W9jA== X-Gm-Message-State: AOAM533l5/CYF8DLxSCpdI52kyfmfiI2qg7eYBUGT3dFvY0vDZojk/sr XE7DtdLIpdGs8mG6rFWJOcft+A== X-Received: by 2002:a05:6a00:8d4:b029:1b7:7ad9:4864 with SMTP id s20-20020a056a0008d4b02901b77ad94864mr7762488pfu.34.1611126465763; Tue, 19 Jan 2021 23:07:45 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id x81sm1188873pfc.46.2021.01.19.23.07.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jan 2021 23:07:45 -0800 (PST) From: Viresh Kumar To: Frank Rowand , Rob Herring , Pantelis Antoniou Cc: Viresh Kumar , Vincent Guittot , Masahiro Yamada , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, David Gibson , Bill Mills , anmar.oueja@linaro.org Subject: [PATCH V5 2/5] scripts: dtc: Build fdtoverlay tool Date: Wed, 20 Jan 2021 12:36:44 +0530 Message-Id: <2dfec4acb1bfbab08b431908ace0a77cc3279434.1611124778.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 fdtoverlay going forward. Lets start building it. The fdtoverlay program applies (or merges) one or more overlay dtb blobs to a base dtb blob. The kernel build system would later use fdtoverlay to generate the overlaid blobs based on platform specific configurations. Signed-off-by: Viresh Kumar --- scripts/dtc/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.25.0.rc1.19.g042ed3e048af diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile index 4852bf44e913..5f19386a49eb 100644 --- a/scripts/dtc/Makefile +++ b/scripts/dtc/Makefile @@ -1,13 +1,17 @@ # SPDX-License-Identifier: GPL-2.0 # scripts/dtc makefile -hostprogs-always-$(CONFIG_DTC) += dtc +hostprogs-always-$(CONFIG_DTC) += dtc 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 +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/,$(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