Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

init/Kconfig: add CONFIG_CC_CAN_LINK

Currently, scripts/cc-can-link.sh is run just for BPFILTER_UMH, but
defining CC_CAN_LINK will be useful in other places.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

+4 -1
+3
init/Kconfig
··· 24 24 int 25 25 default $(shell,$(srctree)/scripts/clang-version.sh $(CC)) 26 26 27 + config CC_CAN_LINK 28 + def_bool $(success,$(srctree)/scripts/cc-can-link.sh $(CC)) 29 + 27 30 config CC_HAS_ASM_GOTO 28 31 def_bool $(success,$(srctree)/scripts/gcc-goto.sh $(CC)) 29 32
+1 -1
net/bpfilter/Kconfig
··· 9 9 if BPFILTER 10 10 config BPFILTER_UMH 11 11 tristate "bpfilter kernel module with user mode helper" 12 - depends on $(success,$(srctree)/scripts/cc-can-link.sh $(CC)) 12 + depends on CC_CAN_LINK 13 13 default m 14 14 help 15 15 This builds bpfilter kernel module with embedded user mode helper