From patchwork Mon Mar 8 10:45:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 395376 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1596452jai; Mon, 8 Mar 2021 02:46:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWiffc96r802X6AG9m0GnpDtJnyuaaLQ/VkzkFQtruB790lAFf/7TTYK90lNL+FvDMujkA X-Received: by 2002:aa7:dc4e:: with SMTP id g14mr21713486edu.114.1615200368202; Mon, 08 Mar 2021 02:46:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615200368; cv=none; d=google.com; s=arc-20160816; b=KP8rC45EllIgw/UgdREi/uxy51g2R9CmA1SPffdywwN235VYKAeAgS4XmAzYcyx2s1 TzOzuimjtacRR5tcLywJaASR8pCmeTUENu8Ddv0fay5pVxRl7EjXwZCdmeQ+Q3aNiUGT R68I+wpiniFZNrZYydkJhX3q8uw+5wj0g1ZDtjtcCxKgoTn7na2AMzH3Vq1V5bT7YJuv yAsFsxo1uZ4zx3PCU4SbA05NRLv5qUQkHXUPlqNmvuaPuf3DzZ9Vzvd8NGfjw4cFfXQw hZKRo5xuWgV5GsOIhxmahnm1l92KgDfE165SfBvD/GgUYTQp3iAnQWmm/gB3tgfDfC7I rGnQ== 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=/pTyVDjFKopMOn0gnz6T1wmQQU1rKBs2MJpuJdbdZfM=; b=jnBT16zLYe7NfnwdX9DUcJnQd+8YynseGt+OlvHmzxW5pvJrzDFDVO3mR3a4Oq2aeL TPa311Vt0d00xRVtkrfXnbabABHhIqxtSbOz4+ebr7Ky2phhWg+wwnKzZy8Cusl2cWew dcLuqEBJSC28fKOer+ieKHDG/7kVHQmSfEFyacNj3rD7lTvbIkYEiiN2L5YelQsw2pYl R8az2rGSwh03HO9QHnl7Ixytzfjc1qHtRxi1WFnCd/bJTcduKia7F/IezdEGehFLd/8L EU/mlaea/Ym+FEaX6AyIvC9kVB8bCizwhVLj6d0IP2ZcQBzMFOxsSdMJoDl/Un4vxvri 331Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kf3VuOaL; 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 kq25si6852973ejb.366.2021.03.08.02.46.08; Mon, 08 Mar 2021 02:46:08 -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=kf3VuOaL; 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 S231598AbhCHKpd (ORCPT + 6 others); Mon, 8 Mar 2021 05:45:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231534AbhCHKpS (ORCPT ); Mon, 8 Mar 2021 05:45:18 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78882C06174A for ; Mon, 8 Mar 2021 02:45:18 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id d8so4658661plg.10 for ; Mon, 08 Mar 2021 02:45:18 -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=/pTyVDjFKopMOn0gnz6T1wmQQU1rKBs2MJpuJdbdZfM=; b=kf3VuOaLkdhglu2lUqKc/d6Gi6P0vyrrE5mBCnW5RAitA2v8amHMv79uhQDzV3aU5K T+I1EjnIY7iU488Wjhctl0EVuBAYEUJeYQXQE7q7D8FjvTnnLyJijip4fh3EIvHU3Q4/ 2oXJCOboDdDqtvZgHC0UDzI/GTJv0l9wjMrFI76lwD9wMtRA+zJJPVWTMYI5Jssu4OuH tBC8AqmbF5X99AHRw74R6hDOHYKjZkLsq1swGnDkUhOlXoOShHC8CzHu3t9TPhWZglTg dgh70MPI65Nt6Fuq1rw0bYd/QkTzy+nt8wBuxuPENwzknJgZh1/8exECqV1PGmC1N5zm SrZQ== 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=/pTyVDjFKopMOn0gnz6T1wmQQU1rKBs2MJpuJdbdZfM=; b=F7f9I8vsfrsAZm031mPcp5XGkBaZ4G5C+TJPW0i4qhyDeM/iJoXhMCHWlRUvmV25Go peOnG/uPp5O5bFOrYllAao//0TMp7mNLuSIczzf7Fdf9foOwWN5VZ2WRPTECTC0AxnBn /IzY48X7mjZA04wn1qMF5855zi4PCZDLINx0SwlINw68Gr3wC/SB4CbOEzMGmxfTA1tX u5ymG1qGvKSBPonAedPRXfICbqOwnWMWbiZsaRj5o9ZMYDDEW4kYc3MBY9bEV7WWOUr0 1lUGsQr8hWl4fE1WatCSXes0sG2vMIzhMUUNRVSnIHKVAq5fD3b4Lf3BfP6EdP+w1guM yQQg== X-Gm-Message-State: AOAM532+eT8iKNAP9LADjNo1BYFTrx6KbEXDmAEsKNk1539B6jWnfp0n 5nloJ2AaWZWqSG3S4aVZm2txyg== X-Received: by 2002:a17:902:ed0a:b029:e4:3589:e4f9 with SMTP id b10-20020a170902ed0ab02900e43589e4f9mr20700124pld.36.1615200317978; Mon, 08 Mar 2021 02:45:17 -0800 (PST) Received: from localhost ([122.171.124.15]) by smtp.gmail.com with ESMTPSA id e63sm1528619pfe.208.2021.03.08.02.45.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Mar 2021 02:45:16 -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 V10 0/5] dt: Add fdtoverlay rule and statically build unittest Date: Mon, 8 Mar 2021 16:15:05 +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. 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