mirror of
https://github.com/dynup/kpatch
synced 2025-01-13 08:30:47 +00:00
kpatch-build: fix gcc version check on ubuntu
This commit is contained in:
parent
aaf1bf3e8e
commit
5893a28fdf
@ -105,7 +105,7 @@ find_dirs() {
|
||||
gcc_version_check() {
|
||||
# ensure gcc version matches that used to build the kernel
|
||||
local gccver=$(gcc --version |head -n1 |cut -d' ' -f3-)
|
||||
local kgccver=$(strings $VMLINUX |grep "GCC:" |cut -d' ' -f3-)
|
||||
local kgccver=$(strings $VMLINUX |grep "GCC:" |head -n1 |cut -d' ' -f3-)
|
||||
if [[ $gccver != $kgccver ]]; then
|
||||
warn "gcc/kernel version mismatch"
|
||||
return 1
|
||||
|
Loading…
Reference in New Issue
Block a user