Thread (13 messages) flat view 13 messages, 4 authors, 2018-07-05

[PATCHv5 1/4] kbuild: Add build salt to the kernel and modules

From: Masahiro Yamada <hidden>
Date: 2018-07-04 03:59:58
Also in: linux-kbuild, linuxppc-dev, lkml

Hi.

Thanks for the update.


2018-07-04 8:34 GMT+09:00 Laura Abbott [off-list ref]:
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 <redacted>
Signed-off-by: Laura Abbott <redacted>
---
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.
---
quoted hunk ↗ jump to hunk
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?




-- 
Best Regards
Masahiro Yamada
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help