From patchwork Fri Jan 22 10:50:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 368613 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp1399790jam; Fri, 22 Jan 2021 02:55:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUU53wTB+nFvbz1qF793P6kRQkcjzYjJY3KIa79v8bNtGcIq5FsYnKln/qRd4scaPilF2A X-Received: by 2002:a05:6402:1701:: with SMTP id y1mr2643421edu.251.1611312927430; Fri, 22 Jan 2021 02:55:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611312927; cv=none; d=google.com; s=arc-20160816; b=jbGt6VR1Pc+MzpiNl8T50KWns4Kt0b4Mqs2VcQxVNU6CLxOp9S/FNJBhIlbyxjHFJt RqI2r343XjuPsfDppWmydUjra90R2JBFOyKPAvTGNwc9d/Ry2QVQ+Oxqy0E/ss6rRRTo 6A1ei9mn6vekAQb1WyB6cNEAIXBzMCh3dQcp4Pzd4eW2Uhk2A1e95NT+8ETH9OUhVH1Y TlnAzrKR8c2F5SwbHtnavOpI1feUbCsVPld6bKEu8o5ofEm3GtvhcbuorlD7zwQi3rW4 CaXRC4Xe9Jzga+vQLSa+aaJtQNlTnvQrxklJOKuvKM0I7ShRS0IxlwCleNpaZQzutQNx KhTg== 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=xE6a8EuJCllXCJU6SbXhq5B0heEJhaKXHfCNTLyK9Z8kQ8fpZPFK4kG0+K9tCiGf2z nmQzD8Sq0wiYLv+qvDepxf2BOuMPgp4yZ/8BNfeMqhn+w9PZHamMqPRZAf3ghheNJKVO 1yOqusnPU+T1d11adGVsch97PWwE9kq3ZjFnPlwARuPaNc/R+bQoocKLEQ/tNiIuqUwS DyaXTwUz3mVxbaNpk3GXAnxtrGtFceMV5TmYsl3UwywG7k1IP+JnOr/Pal00DoyEFjgL 3NSrglbYTETqP5xFc8KpI+b2cELmUtWP542KZlb0I8kLtqZxrbtKPY0uZlTfKPU48Vyi ruAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=INxEBZOQ; 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 v1si3354421edt.548.2021.01.22.02.55.27; Fri, 22 Jan 2021 02:55:27 -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=INxEBZOQ; 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 S1727325AbhAVKws (ORCPT + 6 others); Fri, 22 Jan 2021 05:52:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727377AbhAVKvh (ORCPT ); Fri, 22 Jan 2021 05:51:37 -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 5DA29C0617A7 for ; Fri, 22 Jan 2021 02:51:05 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id b5so3525854pjl.0 for ; Fri, 22 Jan 2021 02:51:05 -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=INxEBZOQHpe111nBfLB+3bNd6+RN9DFzc2OWu9iizQXyYIdz4XMaOf/jxNFMJBgmms vosF1GBO+qfSFoc+neKr0WcW+8P6DXBVECICNv3zAZ5t+CpDFhrmDlLyNdDwEVlWoeUj MBw2Mj2SYZt+XxyiQ4EKRqiNY/7+gu0R5LBVgu1DT3Fb9YPU/yl05KjbPi+QNaZhmUII 9nN0rJfXEqKDTwtOSS1+Zwg0UhGxrFEoHNDaRkzRUdPH6g9hJcfSlo4Vd8plEC5Ty2AD LDFRixw/0gs70JkvlZuhGt+qO+BMV4hciyAWWj5zx3gbSC3mdAYLNo5L2kW4n1GovZG7 LmhA== 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=feTU9XxMEK5CL5uN3LxtAI7EnnT4QUKo3Cf0Ns7X9meNCe8TcmTvuNAmMd3Hek6Ew2 BUr2us71DHVAHTUCaFVRWNSS93FoAYEj8pXXc/mZxEugmhReRuuAFZmwVDkaqUYrWm1j dWoL/lknwt6byeGfKxCD3QptccYyqW9YTJz36NSR8G9ql969HpfuKxlMSeJDKERlFoFC WKBsYpgvOxxCecby9orXgqQTeGTPEigHYO0FurqrXu27EVYyLt7U/9JG1nihC234dS6f 9EV0Z557OSfhAr+GnMld2SrkPwNJVwvoi+bryPZxrLlxZW9tjUD6VQFoVnLsFJn89KpB kWmg== X-Gm-Message-State: AOAM532laHKDkFdxPM4f2/O2F7IozCKkF/K0CWmVR7x6K4fetRkUIF2E XSkFvSl2n6DlHpj/uehBiifSfIPn/m+z4A== X-Received: by 2002:a17:90b:1a87:: with SMTP id ng7mr4801788pjb.211.1611312664993; Fri, 22 Jan 2021 02:51:04 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id c189sm8682506pfb.175.2021.01.22.02.51.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jan 2021 02:51:04 -0800 (PST) From: Viresh Kumar To: Frank Rowand , Rob Herring , Pantelis Antoniou , Masahiro Yamada Cc: Viresh Kumar , Vincent Guittot , linux-kernel@vger.kernel.org, anmar.oueja@linaro.org, Bill Mills , David Gibson , devicetree@vger.kernel.org, Michal Marek Subject: [PATCH V6 2/6] scripts: dtc: Build fdtoverlay tool Date: Fri, 22 Jan 2021 16:20:32 +0530 Message-Id: <2dfec4acb1bfbab08b431908ace0a77cc3279434.1611312122.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