Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp273014pxj; Thu, 17 Jun 2021 02:20:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl2bx1G02d2PzfdCV3cAU9h4vEoj2EefMLIvUf18V9/7RnL4yvvxUABc67Ges2SfovWHa9 X-Received: by 2002:a17:906:5648:: with SMTP id v8mr4150884ejr.421.1623921659039; Thu, 17 Jun 2021 02:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623921659; cv=none; d=google.com; s=arc-20160816; b=QHjvypFyjHsh0l8Nl05WBCSF38AxJMrn0D9x+AmEJNEg5K0xjBW6OZNrImwsOEpN68 bjD9MZbwy5rjARZWKVN2drTXZSCvEIBy6E9UTI0zOzfoj4mg3kFJFQ1l0+aQne2uNRsw 7qsKHhjV4l46eP5tSeYosXKAXq9yWYWu5/uDdTGaMKSih6nTCAcIUCmr/mm4bojxpp4m BsoG1KIRuzH+D9d2KSF7+rKX/o7V2M/AjSQvEubJaxno/IU6pbUYt0VSgIzdj65omFtb iLwne4uTm3IReSieN+bUSs9/5+drl1nL2AXExlMA6BRacCm9MP1cuxmvfvolHrxB3+ww OsHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9BepfpuI4gTK3FDci2Lw1qhlFFFZ3rGxYCCkc+cXF5A=; b=y+AYZNi3PeAsmmR7TKeXcIlVDUviBKptefW+QbQSh+OX8yrp14xcrgc6GTk+GAdwUe Vygb5iPIufmog6cODeoJczG/3pdQQ6ZJKh0cAJX+9aF7zef/1+TMbT5ez1Xn0GvhoBqw ONyzeOu8FwXT2xS3mZmfZlKXmQg8yQUz9JzwQ8FSJLESgY0kZ9ZLsYOH5AaouMvdSB5v ItEvX/my3zmrIFADen9hibYdzHnw3GMT+ZYGgmhjpztQ1uEY1IkC+BZjNCvmlgsxQb7u vMERmSZMfkeEE36WuOuB5ImL5GF9mFjcCpImojyzn0bDRmQSEEn62XaZLr2BySo2+nci tu1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=rEJJW1nG; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si4940884ejf.128.2021.06.17.02.20.35; Thu, 17 Jun 2021 02:20:59 -0700 (PDT) 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=@google.com header.s=20161025 header.b=rEJJW1nG; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231491AbhFQJUw (ORCPT + 99 others); Thu, 17 Jun 2021 05:20:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231490AbhFQJU2 (ORCPT ); Thu, 17 Jun 2021 05:20:28 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 996E9C06175F for ; Thu, 17 Jun 2021 02:18:19 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id l9so2951520wms.1 for ; Thu, 17 Jun 2021 02:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9BepfpuI4gTK3FDci2Lw1qhlFFFZ3rGxYCCkc+cXF5A=; b=rEJJW1nGT5ylLY1WRR4sbUmeZ+p69uWBzd918Tu6NWXyw8VSh+KQa6pYyJAWoYqaLQ SzDs7ugq8o7Y//fBT9oADwN+jcDPoRyabCUpBKHewMC+2S0XY++dYKEhC/EUtMecou+N jV5e/igrVRQ2jSRPsXRaS8Y2MAU/20IcwzZR7EGTuGshicwMsn4hYr18RP7cOeZgLJoE 7zt7Awhz2L2OnsrCfo+uIBsAfgeX0mhS6hCbr/e8VfL6oURjdrApFJaLIsOOlHMpIuT4 6KOtpNt1NwQWzzMRqiPE8/L6tP4x5/gf0J+y32KCqGHNmyGojBowXqx6hPaLukvnOqzh hD2A== 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; bh=9BepfpuI4gTK3FDci2Lw1qhlFFFZ3rGxYCCkc+cXF5A=; b=nnoEEKxqHoE0JkJyuO+1bQwz4YtmjJyC/ud7jWNJLWqlgqVS5b/BR6xT/BVNrbVM9G wBu/3eH3oTRsOp2LHfQgtooYQpS72J9aPZGuHHvi6ZXGXZe016qe7pGk78ZpUejmEMkk GzIvK4986YJhGqfosrASsDPjImq3yynZi75dei4gEKilW8k/FJH9SRmxuXszwPeOKg8h CW9aScSg64iJa2sOfTNnygKwa8KCDMuhidyoI2Hj8PRMadE2F/ds2nTxjJBgcyKMg1MT pJ5jbmLvyIm2dFFF0joMphSgqLcIoOX1SZG5+friQUYXBgLOIiC/i5I6UYM65Alr8PcG Dn2g== X-Gm-Message-State: AOAM530DfLf49AjEySvgDfMUvbAuBhiZ61gDgBfGNvEwfOZjg6Mb0liA Zsea3yirkB6iVLh5FmVsLcbtkw== X-Received: by 2002:a1c:5418:: with SMTP id i24mr3926482wmb.1.1623921497930; Thu, 17 Jun 2021 02:18:17 -0700 (PDT) Received: from google.com ([2a00:79e0:d:210:dde2:86fa:532c:18b9]) by smtp.gmail.com with ESMTPSA id p13sm3711248wrt.89.2021.06.17.02.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Jun 2021 02:18:16 -0700 (PDT) Date: Thu, 17 Jun 2021 10:18:16 +0100 From: Matthias Maennich To: Masahiro Yamada Cc: Linux Kernel Mailing List , "Cc: Android Kernel" , Linux Kbuild mailing list Subject: Re: [PATCH] kbuild: mkcompile_h: consider timestamp if KBUILD_BUILD_TIMESTAMP is set Message-ID: References: <20210612141838.1073085-1-maennich@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 17, 2021 at 10:43:19AM +0900, Masahiro Yamada wrote: >On Thu, Jun 17, 2021 at 10:05 AM Masahiro Yamada wrote: >> >> On Sat, Jun 12, 2021 at 11:18 PM Matthias Maennich wrote: >> > >> > To avoid unnecessary recompilations, mkcompile_h does not regenerate >> > compile.h if just the timestamp changed. >> > Though, if KBUILD_BUILD_TIMESTAMP is set, an explicit timestamp for the >> > build was requested, in which case we should not ignore it. >> > >> > If a user follows the documentation for reproducible builds [1] and >> > defines KBUILD_BUILD_TIMESTAMP as the git commit timestamp, a clean >> > build will have the correct timestamp. A subsequent cherry-pick (or >> > amend) changes the commit timestamp and if an incremental build is done >> > with a different KBUILD_BUILD_TIMESTAMP now, that new value is not taken >> > into consideration. But it should for reproducibility. >> > >> > Hence, whenever KBUILD_BUILD_TIMESTAMP is explicitly set, do not ignore >> > UTS_VERSION when making a decision about whether the regenerated version >> > of compile.h should be moved into place. >> > >> > [1] https://www.kernel.org/doc/html/latest/kbuild/reproducible-builds.html >> > >> > Cc: Masahiro Yamada >> > Cc: linux-kbuild@vger.kernel.org >> > Signed-off-by: Matthias Maennich >> > --- >> >> >> Applied to linux-kbuild. Thanks. Thanks! >> > >This may not be a big deal, but when KBUILD_BUILD_TIMESTAMP is unset, >the timestamp is not updated. It still has a user-specified string. I think treating this like any other 'random' prior timestamp is ok. So, I agree: not a big deal. Cheers, Matthias > > > > >-- >Best Regards >Masahiro Yamada