From patchwork Wed Mar 10 05:35:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 396680 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp97997jai; Tue, 9 Mar 2021 21:36:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzr0jzY4dWXaM79ad/rcqtLEdoTJHT0eUAZOFC0YSd+01fM+0xX6fEM+dOxYwEXVIRR0xMO X-Received: by 2002:a17:906:2b9a:: with SMTP id m26mr1698144ejg.526.1615354593704; Tue, 09 Mar 2021 21:36:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615354593; cv=none; d=google.com; s=arc-20160816; b=DJ2sbw2iF6RdDXgIjp/eg4zJDGyxDgI+V45C73WmpM5Q6QuhMFjJ8PwK3ppqSk+8Fl loEFCDbL/au1SHVfu35YviFZyl0CeZZuh10z57kxyq1WEP9lEetsx8pRyopxfZQn1dB4 BU47ndZ7ohsbuQtwP2JS2T3M0JT9K/WZMi5xOCmvO+7YLL8gzlZs9K4jaQAMr1blNTxM zvOnZwW/SAwGHaoXQboGVDe8TLJojzgKcgWMRVXft3EeRVSudowcxgnFRHmZa7IWC3hQ /iE30EZofv3tLdmGPPjgYrEPUIYtom/etQ3edG04V+f8dNuGQFI4eXRWahj8fPKogQSA 7d2g== 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=nRnrFT1YqPUDIU197TcM7AC/4HppNFNzx22dG+q8QeY=; b=r3z88fJkwlVXMCQenhV5/rHlFa3ZajQ4/mC9p7F4kPa4EwcYSwUn4k9ThOune/+DqB JtXRfHnalV0IJa1sM1OuJojXVHIBjeD4UgBp3K4gwsApmzJnqd5wJ7NNpczXnFqEMFW9 UAELEB4LAepewqiKnWdR9DePDW6ZHOxTfdxNHx3jRxmegQ2hrEU/78VYyB7h0Kwienih AauVAQH6WagJMzPj8UfnjtvOB0aVDXQhBu27xCFEC+hznkCMaUUL50zU6AfmijK5zhmr hkjRdmKK2Gj27/hYh84+KgGGtXNiYa+E3iWHi2hGJHZmpKpGIhdCppMMjWZCP+lqTruT yw7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S4VdKYpU; 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 x21si11161859ejb.180.2021.03.09.21.36.33; Tue, 09 Mar 2021 21:36:33 -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=S4VdKYpU; 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 S232176AbhCJFgA (ORCPT + 6 others); Wed, 10 Mar 2021 00:36:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231140AbhCJFfi (ORCPT ); Wed, 10 Mar 2021 00:35:38 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3CCEC061761 for ; Tue, 9 Mar 2021 21:35:38 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id nh23-20020a17090b3657b02900c0d5e235a8so6853769pjb.0 for ; Tue, 09 Mar 2021 21:35:38 -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=nRnrFT1YqPUDIU197TcM7AC/4HppNFNzx22dG+q8QeY=; b=S4VdKYpUiEI+r7VKqKpEIKrURY7IxhIHX49wiiI/D+uaGx/cbdk0XsI4UPYb7Ck44J 0AmNBZwOLQtaeTisMvie9M7XprhLsWDG4o4qRo+7SXfzfrJPczvbPuShCeJC4eIFPYQY ssGitZ9l6VbhUE+wrtGqIxNBNwaFHUp3/IEt4n3Xxq8kKKzYiX6cw7CAC1696+Y0yCsX VK+Kuzy9lLXsj/RFQ6hT6kCqIiLf00lLnzT373XuI+/PT0plB0sq2XwgZLZeFrxcr5Us x1V9XcyytmikZ4g/arR6TDg1ba5e9bDgaXuDNwg1bOVap8zCwZJ9Xift/CqCv7vTbM3d LBjQ== 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=nRnrFT1YqPUDIU197TcM7AC/4HppNFNzx22dG+q8QeY=; b=d/Rf/V/X9ForqOosl6DB35LZ0/gBiI1PYrHp2QwfEmWptLwveWLBcmK9XiKTs/3+tB 1cz5WBByMRar8DFM8w3iMosR6nsV4nx7t2nLVfOdXz2UQoUowu2H+vlD2RASx1LJHPoY WIHidn8n5S60vOE4sEPEHTJa1uy59Lo11VI99MWxhY5oFaV8Ts6U8kgfBXhcOdHJ0ZK0 Fm1ZhBmAD/0PIqrM0vJDV2GKBP6lqoRIL6EF9oYnKEDJfVwM7OqIanTJ5wh20C1E6S5D X8WAApDTDukZx2Rmt0eQ9DeORnGYOu/ktSne27p4QB222uJxqhjvVLVVk8J6X/Ai1S7U mVTg== X-Gm-Message-State: AOAM530M3+Laxxht3GB3eOBLoR2Khvm/B8y71tSOiKzF0cgMoZKZSkHr eQHAmWZeG0apNQosbJRC7Uf/Pg== X-Received: by 2002:a17:90b:f15:: with SMTP id br21mr1777298pjb.234.1615354538081; Tue, 09 Mar 2021 21:35:38 -0800 (PST) Received: from localhost ([122.171.124.15]) by smtp.gmail.com with ESMTPSA id f19sm15222229pgl.49.2021.03.09.21.35.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Mar 2021 21:35:37 -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, Geert Uytterhoeven , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: [PATCH V11 0/5] dt: Add fdtoverlay rule and statically build unittest Date: Wed, 10 Mar 2021 11:05:28 +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. V10->V11: - Update patch 4/5 to fix checkpatch warning on spaces and tabs. - Added Acked-by from Masahiro for patch 2/5. V9->V10: - Add a new patch to allow .dtso files. - Update 2/5 to be more efficient and also generate symbols for base files automatically. - No need to add lines like DTC_FLAGS_foo_base += -@ in patch 5/5. - Add Ack by Masahiro for 1/5. 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 (4): kbuild: Simplify builds with CONFIG_OF_ALL_DTBS kbuild: Allow .dtso format for overlay source files of: unittest: Create overlay_common.dtsi and testcases_common.dtsi of: unittest: Statically apply overlays using fdtoverlay drivers/of/unittest-data/Makefile | 48 ++++++++++ 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 | 40 ++++++-- 9 files changed, 218 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 base-commit: a38fd8748464831584a19438cbb3082b5a2dab15 -- 2.25.0.rc1.19.g042ed3e048af Reviewed-by: Frank Rowand Tested-by: Frank Rowand