From patchwork Wed Mar 3 04:36:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 392630 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5608964jap; Wed, 3 Mar 2021 17:48:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBWy5Jy0VOoOgj21oCtg+jCn4IAVgP6ghGvKSkN4LHlyDCLl/Hydgr1w6eR1aTT/Buj1uM X-Received: by 2002:a50:d307:: with SMTP id g7mr1912208edh.204.1614822485443; Wed, 03 Mar 2021 17:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614822485; cv=none; d=google.com; s=arc-20160816; b=aEFxRBgwodHcjqIDjTVRFP02JgKdHd8oBin0NGQTBfdK2lNllc3R0eOZQ1y3fUwN+h 1kIcAkH7qETCafs56/7QdBqw3E47lWuDc/2NdKBVAT6yLlln0jay3XzS17prkkQpmZjU ZOysoNNh4FklF0kQjcjl0QkMtXZD9oohXDJxn1w7NSy9z2Im6ogkpevvP/hqGAlazn5T BQQLo+LACwVI0pyy8P1n0L3WcbwJICEtcLjHzZwcAW1sehDB7SUvsAoDlvyOXCEMoZQI htQn3r6u2t6eUZsJ3Bq9CNio07P/ZCn+H0QW3oP6t1Lvaz619Oy3cCxmxMjuicUwL0Yw dmyg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+K+JVsQKi7Mi6myrR3iz/PWgj0Awrh+5TFM40EBt8aY=; b=hZolINB+iq4e95avp7pFa4SOl6Ex1nXwSe19ypmwQf617k8hCyUkBUcobnOPjdzpXr bIZpMrilgn1nMVcjwlMxyO1LoV/5UgZ6CVhIuy/ugVrMpBrfMgYwUyLoj15KByoX3j4q tM7OxpVnE4UkAFTC0IJ+MmC8ZF/Ug8OTgFoP9VmYlD3lNyeQwn42pjtaS/qlKJnX6Ikt tIRBj47+wz15yh413+j4V57bHmZ7Fd4wMxhZSjXXont0m/FP6UD8SPm7mwJWsEYMqHOZ DpP/yf4xLIjypPwU9wOdFl8TX7SSQUR/rCPqUiQCd1axPhkejc0iyyW+PWLSDZ2oXZF0 UytA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M5+mLUF5; 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 p17si16189393ejd.307.2021.03.03.17.48.04; Wed, 03 Mar 2021 17:48:05 -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=M5+mLUF5; 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 S239889AbhCCSXK (ORCPT + 6 others); Wed, 3 Mar 2021 13:23:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352966AbhCCEjf (ORCPT ); Tue, 2 Mar 2021 23:39:35 -0500 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A14DCC061356 for ; Tue, 2 Mar 2021 20:36:33 -0800 (PST) Received: by mail-pg1-x52d.google.com with SMTP id n10so15392804pgl.10 for ; Tue, 02 Mar 2021 20:36:33 -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:mime-version :content-transfer-encoding; bh=+K+JVsQKi7Mi6myrR3iz/PWgj0Awrh+5TFM40EBt8aY=; b=M5+mLUF5aSMVrz5Uiw8Zit0bKYxSc1fkgnLsFbYga2jGJJuQ02RiXfOY5vCccAKxgx M19F8JwGyK62peIgmtye78cbK1nLh6cWGD6epC0B8TvecV8mdWVSAD+HVf5CUKTLXYKy 9B6MPonsDGw5gG4FFbO55y1nXkYpuX9uCh7JBKQwewT+QgUuHCj+VEN5YzWVkBj6K+Ij Zmz8OsTiKNdKQK5C4xBKSM/XRVnzPclfFqrMBnlXddvLxaPBGxy3X3dbc5Sfv10Z7O51 pNP3nERW6krWBQL6P5ioH5/I509foVdJkC7CFSQhlvQ15DjAcW6Pgu3w+pb+l4useM9m qAbw== 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:mime-version :content-transfer-encoding; bh=+K+JVsQKi7Mi6myrR3iz/PWgj0Awrh+5TFM40EBt8aY=; b=IQ38crHeAp7bUR0QOANVr+Ov6BQPN+zIxcQdIhEVB51n3k2NeBfh8NbfonpMsP3XK4 YG0z5ORNxyRxgjdLKeDpbBD//bZN+Slma9zKHKsLitgs+lC5PDL+8WwlHO5r3r451j1G KZVZCB1RZbYun730zbew08FQ1ZLHnXN07LNDKXmH4g48nqpTz7qS+24Smiy3tGeOW02r bJraIdOZnK5dCyWQGHv2q1CBk62VLpZBDg/6xsXoTqZIcBy8kWFcXO/s5vnRiTLPE7z6 486vDh73dRU3CIdrSA1d/UKRgpNdqcIfREGomuTD9vAFMkfZqCnVu2ff4VSYAPI/XISe C/Tg== X-Gm-Message-State: AOAM531Azs9EMp7o/BBPohsH312k35ZjKUDrgVaLzY0DYq0DrRVxaJdw 5O5UpqC0hevCGV2alZvfXPTf6A== X-Received: by 2002:a65:480c:: with SMTP id h12mr21020612pgs.169.1614746193045; Tue, 02 Mar 2021 20:36:33 -0800 (PST) Received: from localhost ([122.171.124.15]) by smtp.gmail.com with ESMTPSA id x9sm5004567pjp.29.2021.03.02.20.36.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Mar 2021 20:36:32 -0800 (PST) From: Viresh Kumar To: Masahiro Yamada , Frank Rowand , Michal Marek , Rob Herring Cc: Viresh Kumar , Vincent Guittot , David Gibson , Michal Simek , Geert Uytterhoeven , anmar.oueja@linaro.org, Bill Mills , devicetree@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: [PATCH V9 0/4] dt: Add fdtoverlay rule and statically build unittest Date: Wed, 3 Mar 2021 10:06:16 +0530 Message-Id: X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi, This patchset adds a generic rule for applying overlays using fdtoverlay tool and then updates unittests to get built statically using the same. V8->V9: - Added some comment in patch 3/4 based on Frank's suggestions. V7->V8: - Patch 1 is new. - Platforms need to use dtb-y += foo.dtb instead of overlay-y += foo.dtb. - Use multi_depend instead of .SECONDEXPANSION. - Use dtb-y for unittest instead of overlay-y. - Rename the commented dtb filess in unittest Makefile as .dtbo. - Improved Makefile code (I am learning a lot every day :) V6->V7: - Dropped the first 4 patches, already merged. - Patch 1/3 is new, suggested by Rob and slightly modified by me. - Adapt Patch 3/3 to the new rule and name the overlay dtbs as .dtbo. -- Viresh Rob Herring (1): kbuild: Add generic rule to apply fdtoverlay Viresh Kumar (3): kbuild: Simplify builds with CONFIG_OF_ALL_DTBS of: unittest: Create overlay_common.dtsi and testcases_common.dtsi of: unittest: Statically apply overlays using fdtoverlay drivers/of/unittest-data/Makefile | 50 ++++++++++ drivers/of/unittest-data/overlay_base.dts | 90 +----------------- drivers/of/unittest-data/overlay_common.dtsi | 91 +++++++++++++++++++ drivers/of/unittest-data/static_base_1.dts | 4 + drivers/of/unittest-data/static_base_2.dts | 4 + drivers/of/unittest-data/testcases.dts | 23 ++--- .../of/unittest-data/testcases_common.dtsi | 19 ++++ .../of/unittest-data/tests-interrupts.dtsi | 11 +-- scripts/Makefile.lib | 29 +++++- 9 files changed, 210 insertions(+), 111 deletions(-) create mode 100644 drivers/of/unittest-data/overlay_common.dtsi create mode 100644 drivers/of/unittest-data/static_base_1.dts create mode 100644 drivers/of/unittest-data/static_base_2.dts create mode 100644 drivers/of/unittest-data/testcases_common.dtsi base-commit: fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 -- 2.25.0.rc1.19.g042ed3e048af