Skip to content

Commit 1a927fd

Browse files
committed
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>
1 parent 33177f0 commit 1a927fd

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎init/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ config CLANG_VERSION
2424
int
2525
default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
2626

27+
config CC_CAN_LINK
28+
def_bool $(success,$(srctree)/scripts/cc-can-link.sh $(CC))
29+
2730
config CC_HAS_ASM_GOTO
2831
def_bool $(success,$(srctree)/scripts/gcc-goto.sh $(CC))
2932

‎net/bpfilter/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ menuconfig BPFILTER
99
if BPFILTER
1010
config BPFILTER_UMH
1111
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
1313
default m
1414
help
1515
This builds bpfilter kernel module with embedded user mode helper

0 commit comments

Comments
 (0)