From patchwork Tue Jan 12 08:29:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 361149 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp159913jap; Tue, 12 Jan 2021 00:30:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJympC1ADkgnnGmSchSPdRzlwEeWq++lCDd1cgRwTqmgBy6kgOcbfOt/ExQPZW8AfqfQmkrS X-Received: by 2002:a05:6402:30ac:: with SMTP id df12mr2614796edb.175.1610440246857; Tue, 12 Jan 2021 00:30:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610440246; cv=none; d=google.com; s=arc-20160816; b=Qt3BxZVejRmFB3qV0sQpH82yDhBIZ9/S+i+2fNs3Oznei+5jh6sIuOO/mhculxiCRC OCn9LKew5G2H041lHGCT8ZwK80Q7I6ZB4cA/gb+yhHgyX7z3qFq/a2Pt0T3p+pbF+DZ2 /TLdxsT1PHogBqNzWRc0Tk0lsAHuWNYwon2AkMyvL3TnZteo9FkaH5XXsjuABhmRsZT6 zoJ/oyJYpn0Y+uqxdOnymYZCwBqcrPKpUBu9Hbur/AFyD/5zy4xq1VZYbQH71fP4caBx iGb9obcEiDxGFnDoqo4r8lrazu7Vm2DQxz6iu7axtE9uIYaEzGqSu4Ih/OZDEmA6AxfK VPfg== 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=R5AyTeEPJ4vRX5PQgPjGJ2ekXngPExcnmW5K8mA9ndI=; b=WNfxiQyv/MH4gztHnDt1kblDF7JX6GfZ6rELmFH1895CS72SLi/ZBhoyyEh+Y3gdM5 HFrSQomU588luWUp5nK9loBIH7R4R9cV0GmmWtKgx1RD0SISVbnSugqDNU+3qDsvoG3F fo2Po3odoieRDvJHTXQkZ4akhy3+XuaUDMd+WXn0tw4G4jGDWcHUK93UfojANqAItK0A PdwtqiyxS8NqI3hla3/FtS7B12Yy4tt/zMqi0H1eQS/HsEIvVitWAz6TxPfwKacYPfcr CE35bCdjfyohEVi3K0Zw6PoBOSOuSfoYW8C9TXJVnPMaENiJOeZD6L+Qnsc21Wh6mcDP sPFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HNBCP45u; 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 n8si808356eju.315.2021.01.12.00.30.46; Tue, 12 Jan 2021 00:30:46 -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=HNBCP45u; 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 S2405121AbhALIaa (ORCPT + 6 others); Tue, 12 Jan 2021 03:30:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731604AbhALIaa (ORCPT ); Tue, 12 Jan 2021 03:30:30 -0500 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5C67C0617A4 for ; Tue, 12 Jan 2021 00:29:15 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id h10so948294pfo.9 for ; Tue, 12 Jan 2021 00:29:15 -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=R5AyTeEPJ4vRX5PQgPjGJ2ekXngPExcnmW5K8mA9ndI=; b=HNBCP45uMqAb3GYX1SPufcwilF/tFsFtyhEhjE2evQiVwZHQVWsYY7AZB49MMLxX6t hXp28EO9FPODeKvgpZZz8PvkjlWAm+0vkLRcXaGORIxWkkDxKl5JXWsOZaLXvG2gg01n /joKtPPF29ImmwZTNpGV5sHM5GZDGw9SLNiSwg5/habd551C13NN0huKn39AP7ckdjFB DKexvzeSRf9iYBGpYbXiRFEXbfeh1UzfvZab0P1gBdLCSVqoQWjNFpDsFa6rPqYI+0w1 W+GyYmeAUickV3otbA6csurB1Cht5sncN58JPYGsRG0nLf+wTbeEf0tinMuwF3iKXpqu 3y6g== 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=R5AyTeEPJ4vRX5PQgPjGJ2ekXngPExcnmW5K8mA9ndI=; b=DA8X3KvMabWr3cBvniPq5l+IqeQa/op/SJB7sWhPMJ+/IDazV3dw+5mMYNiE6tK9M7 KHIbnMEm32AIcmlE7qvtTde5t9nfQ6rjqFWjQORwtej1g3uA9ykrlWhyOss5t8pgkz16 stWNimcNvE5ntvRCFR0yPF5bdESsz40oVbQ60b8yZ3aM0AJiUEQETxgha31k6KR2fpym pBVyL1MWgw5hyLPbZdL+Jya5INWE32PQxmJles9yf4+6NoHODoLTn2QaJEPhJCI6WxV8 h0fxTJPxeG9WT0ISnVd6jN2fqB0nSLdL/VKz5Z8xBIuEU7uzAFGzxQHF44o1NUFQgaic hESg== X-Gm-Message-State: AOAM533yA9GxII9gXcU3LtT/v52XdipRXvIyf/yICA6VMkYFw7pcUpfM kmdD/46tjCpshhUQxVDtc8Gg3g== X-Received: by 2002:a62:7b86:0:b029:19d:f996:44f3 with SMTP id w128-20020a627b860000b029019df99644f3mr3562196pfc.65.1610440155263; Tue, 12 Jan 2021 00:29:15 -0800 (PST) Received: from localhost ([122.172.85.111]) by smtp.gmail.com with ESMTPSA id i67sm2258873pfc.153.2021.01.12.00.29.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jan 2021 00:29:14 -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, Masahiro Yamada Subject: [PATCH V4 2/3] scripts: dtc: Build fdtoverlay tool Date: Tue, 12 Jan 2021 13:59:01 +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 fdtoverlay going forward. Lets start building it. The fdtoverlay program applies (or merges) one ore 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