Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp966107pxf; Thu, 11 Mar 2021 21:17:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoBdegWBlRqUbN3hgRMPDw3NSD577ifcTkWElFp97gvdGKuj801C7wwl+dDteuVgM2RZ08 X-Received: by 2002:a05:6402:1383:: with SMTP id b3mr11691974edv.131.1615526265381; Thu, 11 Mar 2021 21:17:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615526265; cv=none; d=google.com; s=arc-20160816; b=PhH4st+Ty+D4ImhcQqYgZa0X1C8Xlyx6Ix0sPuiEJy9W3hoG6QJHgaq8bIcJYz0hCS jnlV+vCruYFWQr3Vjp0rBZX9CQkekQENuWcY571bKaeabCJ4G1iOx3toVHiWWBafPZr+ FsVEPa+cFNQtSoxrrQvfxeWM06tJU1kyZgfIQK7Ao4/J9KEwW87hgERhbN/FovhwByxu heXW20ixpPEcbAQ/xaz6vmYypd5k5dNwMAVpbS3d7HS8Xs+HLkqYldC8Q8Ad33WAZVdp wojAJWZsMoONjQENAaMfEeikUnO+6lNAphrT+plmZt/994t9ghjscmTflWZL4sXbEp9i YBPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pkncJmcaGxJTHzTzrvFVmek8LsrIaoR+xjf9Ti26Ntw=; b=Y3xWDy6cOCc9Qnd+Y9hYyxby1YO7KLJtEMNGINhlonAzuaPZaLbD+k8bm+OTOFgGH2 9AsqqYdnGH8TsqzWaWjJ+dm3X/IJ3DEcF/NidA6NVLVbOjfYGkQem2dtB2T18wUV35KV bm7Px7JHQReqd6oRMg4rGPDotwdHj5/frmMXQWCfe/X4isnBeu3raj2J9+re4AnI7yOi xk/qAg3tW2bt+mU6Q4Bi7Sh+KZT2m/FmDX4/93Nrf2mLud3SKvEReNAfCbY6wNKj60KE AH/M5BnhQtbpnB88f00/4vuKTV1py37xBVTk+m9/hTJAEsgKLBoB8gLPfkObq8tgmiG9 gAhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wkp9wxLu; 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 d5si3168907ejt.487.2021.03.11.21.17.23; Thu, 11 Mar 2021 21:17:45 -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=Wkp9wxLu; 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 S231808AbhCLEru (ORCPT + 99 others); Thu, 11 Mar 2021 23:47:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231816AbhCLErQ (ORCPT ); Thu, 11 Mar 2021 23:47:16 -0500 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F7AFC061761 for ; Thu, 11 Mar 2021 20:47:16 -0800 (PST) Received: by mail-pf1-x42b.google.com with SMTP id 18so1023987pfo.6 for ; Thu, 11 Mar 2021 20:47:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pkncJmcaGxJTHzTzrvFVmek8LsrIaoR+xjf9Ti26Ntw=; b=Wkp9wxLuIQAnuHG7p+IfJpjo4QfSiH4lnF+spHBcoP7RZuyUTzmf9l+57FJAPmTgsY w8slMY0C8NbH+v5DR9azD8K+o0utl53s7SWT9Wa4bxPDRFgdeUBZTbSq/0MsLLYba2LO GoGGtjJEZruvL/otKb7qvUGQZTOkY9Df5p/x2H5M3VDDStSdgjs+HcvNfI/9yjkK7I8O 9aGigWpjZI4rOrtyssNgOSRLYRdUOFjoFws1T0BnowQjzNeIKLXPlCZsWqaEtCCpM+kB IuZ0DJeMKg+IEXBrrcJlmTzK0p+yJ3zcsGiak/r56OFrCv0PZjADyOdaMR5fERqGfHdC z44g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=pkncJmcaGxJTHzTzrvFVmek8LsrIaoR+xjf9Ti26Ntw=; b=A/B1kzmxEpJsk4/VIzcocFHiBhB27gMAEeyqNdX8xrBBh7OpVvC/ejkq7e9Mu+06LY 1KIenCZkdDa+RDcb8HHThemnwBJLgV0oGU6lhxO5UjRnTjlqVZ2kyBswxKH2BwAeRFzY mFSFKD8tQIj0+rUUUvoqtUPOb+qDHqPK9s7g7xsIG61Kygt6JoK9nIsJesyzG2IsJJ4Z U976CcMGuJIn5odRxV2zdTKHYwdXdZWElabnK5xLmVMDFmpVot8SppKINgEZCNXyHwHB l/gf/DC/edfxe7h7c7yUNv1TNXswhUBcHye/y03GjF35nSxBUSsCLOv1e9ToCzE+WQgD tCqQ== X-Gm-Message-State: AOAM531r5YOVFG9Re9A3TBFMYOZAYo0QkJaIdeFIjkGEIo52+8sy6HTU NmTBTpexg4j8XkgaLij6wUprYw== X-Received: by 2002:a63:5952:: with SMTP id j18mr10309622pgm.397.1615524435554; Thu, 11 Mar 2021 20:47:15 -0800 (PST) Received: from localhost ([122.171.124.15]) by smtp.gmail.com with ESMTPSA id w28sm3724212pfi.119.2021.03.11.20.47.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Mar 2021 20:47:14 -0800 (PST) Date: Fri, 12 Mar 2021 10:17:12 +0530 From: Viresh Kumar To: Masahiro Yamada Cc: Michal Marek , Vincent Guittot , David Gibson , Frank Rowand , Michal Simek , Geert Uytterhoeven , Anmar Oueja , Bill Mills , Geert Uytterhoeven , Linux Kbuild mailing list , Linux Kernel Mailing List Subject: Re: [PATCH V11 3/5] kbuild: Allow .dtso format for overlay source files Message-ID: <20210312044712.srmqfuie7fae55pb@vireshk-i7> References: <170e086a5fa076869e7b37de8eea850fa7c39118.1615354376.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10-03-21, 20:24, Masahiro Yamada wrote: > Even without "-I dts", > > inform = guess_input_format(arg, "dts"); > > seems to fall back to "dts" anyway, > but I guess you wanted to make this explicit, correct? > > +# Required for of unit-test files as they can't be renamed to .dtso > > If you go with *.dtso, I think you will rename > all *.dts under the drivers/ directory. > > What is blocking you from making this consistent? What about this patch instead ? This localizes the dts->dtbo hack to unitest's Makefile at least. diff --git a/drivers/of/unittest-data/Makefile b/drivers/of/unittest-data/Makefile index a5d2d9254b2c..9f3426ec3fab 100644 --- a/drivers/of/unittest-data/Makefile +++ b/drivers/of/unittest-data/Makefile @@ -86,3 +86,7 @@ static_test_1-dtbs := static_base_1.dtb $(apply_static_overlay_1) static_test_2-dtbs := static_base_2.dtb $(apply_static_overlay_2) dtb-$(CONFIG_OF_OVERLAY) += static_test_1.dtb static_test_2.dtb + +# Required for of unittest files as they can't be renamed to .dtso +$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE + $(call if_changed_dep,dtc) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index bc045a54a34e..77a9be055e51 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -347,7 +347,7 @@ cmd_dtc = $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; $(obj)/%.dtb: $(src)/%.dts $(DTC) FORCE $(call if_changed_dep,dtc) -$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE +$(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE $(call if_changed_dep,dtc) overlay-y := $(addprefix $(obj)/, $(overlay-y)) @@ -375,6 +375,9 @@ endef $(obj)/%.dt.yaml: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE $(call if_changed_rule,dtc,yaml) +$(obj)/%.dt.yaml: $(src)/%.dtso $(DTC) $(DT_TMP_SCHEMA) FORCE + $(call if_changed_rule,dtc,yaml) + dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp) # Bzip2 -- viresh