From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f193.google.com (mail-qt0-f193.google.com [209.85.216.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41M7411FnzzF1vq for ; Fri, 6 Jul 2018 05:20:32 +1000 (AEST) Received: by mail-qt0-f193.google.com with SMTP id b15-v6so8046154qtp.11 for ; Thu, 05 Jul 2018 12:20:32 -0700 (PDT) Subject: Re: [PATCHv5 1/4] kbuild: Add build salt to the kernel and modules To: Masahiro Yamada Cc: Andy Lutomirski , Mark Wielaard , "H . J . Lu" , Michael Ellerman , Catalin Marinas , Will Deacon , Linus Torvalds , X86 ML , Linux Kernel Mailing List , Nick Clifton , Cary Coutant , Linux Kbuild mailing list , linuxppc-dev , linux-arm-kernel References: <20180703233430.14416-1-labbott@redhat.com> <20180703233430.14416-2-labbott@redhat.com> From: Laura Abbott Message-ID: <5e3ce0f4-0c4b-e0aa-2b21-9bf4b5bce9e2@redhat.com> Date: Thu, 5 Jul 2018 12:20:27 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 07/03/2018 08:59 PM, Masahiro Yamada wrote: > Hi. > > Thanks for the update. > > > 2018-07-04 8:34 GMT+09:00 Laura Abbott : >> >> The build id generated from --build-id can be generated in several different >> ways, with the default being the sha1 on the output of the linked file. For >> distributions, it can be useful to make sure this ID is unique, even if the >> actual file contents don't change. The easiest way to do this is to insert >> a section with some data. >> >> Add an ELF note to both the kernel and module which contains some data based >> off of a config option. >> >> Signed-off-by: Masahiro Yamada >> Signed-off-by: Laura Abbott >> --- >> v5: I used S-o-b here since the majority of the code was written >> already. > > > I think Suggested-by is good enough. > S-o-b is appended as a patch is passed from people to people. > > Anyway, this looks good except one bike-shed. > >> Please feel free to change the tag if you think it's not >> appropriate. I also tweaked this to take an ascii string instead of just >> a hex value since this makes things much easier on the distribution >> side. >> --- > > >> diff --git a/init/Kconfig b/init/Kconfig >> index 041f3a022122..8de789f40db9 100644 >> --- a/init/Kconfig >> +++ b/init/Kconfig >> @@ -107,6 +107,15 @@ config LOCALVERSION_AUTO >> >> which is done within the script "scripts/setlocalversion".) >> >> +config BUILD_SALT >> + string "Build ID Salt" >> + default "Linux" > > > How about empty string "" > for default? > Sure, seems to work fine. Thanks, Laura