From patchwork Fri Jan 29 07:24:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 373280 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp1953329jam; Thu, 28 Jan 2021 23:29:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcgEdW4ybQ6pQkB1DhsXLFOUn+wE1kqo5OsdjyauFxDzsWlzCAsrLZZMj+AZmKnxsAXSr1 X-Received: by 2002:a17:906:b41:: with SMTP id v1mr3243510ejg.277.1611905375237; Thu, 28 Jan 2021 23:29:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611905375; cv=none; d=google.com; s=arc-20160816; b=0UVt90tB6lrelm8EoZ0KeuTCoc0woGifvBKYu3mE521e4T9yb7cl08hlnHOuLjuPLE LCyl88gqVKknf60Li5Pcas5P3SD+PNxetcjBv4RFLQv/7a4YhaGR/l+CnSaE1QDX2u03 nEnxi796C5E2xpnL4jQEs88irOtgflmqVIXnIQ89ZXSliYDBA7uSS8ylFrRWTqfZRBid MNVFq5e8cc5oCpTH70ODjgODODMg0IibeLfLUVqYiIMJ9HZ/V6Z7s24zan7pGBp4xfJB fj0RJZy1qRe86cjRi98/NUHiYTCXlM7/dsWmbtnuikXSdi522rb09X2EzMYEIQGbjGNb DOoA== 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=OeN9gKBBM/q6ukcOgQJMkKFDzkcULPM9HldUw032FnY=; b=HtadF0twRet5VI+L1a8/k+morEXh2yeK1A3WI45zZyTIK8n3LG7oPDZVTjVxuUBbm+ O6qtyH0a8UXhAa2FGOueRCs+CRgsJd4ENK8MMMuvvjetBHJkSbDoHLjGoSdRnSxC8+L/ tSxmmmZ0P5yCt8Li+3Kifwy3Kr2EjiPNrEsm2TCtluwCRodqfCqrzK9fpe4PNdehDyq/ 9EJ4CQJ+73JLIFerjVMdFaAVzLUVOLNjLPWiB/ILci4aljHchsSv519k19qY6/5TOUXN RKa9MsWDRt36W5tKOLF0xQQuINN8qP3fTC76aud7BUy4VfO9pES5+zE5UeU9o/2reDoc iqhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pI+dfoj3; 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 v5si4670712eda.107.2021.01.28.23.29.35; Thu, 28 Jan 2021 23:29:35 -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=pI+dfoj3; 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 S232221AbhA2H2y (ORCPT + 6 others); Fri, 29 Jan 2021 02:28:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231981AbhA2H2x (ORCPT ); Fri, 29 Jan 2021 02:28:53 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42CB1C0613ED for ; Thu, 28 Jan 2021 23:27:39 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id b17so4772379plz.6 for ; Thu, 28 Jan 2021 23:27:39 -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=OeN9gKBBM/q6ukcOgQJMkKFDzkcULPM9HldUw032FnY=; b=pI+dfoj3vbIoNcfLsrCmQQebn2SGwolZ8tjzCiTRGKAwwDE5Xs45A2wFFQF12m+Eus 7ohAKzLK85IDFK5UPhdtE2GqbwR78IpQf6FKcTh8sCU/zQdcsiMA0byPRsjXRdDI/zOA 7yCuxaOuEF1Siu7f4Z7T6+bt+fZYZIIOwGIGfItJrRg5B3purFjXVcRVp1t/DuwKRhlM 1HSj3MGNSd7Rw9p94fr0QGkDpY9ZgA5C/45kdd0fQ5copfwm/uxGKN1WJqd6wxrboaj2 tJLzLKDYqMGTbshdtS6cjx0PbdjhSyZReDp3xjjvFi2cZEKVLsKs6wHgggD8dVnQEZl2 qZ+A== 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=OeN9gKBBM/q6ukcOgQJMkKFDzkcULPM9HldUw032FnY=; b=he9wDkSA56StplC7GELWIxOkHZicnN+uYzYkVjD8sBr3Ozv29taoJLUm/bFuBvlsYq yXIIYKdlXErVhyskqagl66r9e9aVfwt61DicPfcjHCbECb7tD3Fsr2UFkMMMmoXKOVph /16UIwEDF6GbJvhmjwQOUHw0LPAof7FbEMYzn6/F8LBQhpLGnsviXOLsWgKCmpQrfGtB bsemQnXzw57F1fia1flM7fLx2qQCR8ZZpD0lW2sD3WE1kKzUsCYALpb5zOaOjbJLdYCY OPLvEfIkoT1oARKn79kq4sonmIT/WmfkTzY7i9fu6x7UwStnZar+b57hmxIRZ8pvexgW ml/w== X-Gm-Message-State: AOAM531xkIrNXPqUn0qW2wRnycwgEXoOFY5zYSDH2r5nMiCE14xRM9dX 3HsGUKrs8Om/VC55AcovMxmzQQ== X-Received: by 2002:a17:902:744b:b029:e1:2169:6272 with SMTP id e11-20020a170902744bb02900e121696272mr1847825plt.35.1611905258844; Thu, 28 Jan 2021 23:27:38 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id m4sm8135093pfa.53.2021.01.28.23.27.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jan 2021 23:27:38 -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 V7 2/6] scripts: dtc: Build fdtoverlay tool Date: Fri, 29 Jan 2021 12:54:06 +0530 Message-Id: <4a201dea3ba11a00cab7e936dfc1140dac1a1ae3.1611904394.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 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 | 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..c8c21e0f2531 100644 --- a/scripts/dtc/Makefile +++ b/scripts/dtc/Makefile @@ -1,13 +1,19 @@ # 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 +# The upstream project builds libfdt as a separate library. We are choosing to +# instead directly link the libfdt object files into fdtoverlay. +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