Skip to content

Commit de5b56b

Browse files
rhvgoyaltorvalds
authored andcommitted
kernel: build bin2c based on config option CONFIG_BUILD_BIN2C
currently bin2c builds only if CONFIG_IKCONFIG=y. But bin2c will now be used by kexec too. So make it compilation dependent on CONFIG_BUILD_BIN2C and this config option can be selected by CONFIG_KEXEC and CONFIG_IKCONFIG. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Cc: Borislav Petkov <bp@suse.de> Cc: Michael Kerrisk <mtk.manpages@gmail.com> Cc: Yinghai Lu <yinghai@kernel.org> Cc: Eric Biederman <ebiederm@xmission.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Matthew Garrett <mjg59@srcf.ucam.org> Cc: Greg Kroah-Hartman <greg@kroah.com> Cc: Dave Young <dyoung@redhat.com> Cc: WANG Chao <chaowang@redhat.com> Cc: Baoquan He <bhe@redhat.com> Cc: Andy Lutomirski <luto@amacapital.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8370ede commit de5b56b

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

arch/x86/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,7 @@ source kernel/Kconfig.hz
15821582

15831583
config KEXEC
15841584
bool "kexec system call"
1585+
select BUILD_BIN2C
15851586
---help---
15861587
kexec is a system call that implements the ability to shutdown your
15871588
current kernel, and to start another kernel. It is like a reboot

init/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,8 +783,13 @@ endchoice
783783

784784
endmenu # "RCU Subsystem"
785785

786+
config BUILD_BIN2C
787+
bool
788+
default n
789+
786790
config IKCONFIG
787791
tristate "Kernel .config support"
792+
select BUILD_BIN2C
788793
---help---
789794
This option enables the complete Linux kernel ".config" file
790795
contents to be saved in the kernel. It provides documentation

scripts/basic/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# fixdep: Used to generate dependency information during build process
1010

1111
hostprogs-y := fixdep
12-
hostprogs-$(CONFIG_IKCONFIG) += bin2c
12+
hostprogs-$(CONFIG_BUILD_BIN2C) += bin2c
1313
always := $(hostprogs-y)
1414

1515
# fixdep is needed to compile other host programs

0 commit comments

Comments
 (0)