diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-12-20 10:33:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-12-20 10:33:09 -0500 |
commit | c0f3ece4657fe2205c1e59c5c27547d6e8cba34a (patch) | |
tree | c7e0676140612481941f97e0cb4826dc37189f3b | |
parent | 122b7e33804d928f8f53cf9d25762c40b8148a02 (diff) | |
parent | ef7cfd00b2caf6edeb7f169682b64be2d0a798cf (diff) |
Merge tag 'kbuild-fixes-v4.20-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild fix from Masahiro Yamada:
"Fix false positive warning/error about missing library for objtool"
* tag 'kbuild-fixes-v4.20-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
kbuild: fix false positive warning/error about missing libelf
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -962,11 +962,6 @@ ifdef CONFIG_STACK_VALIDATION | |||
962 | ifeq ($(has_libelf),1) | 962 | ifeq ($(has_libelf),1) |
963 | objtool_target := tools/objtool FORCE | 963 | objtool_target := tools/objtool FORCE |
964 | else | 964 | else |
965 | ifdef CONFIG_UNWINDER_ORC | ||
966 | $(error "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel") | ||
967 | else | ||
968 | $(warning "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel") | ||
969 | endif | ||
970 | SKIP_STACK_VALIDATION := 1 | 965 | SKIP_STACK_VALIDATION := 1 |
971 | export SKIP_STACK_VALIDATION | 966 | export SKIP_STACK_VALIDATION |
972 | endif | 967 | endif |
@@ -1125,6 +1120,14 @@ uapi-asm-generic: | |||
1125 | 1120 | ||
1126 | PHONY += prepare-objtool | 1121 | PHONY += prepare-objtool |
1127 | prepare-objtool: $(objtool_target) | 1122 | prepare-objtool: $(objtool_target) |
1123 | ifeq ($(SKIP_STACK_VALIDATION),1) | ||
1124 | ifdef CONFIG_UNWINDER_ORC | ||
1125 | @echo "error: Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel" >&2 | ||
1126 | @false | ||
1127 | else | ||
1128 | @echo "warning: Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel" >&2 | ||
1129 | endif | ||
1130 | endif | ||
1128 | 1131 | ||
1129 | # Generate some files | 1132 | # Generate some files |
1130 | # --------------------------------------------------------------------------- | 1133 | # --------------------------------------------------------------------------- |