Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2017-10-30 13:34:26 +0100
committerJiri Slaby <jslaby@suse.cz>2017-10-30 15:02:54 +0100
commitd3ab37589b3eb9fd079b73d2bbb33d87839e9c81 (patch)
tree81dc3e174dd309052e4dd4a0bd6db5351231f8f7
parentf9d9df2a67c02789271e1f4e65d9ae2fb272207c (diff)
objtool: Upgrade libelf-devel warning to error for
CONFIG_ORC_UNWINDER (bnc#1058115). suse-commit: e683952999feec913a7541b48863d95743720b59
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 724fdb42fa6c..7182c4a618a9 100644
--- a/Makefile
+++ b/Makefile
@@ -954,7 +954,11 @@ ifdef CONFIG_STACK_VALIDATION
ifeq ($(has_libelf),1)
objtool_target := tools/objtool FORCE
else
- $(warning "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
+ ifdef CONFIG_ORC_UNWINDER
+ $(error "Cannot generate ORC metadata for CONFIG_ORC_UNWINDER=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
+ else
+ $(warning "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
+ endif
SKIP_STACK_VALIDATION := 1
export SKIP_STACK_VALIDATION
endif