mirror of https://github.com/dynup/kpatch
kpatch-build: paravirt_patch_site is x86-only
Architectures like ppc64le may set CONFIG_PARAVIRT=y but do not necessarily implement via struct paravirt_patch_site. Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
This commit is contained in:
parent
059467dbc5
commit
bb57564e60
|
@ -342,11 +342,12 @@ find_special_section_data() {
|
|||
check[b]=true # bug_entry
|
||||
check[e]=true # exception_table_entry
|
||||
|
||||
# Arch-specific features, without kernel CONFIG_ toggle
|
||||
# Arch-specific features
|
||||
case "$ARCH" in
|
||||
"x86_64")
|
||||
check[a]=true # alt_instr
|
||||
kernel_version_gte 5.10.0 && check[s]=true # static_call_site
|
||||
[[ -n "$CONFIG_PARAVIRT" ]] && check[p]=true # paravirt_patch_site
|
||||
;;
|
||||
"ppc64le")
|
||||
check[f]=true # fixup_entry
|
||||
|
@ -360,7 +361,6 @@ find_special_section_data() {
|
|||
[[ -n "$CONFIG_PRINTK_INDEX" ]] && check[i]=true # pi_entry
|
||||
[[ -n "$CONFIG_JUMP_LABEL" ]] && check[j]=true # jump_entry
|
||||
[[ -n "$CONFIG_UNWINDER_ORC" ]] && check[o]=true # orc_entry
|
||||
[[ -n "$CONFIG_PARAVIRT" ]] && check[p]=true # paravirt_patch_site
|
||||
|
||||
local c AWK_OPTIONS
|
||||
for c in "${!check[@]}"; do
|
||||
|
|
Loading…
Reference in New Issue