Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7267836ybl; Wed, 15 Jan 2020 19:09:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxUSElmfx7WNeHUhqSqaeaz7l+wkx6JO+8cpR+bDWe1AA0fJGMXHJLQ2X4lXk7ApHVycTYc X-Received: by 2002:a9d:e83:: with SMTP id 3mr386601otj.218.1579144163042; Wed, 15 Jan 2020 19:09:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579144163; cv=none; d=google.com; s=arc-20160816; b=x1dvwn+fxX3/C7otzGdk6yyF+19vVSOXdIEb1H4H29mTIo8108ROzIWKCTyEhCdLl7 ybLrLmahDir/kjKGEfKHiv9rtuOcn6F39v2KA135MO2Xw6MSsfJnoxgq+r6Ejy+lqBMk wKRbDpGb+TVmIzVpmqxpXaLo5WUuZMdrDXLJbGNLSOa4cyhhelCbhuhoQEO1HcGriEp8 xmpaPOlAk40xoN+ihJVIBwaYoNoAJyscTrzOA/eoErJa3uLuhKtydBcAnPwOnztiwT5Q wp69bRGgY1MtFzDOqVqF6YEQkrUyVuyoIDJhjKrkVUPOHfeqmwJ89FxYruWKXJfhqja4 nFxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=gwQsFePft3MfAfTwN78fKEDrEk3xpT6VkZlinejpxg8=; b=y/bwFJ2FEDB+FYS2HEVSPKYcQ6uIvpvz0xH/dWfJVE9+u+XSqaexTBTWO5M/JN1Hxv eTH/LL1SEx+dFiSPkJ/JIDw5ETwh1D0MqyWGkCwZNdTbdeY79ZaZ9JyCoRMUK3YIyfc8 zgux3wYMHWFXC8Bm35OKLD6X69JfGeRanqPhWX2y2qlx1DvfciACqwsZa7/uLsuKhGDF o9I3mTJU336hKtzzHU49jGfCscxMLQoG7oOvX5vpdjLdmLCJIFtaKy+G1+tvsoNUg4BR kGyPs0blC7BQM7z05/LTAlagJOhj6ri2TyDJMLwY+VCH/+wxBD5e8qPEjZQB8Ip02Z0V kJTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eHvGxNYj; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si12119282otr.88.2020.01.15.19.09.10; Wed, 15 Jan 2020 19:09:23 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=eHvGxNYj; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729139AbgAPC2N (ORCPT + 99 others); Wed, 15 Jan 2020 21:28:13 -0500 Received: from mail-yb1-f194.google.com ([209.85.219.194]:43013 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbgAPC2M (ORCPT ); Wed, 15 Jan 2020 21:28:12 -0500 Received: by mail-yb1-f194.google.com with SMTP id k15so3889183ybd.10; Wed, 15 Jan 2020 18:28:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=gwQsFePft3MfAfTwN78fKEDrEk3xpT6VkZlinejpxg8=; b=eHvGxNYjkklmWwDAF0QtjAfJ0ddV5IbvTQmBmdI8EAMRg48lNG1u019SMzE0mJlGAz 95n8fNW/9/oAV6yYv6wPThFbTJ+f2826FSYvtqQ19HeRQfFqG0Xn9zsdPAZO9Y36XzFZ GCr5vz918v/S90GwjGBGYwHx07RUTeZUk0qXZTKrgZKl+3ZZNAU/VM5CTVVRSDHxjW23 gZbeJp7HECVH7LCMnzgjt7uoMMNa0GUu3pLRtfhc3NTwaNmmNQ/AqfiJAYbGzdVadQFD HmTzKx9uGHhOdLVXA+k57KMmGBD7y2sdd+q+76j9cCPsCRTNYpyJIX3z5kprP1WZV7Y5 PE7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gwQsFePft3MfAfTwN78fKEDrEk3xpT6VkZlinejpxg8=; b=plfuW1OokFYegOVXm7fKOb8t/7TvkKPO03aEkDIRZXwG+lKmf7SSd4phfmkC9tB2+n DuXBAZSynI37RUFCyzxOHHf4sNOzqVGz7dhAfPCuIs9gFBUjgDXoHX/zOA2YMH0ligGE JISndXfOAGFLoalQwosyAhMqmBNNcU+Rt4QVN6/Vwiynj3URjOUBGyKqt47hB75psKYO 6ixmSCVMQq9tcWhu88B8gTG6ISYM1J/sBTs04V0mE96wX03mYmvXfsunJaUFXNU2nTt1 XO80iXSZh3zqB6MfvL2xhLMCe2KW6zD4vxJGK8+gV1SEUZHEWw/JSTIEIw6yFWVaPVhJ 9qKQ== X-Gm-Message-State: APjAAAWWHceIpvHA4s5V6KKJ/hqsRQUcUrMAKLgug/+EiuhM384YxN84 gJg8NN4Wv+7eNV/Nq4ekjqU= X-Received: by 2002:a25:e00c:: with SMTP id x12mr2216572ybg.224.1579141691642; Wed, 15 Jan 2020 18:28:11 -0800 (PST) Received: from [192.168.1.46] (c-73-88-245-53.hsd1.tn.comcast.net. [73.88.245.53]) by smtp.gmail.com with ESMTPSA id y66sm9038746ywf.79.2020.01.15.18.28.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jan 2020 18:28:11 -0800 (PST) Subject: Re: [RFC PATCH 0/3] Add device tree build information To: Alexandre Torgue , robh+dt@kernel.org, Masahiro Yamada , Michal Marek , david@gibson.dropbear.id.au, sjg@chromium.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, devicetree-compiler@vger.kernel.org References: <20200113181625.3130-1-alexandre.torgue@st.com> From: Frank Rowand Message-ID: Date: Wed, 15 Jan 2020 20:28:10 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200113181625.3130-1-alexandre.torgue@st.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/13/20 12:16 PM, Alexandre Torgue wrote: > Hi, > > The goal of this series is to add device tree build information in dtb. > This information can be dtb build date, where devicetree files come from, > who built the dtb ... Actually, same kind of information that you can find > in the Linux banner which is printout during kernel boot. Having the same > kind of information for device tree is useful for debugging and maintenance. > > To achieve that a new option "-B" (using an argument) is added to dtc. > The argument is a file containing a string with build information > (e.g., From Linux 5.5.0-rc1 by alex the Mon Jan 13 18:25:38 CET 2020). > DTC use it to append dts file with a new string property "Build-info". > > of/fdt.c is modified to printout "Build-info" property during Kernel boot and > scripts/Makefile.lib is modified to use dtc -B option during kernel make (this > last part could be improved for sure). Please read through the thread at: https://lore.kernel.org/linux-arm-kernel/550A42AC.8060104@gmail.com/ which was my attempt to do something similar. -Frank > > Regards > Alex > > Alexandre Torgue (3): > dtc: Add dtb build information option > of: fdt: print dtb build information > scripts: Use -B dtc option to generate dtb build information. > > drivers/of/fdt.c | 9 +++++++ > scripts/Makefile.lib | 11 +++++--- > scripts/dtc/dtc.c | 55 +++++++++++++++++++++++++++++++++----- > scripts/gen_dtb_build_info | 11 ++++++++ > 4 files changed, 76 insertions(+), 10 deletions(-) > create mode 100755 scripts/gen_dtb_build_info >