From patchwork Tue Oct 8 12:05:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 175480 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp5610065ill; Tue, 8 Oct 2019 05:06:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7UBQMsPJQgTiqOwumfNeSQIPfcjO9gKtFCUawhuGdZvprSeO+s2US8o+BV5sScx9p0mT9 X-Received: by 2002:aa7:c6c6:: with SMTP id b6mr32956800eds.19.1570536413909; Tue, 08 Oct 2019 05:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570536413; cv=none; d=google.com; s=arc-20160816; b=ciHf6EMmw5a3IybUmvHYbOpe1FneyApvM7XoV/k+S2fJtQ0oR7/iCH/JmDCZGX+Clz i+cYDpwK0S3qxroGqA+JJxGcWtdduLSlvHFjHFShHJ7mxUvyt5IecY9B8riID1DIeXLU jt9njOyr5Ce1XkY7Wtky2LJENr1f+gbq0o/0tAo7hF2Rf2DgeBBttsvnSA6iPZoPd8rG ga6UD7UlyNikvTaBsaep5O1Xstos+Sx06CIEZGYr4Ua9iMbM0nUdrfgky7G8/zK6Ok8w 9vKksCMO/1GK6Hl/ceNwUvUIUaRR11tFoymDRHKK+GzwmLtR8AWlKeRgUn2C+eCEUr3F 7Zdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=o08jjtAXayQQibqWZRK6KQghEgpMnJSKKT2mpiY9c0U=; b=s/9A3P1pqAghbBYBVCdN8l+rrEF/iqT3DdnshZw+m+gn9H9ds22tR5FPV4qQxpGCTJ DD3vRe95RzG+WiRxDGOUtDqVEO3xFef/tx9NcnWwmbbBDMt32L8GE2LELj4vJuWxQgBA T+VoRLAo9QlGR/szzr6PEpCYXh0ZaoTqEh/WSdrpsueydLyEk2t7pDzoAgmi6+9OWkGt 4CEGV3/4G1F8CCYOVD3mWDYTsbmp8WjYMmAmW8J9Y7bzRINSPgTKIazJS2w4YxUK/FFj YNpP/Zdnio9dZg0wGMIWe+9kJFKTJMm1rtxdclMgtYgEWwoeqEEC1TX1q+NCEhSo2rvU WxdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2Uu9Qr+8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si7451923eju.406.2019.10.08.05.06.53; Tue, 08 Oct 2019 05:06:53 -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=@nifty.com header.s=dec2015msa header.b=2Uu9Qr+8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730960AbfJHMGn (ORCPT + 26 others); Tue, 8 Oct 2019 08:06:43 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:28287 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730648AbfJHMGm (ORCPT ); Tue, 8 Oct 2019 08:06:42 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id x98C6137021176; Tue, 8 Oct 2019 21:06:05 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x98C6137021176 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1570536365; bh=o08jjtAXayQQibqWZRK6KQghEgpMnJSKKT2mpiY9c0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2Uu9Qr+8AGGzvZd0q21inKfPqkb3+LMAVmxPBumQEdVjLZ3i/EXLi8qnf6VOzyIvr NcIteZbNS121zvZNqlfXSJNr/R1AireeQYJTDrJ3Lff3VhRZ2W3pm6+7sHX+nlr5Te 8jcKIg8Rc83tFGhW4eJG5H5qPmyBeFwD24pVr7BZYVPJRIvBpfklJ7b613JD6iltzw JaPKxFdHBfjLL4tRVGOBWi7ZaOaCKewtd9sfxRUT0bbdl0RfJRA38ukFmFHqJTdNAa EVG8g0WUUGLfE2PKeGCsHOi7AtKte8oW8UH4aYzis7LsQ91o0N7YETeQ8TNGniFb5O Bj1/7DImlJvPg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Greg KH , Joel Fernandes , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 5/5] kheaders: explain why include/config/autoconf.h is excluded from md5sum Date: Tue, 8 Oct 2019 21:05:56 +0900 Message-Id: <20191008120556.4263-5-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191008120556.4263-1-yamada.masahiro@socionext.com> References: <20191008120556.4263-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This comment block explains why include/generated/compile.h is omitted, but nothing about include/generated/autoconf.h, which might be more difficult to understand. Add more comments. Signed-off-by: Masahiro Yamada --- kernel/gen_kheaders.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/kernel/gen_kheaders.sh b/kernel/gen_kheaders.sh index 6c5f88f3ca2d..b229a84693e5 100755 --- a/kernel/gen_kheaders.sh +++ b/kernel/gen_kheaders.sh @@ -32,8 +32,15 @@ fi all_dirs="$all_dirs $dir_list" # include/generated/compile.h is ignored because it is touched even when none -# of the source files changed. This causes pointless regeneration, so let us -# ignore them for md5 calculation. +# of the source files changed. +# +# When Kconfig regenerates include/generated/autoconf.h, its timestamp is +# updated, but the contents might be still the same. When any CONFIG option is +# changed, Kconfig touches the corresponding timestamp file include/config/*.h. +# Hence, the md5sum detects the configuration change anyway. We do not need to +# check include/generated/autoconf.h explicitly. +# +# Ignore them for md5 calculation to avoid pointless regeneration. headers_md5="$(find $all_dirs -name "*.h" | grep -v "include/generated/compile.h" | grep -v "include/generated/autoconf.h" |