Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2860467pxb; Fri, 12 Feb 2021 03:21:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJws9fMmK4CyDgJwiVx6BKQBFcGm6+q2MQYtUyIJmekSAC/GUAnvVLh9QIY/aCC/n1YjpXdK X-Received: by 2002:a17:906:1457:: with SMTP id q23mr696437ejc.43.1613128900251; Fri, 12 Feb 2021 03:21:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613128900; cv=none; d=google.com; s=arc-20160816; b=IiGPtgvbalvQTusFYkHs6NZ/mSbZ/KU4Qms5uyUb+dgfUFQ7ebEN6x/GT6LbZFWHnF W81AGu3KLqzQdKKTzWb4C58vqxvfEk0iEsKah7souR1djPQkIUcwRLDqJTT4rYnV4KpG 6P4DMPxZ6GtZpUUVgTR5oh78cpD3sHr/JfwSPLPsYNzerJ8imlRdCvZO3btiqKBQkomp TJ2nMOpcLrSlFt3CRCmOUL4QLe8kIY7Xghsp77RjdHVNQB3TopT5U/idY1bWCd/Emebh Hoq5obQbD2XcUqTkErcYDNNZWES3rxQsP6YwTuvxh9+XxWR0TfYh2hgp0fz9RxkRkGtX 4+KA== 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=DiH+0nsh0TFSeG09Dd5i67FW61zv+WlXR+4na8usw8M=; b=kj6B5T7QNbeMSxDnuihKY19WJ17DLQdvB9qtFdSeUO/t6/yGWDaniwI6fiMiOAxTBZ Pqa6dZBSqiU94HO7zxzOYTO4pkN6r1G/yEeyV/S84LzyEqP2JXHS0qKfnoR7ddAuvhqs XFpKSOwu+wsJ+uWD6cxFDFmca0ap78lliMjSXJnao3KhdiMI6x54Vpq7om/5tVgJhp8n Zx/gPqA6gQOcO5rKjRyZ/3+0CfHnlAnvWSFv6127du/IuFtLTu/scaGiwrzNxbMwdJ6Q S5x43IEwyO//vfCy6qOAwraF9ugxOhUlrYjn7+GM7m3nRyrFfKuWv4h2Kjz7zDaaJOe/ q0nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dstpR3OZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 jg16si5843710ejc.45.2021.02.12.03.21.17; Fri, 12 Feb 2021 03:21:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=dstpR3OZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S230119AbhBLLTb (ORCPT + 99 others); Fri, 12 Feb 2021 06:19:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbhBLLTZ (ORCPT ); Fri, 12 Feb 2021 06:19:25 -0500 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D4D9C061756 for ; Fri, 12 Feb 2021 03:18:45 -0800 (PST) Received: by mail-pg1-x52b.google.com with SMTP id o7so6027905pgl.1 for ; Fri, 12 Feb 2021 03:18:45 -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=DiH+0nsh0TFSeG09Dd5i67FW61zv+WlXR+4na8usw8M=; b=dstpR3OZccsYNKmvZ/hTIXfK8fOejY/E98zi84c90kxjsQ7EBLijoTbCmTkCmuIBbF X+GGSytGTFlSjU9UuYEaOx6sj8/sNka6gT7pjs0ik1gb1G4WQrFnc2cwFTLlGm4knwUf iCowTv+Qqv7XL1zF9ewVIiSGF/HehKlmYlUbn69m7gMmfYqD5lj8KfXZY4msYJ4YA9jl cP1/8j0xXtGmG1/siNeOUXeW8pSi3cZ6cFzrdv7/4XVBaqUpKs/VVx86hckfpPMcW6Q/ q78C7ZQNUYupCAIzhGcEF9cKSVFEMlruom/bQNjKl40UrAaCN9OToOg80gfWrc0k/GvU c1eA== 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=DiH+0nsh0TFSeG09Dd5i67FW61zv+WlXR+4na8usw8M=; b=qdMohAMiUFhslJb3HUEiUgXWAIylDajsgAJY2OqQgRnTI9Dui/omu8VZYhxd/mpyd/ 3l0ekPhhkDDKU8O5ykKeWjmOyH21uIxle79r4RgJCdgi4c2fvCzllKxDY2E1+mcbnoMZ NWw1QYrvTxgNagllEw4eAuR5OvDXT9/Qm5lM9DT+lBg4wW9xtjzkCPxA4Zgs8EH7mG21 3mol2DpxlMu/HFz9PCrs8VAbsyiklosxkgBwOLSTiXGeXnDDCDSHZqVQMIuJjyPR/yl7 6tGZsE3bvTo3hfijGWBuOXcQGoJoa0pyK5fNa+hsRB/JFNmdG+5Zg7SWcQad0w7WPd+z Fw2g== X-Gm-Message-State: AOAM531ohztvnvPQCfPR0NGq8iByvpKGpuDe3OL219F9MC2ni1iJD9KY MXSa0N7MR3Cbmzy4cYUQMybrnQ== X-Received: by 2002:a62:1bc9:0:b029:1e6:3492:2d88 with SMTP id b192-20020a621bc90000b02901e634922d88mr2540051pfb.72.1613128724860; Fri, 12 Feb 2021 03:18:44 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id v31sm9092762pgl.76.2021.02.12.03.18.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Feb 2021 03:18:44 -0800 (PST) From: Viresh Kumar To: Frank Rowand , Rob Herring , Pantelis Antoniou , Masahiro Yamada , Michal Marek Cc: Viresh Kumar , Vincent Guittot , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, anmar.oueja@linaro.org, Bill Mills , David Gibson , devicetree@vger.kernel.org, linux-kbuild@vger.kernel.org, Geert Uytterhoeven , Michal Simek , Rob Herring Subject: [PATCH V8 0/4] dt: Add fdtoverlay rule and statically build unittest Date: Fri, 12 Feb 2021 16:48:34 +0530 Message-Id: X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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. 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 | 18 ++-- .../of/unittest-data/testcases_common.dtsi | 19 ++++ .../of/unittest-data/tests-interrupts.dtsi | 7 -- scripts/Makefile.lib | 29 +++++- 9 files changed, 200 insertions(+), 112 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 -- 2.25.0.rc1.19.g042ed3e048af