From patchwork Fri Feb 12 11:18:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 381794 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2846738jah; Fri, 12 Feb 2021 03:20:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrgHBeu32unr3buktXOIMtv6TBl70go+xJ62OPVUQr6fJnh61dl/MFYrOny333lL0JTiuv X-Received: by 2002:aa7:c751:: with SMTP id c17mr2761487eds.324.1613128824184; Fri, 12 Feb 2021 03:20:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613128824; cv=none; d=google.com; s=arc-20160816; b=wyhhze3tjlHqeNjXs8chmWtxrv/scaJdgdUYqSObaey9+aF3rbH4P7FMxuDCetp6+O Gwec3+z+bkiqW6OA52HwbRRka+6xIHKPpII7pLsrZwPZvvbStQz1Yt2yMokWSs3319PB 6tiR+q8B28fdIPt+1pYFu8uGvwCoTJ6rlCpJUL7d75uZYufgeFInc65E4l1OhITbwtoO 8s3nb2YSUDFX0RAaXtZdlHfWBEjhioiSTWdYwAKGfMqrsVVyzceFYyZS1vKwc9W/bGDG kMe0nk0kwXGwRwUUhSGewFrz8JQo2u6kGFEb19yJwVpHq4VfxyAYqPq/8oFD+h6ND0uf 7abg== 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=nSy82LLRHwFDf68dMnqnrRGGix4aKbG2TPUAm0dPDg5Eob7vpp/EoyDRZEtAdKqPxZ a4hcScBznz9dqljCPqxObHyQYMjoD7YyTVJfymMgTbdn7zZXilAdWg4ZAhxERWKTMzP6 nzxL23tkIRT92ETUtaDZjdBoSDgRKJhiA9BWDw3AxEdg7ZULMBNw72duzWeCjDmJAnZ1 SU50dRAgt57AbSgFwi6sEJsC7EALRDXjP3T35MNyzEZoGslDplHA3l8HrpTA9XxSpiIW aAmtGQiyWFHgY8bw6QRT2Bp7yP0EmXZG0k58iGyE/nsrFi8Ah6Ovq6SPu1jnwzE9jaxv Z8sw== 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 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 j24si5885999edr.101.2021.02.12.03.20.24; Fri, 12 Feb 2021 03:20:24 -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=dstpR3OZ; 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 S229907AbhBLLT3 (ORCPT + 6 others); Fri, 12 Feb 2021 06:19:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229940AbhBLLTZ (ORCPT ); Fri, 12 Feb 2021 06:19:25 -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 4E6FCC0613D6 for ; Fri, 12 Feb 2021 03:18:45 -0800 (PST) Received: by mail-pg1-x52d.google.com with SMTP id t26so6021854pgv.3 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=Ra6OL31EHLlSupKHJdOUsJPv4wyng101Lxn5PoespnVs0caFIRdwkZ5esaqJuCGo0H Hhd2tuCIVUnk/8Drog5yrEL3R4d3xFFrKawZfz98ZWBehsPm0zcWqe7QnFVIb1wv2Qq3 UpSQHBef52tV/YaChw6vW5tRtqpCkhH/ZkrdmKnj9VZmcJZNhoqgQvaUsJJ1sjzFHYUk i2Qvz3cafka7QL/GyH+R72cG09jrRH37tDlA1ODCsyRAxIXuBHAlXNel//CLJvqgTnTM KEDoPgEL7U9JkXCtbbeyrXUUeNfhx3jLkG138MwX9jWlt8jvwGa1nGnhVoeFzm1Fk4im NMAg== X-Gm-Message-State: AOAM531yeE0PT/0vbAxBUbR5dBktHD6LXyNc9cW7o/fs0BA0foZiV5n7 bDfcpUYu4nli2uOEAM4MCFw1uLrcFm+CJQ== 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 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. 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