kernel.spec: fix missing objtool
After this commit, we should use check CONFIG_OBJTOOL instead of CONFIG_STACK_VALIDATION.. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=03f16cd020eb8bb2eb837e2090086f296a9fa91d objtool: Add CONFIG_OBJTOOL Now that stack validation is an optional feature of objtool, add CONFIG_OBJTOOL and replace most usages of CONFIG_STACK_VALIDATION with it. CONFIG_STACK_VALIDATION can now be considered to be frame-pointer specific. CONFIG_UNWINDER_ORC is already inherently valid for live patching, so no need to "validate" it. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Miroslav Benes <mbenes@suse.cz> Link: https://lkml.kernel.org/r/939bf3d85604b2a126412bf11af6e3bd3b872bcb.1650300597.git.jpoimboe@redhat.com Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
This commit is contained in:
parent
5d45cca217
commit
38df441da3
@ -12,7 +12,7 @@
|
||||
%global upstream_sublevel 6
|
||||
%global devel_release 1
|
||||
%global maintenance_release .0.0
|
||||
%global pkg_release .3
|
||||
%global pkg_release .4
|
||||
|
||||
%define with_debuginfo 0
|
||||
# Do not recompute the build-id of vmlinux in find-debuginfo.sh
|
||||
@ -589,7 +589,7 @@ fi
|
||||
%endif
|
||||
|
||||
# copy objtool for kernel-devel (needed for building external modules)
|
||||
if grep -q CONFIG_STACK_VALIDATION=y .config; then
|
||||
if grep -q CONFIG_OBJTOOL=y .config; then
|
||||
mkdir -p $RPM_BUILD_ROOT/lib/modules/%{KernelVer}/build/tools/objtool
|
||||
cp -a tools/objtool/objtool $RPM_BUILD_ROOT/lib/modules/%{KernelVer}/build/tools/objtool
|
||||
fi
|
||||
@ -882,6 +882,9 @@ fi
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sun Jan 29 2023 Xie XiuQi <xiexiuqi@huawei.com> - 6.1.6-1.0.0.4
|
||||
- fix missing objtool
|
||||
|
||||
* Tue Jan 17 2023 Xie XiuQi <xiexiuqi@huawei.com> - 6.1.6-1.0.0.3
|
||||
- update to v6.1.6
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user