]> Git Repo - linux.git/commit
kernel/configs: use .incbin directive to embed config_data.gz
authorMasahiro Yamada <[email protected]>
Fri, 8 Mar 2019 00:29:53 +0000 (16:29 -0800)
committerLinus Torvalds <[email protected]>
Fri, 8 Mar 2019 02:32:02 +0000 (18:32 -0800)
commit13610aa908dcfce77135bb799c0a10d0172da6ba
treed78e5a95c8ddc056a4f2f518d3df7612f378f864
parent3337d5cfe5e08f7ee70f63dc189c6e0b9dd8b8bf
kernel/configs: use .incbin directive to embed config_data.gz

This slightly optimizes the kernel/configs.c build.

bin2c is not very efficient because it converts a data file into a huge
array to embed it into a *.c file.

Instead, we can use the .incbin directive.

Also, this simplifies the code; Makefile is cleaner, and the way to get
the offset/size of the config_data.gz is more straightforward.

I used the "asm" statement in *.c instead of splitting it into *.S
because MODULE_* tags are not supported in *.S files.

I also cleaned up kernel/.gitignore; "config_data.gz" is unneeded
because the top-level .gitignore takes care of the "*.gz" pattern.

[[email protected]: v2]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Masahiro Yamada <[email protected]>
Cc: Randy Dunlap <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Alexander Popov <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Richard Guy Briggs <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/dontdiff
kernel/.gitignore
kernel/Makefile
kernel/configs.c
This page took 0.05535 seconds and 4 git commands to generate.