Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2999841ybb; Mon, 30 Mar 2020 18:04:42 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt+VhOclZNLUZuc7m5Jf2rK+4a/83NxKy3/OydcKqrcKQhgRHcF6jfeOGIzGk+PgQ/cQD46 X-Received: by 2002:a4a:4547:: with SMTP id y68mr11368706ooa.58.1585616681908; Mon, 30 Mar 2020 18:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585616681; cv=none; d=google.com; s=arc-20160816; b=BRUM20D+hBf0EBo7Vp0qDNRckVBlMGKNcKw3epUH4u6i+diabX2QHEjK6V5WTH1pNX 9hNmZIdbUlsRObqYwOAPgTy0Kp04YHZYl4yM39Ab0KGNvBXqn5sgi3Baca754ssmI50E 7BgK1+nmstwJmSaGCuOWMk0QUOCfyKiYG+eYWrRzMcLB4Il+tVbPF6HhPTBzFStFhQru p4O1vekG7Uw+TA70tmsuyFP4IZ1A5TB+kJ/hWlnQaOP2UDQVf1e6WGiZ3yXQ/QAOWJ8F NhvviERrJC1rOJq+BG0rcG6DtuElRjf96kIzoYn4XCgVqOsiOvF3sN9LVB3WNr8aqKFv hwXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Fw2LMhqMpUKtHzYbQVOA9bjQOm3X2jbwN5CrhUGESVY=; b=LkGqpuMclyJtfZKZ802dqRChU4EZf1VLrauA6QlizVzsS0d88fjM+hWwAEaCbAFDMS RRk8Z6WgUUdm2IFUVjp7NDb/995sa5bek1jU5WP9f4VkzAPOFiyT/w0UUHFTt0v9dNVv ld/9UODuc5HS+GAAcnGMMNP9ST5t7ncjQirZMgRkbSjRQP13X+wgInuPY7nxhstgo8rB xsozxXqsvZt5ZOw7Ef/J9rdP5nTsTDGQ3pb+NXVSwIZUpmgNGCY4ik9NUEcnN2r79UnL LX6hw6xY9wgTmjLX/sbARLpQ6emNoZXh+d7rI8BE7a3Kzc1PbLz2QueuBCQZfbJ2zEE5 oZig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rp3DjIoL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b14si1334652otj.154.2020.03.30.18.04.29; Mon, 30 Mar 2020 18:04:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rp3DjIoL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729421AbgCaBEF (ORCPT + 99 others); Mon, 30 Mar 2020 21:04:05 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36420 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729035AbgCaBEF (ORCPT ); Mon, 30 Mar 2020 21:04:05 -0400 Received: by mail-wm1-f68.google.com with SMTP id g62so814427wme.1 for ; Mon, 30 Mar 2020 18:04:03 -0700 (PDT) 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=Fw2LMhqMpUKtHzYbQVOA9bjQOm3X2jbwN5CrhUGESVY=; b=rp3DjIoLk0LM8SIxOuGq5sbJ4rPhWrk5QsErQqD0bL+5tNrJg1LIvspg8AZyyH2r5X pT2ta0nzDwpHBnGmQiIEx1jxbjMA29SZzy1bFfQqrGCSSZN9DQWuoXn6Us3JRAg8GFj8 t73zUdAnwyE7z/ECeluUAfhIpIrVCCmcewk9UKiDPXXZGHsG+IfrjQ4zQYxz6v8d0B7e hF7Ys/uNmD+HL1BhS8FgONzC2g6cdEcZukRTyMg4tKbiBp/Sg250tOJ+stSqXDeBHnF2 w+4lJl8svCssSiM5FHbrphE8WZv4lMPVcSFbB9zdTUPoK5x2kkTnUjBxO9SPenWAlWoq sL3A== 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=Fw2LMhqMpUKtHzYbQVOA9bjQOm3X2jbwN5CrhUGESVY=; b=ra//3RXNmk6W2k93WSHKNFME/1xnEXdVZfQ3nrdwUZF48DrzZ0Q+6cxks6CnIee2q1 wRO6I+DjRlk0btxVSkNSLC0OjpaXkHm28XW21kPoROZQ7elXrbEe4CI79A0MuUiiGqLU zALmfaBGamKnWoLLoyOHwVSXs9j8IlSpBmJOKYbEDfSRUeka0NjxFmBpAQi9YPlhPxwK P74OYspjfZZnDcBNl5PoAlzFoOBB7p6eZVExLtn16DTsEWtXBCCS/CKkui9s9KHyx6YX oX0gBxj0vjgJdb9dI+1eLtEiPErYIhOGHRMWMwSdQE3YwqGf5rNLgbjtTG5YOLpCr/Al ASyw== X-Gm-Message-State: ANhLgQ1s+X96vECIJS6Rt0Qu+H2Krijz8Moyv5LFObmA4L64n5Bi6R4a 8GMGYMs0cbHpcVoZTPWmm3jsXw== X-Received: by 2002:a7b:c842:: with SMTP id c2mr799219wml.154.1585616642896; Mon, 30 Mar 2020 18:04:02 -0700 (PDT) Received: from cheddar.halon.org.uk (cheddar.halon.org.uk. [93.93.131.118]) by smtp.gmail.com with ESMTPSA id y7sm27040892wrq.54.2020.03.30.18.04.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 18:04:02 -0700 (PDT) Received: from bsmtp by cheddar.halon.org.uk with local-bsmtp (Exim 4.92) (envelope-from ) id 1jJ5Jx-0001Yw-P5; Tue, 31 Mar 2020 02:04:01 +0100 Received: from stemci01 by c30-smcintyre.einval.org with local (Exim 4.92) (envelope-from ) id 1jJ5Js-00016k-Lf; Tue, 31 Mar 2020 02:03:56 +0100 Date: Tue, 31 Mar 2020 02:03:56 +0100 From: Steve McIntyre To: Alexandre Torgue Cc: Frank Rowand , robh+dt@kernel.org, Masahiro Yamada , Michal Marek , david@gibson.dropbear.id.au, sjg@chromium.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, devicetree-compiler@vger.kernel.org, Ian Lepore Subject: Re: [RFC PATCH v2 0/4] Add device tree build information Message-ID: <20200331010347.GF4037@linaro.org> References: <20200221161418.20225-1-alexandre.torgue@st.com> <1b946fcf-47a9-012d-1b04-f4bbd2682607@gmail.com> <67d75f0c-7478-23b0-8619-746cf83cedb5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-attached: none User-Agent: Mutt/1.10.1 (2018-07-13) X-wibble: sender_address steve.mcintyre@linaro.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre, On Mon, Mar 02, 2020 at 01:55:55PM +0100, Alexandre Torgue wrote: >On 2/28/20 6:47 PM, Frank Rowand wrote: >> > This would require modifying every single main .dts file to get the build info >> > I would prefer the method that Ian and David came up with (sorry, no lore link, >> > it did not go to lkml). Extract from David's email: >> > >> > Date: Tue, 21 Jan 2020 13:05:25 +1100 >> > From: David Gibson >> > Subject: Re: [RFC PATCH 1/3] dtc: Add dtb build information option >> > >> > > Given that dts files are run through the C preprocessor before being >> > > fed to dtc, the build script could use the '-include' flag to force- >> > > include a fragment containing generated build info without any need to >> > > modify existing dts files. >> > >> > Uh... maybe. -include will essentially prepend the forced file, which >> > is a bit awkward for our purposes. It means that the prepended file >> > would need the /dts-v1/ tag, and we couldn't have it in the main files >> > which would be a bit confusing. I think it would also cause problems >> > with any /memreserve/ tags and means that the main tree could in >> > theory overwrite the build information which we don't necessarily >> > want. >> > >> > I guess we could build things the other way around: have the main .dts >> > file specified with -include and have the dts on the dtc commandline >> > be a fixed one with the build information. It'd be a little weird, >> > though. >> > >> > -Frank > >Yes. I try briefly this idea but I got issues with dts-v1 tag. I agree, it is >cleaner to not modify input dts file. I can rework int this way. Have you made any progress on this please? Cheers, -- Steve McIntyre steve.mcintyre@linaro.org Linaro.org | Open source software for ARM SoCs