Revert "kpatch-build: fix gcc_version_check"

This reverts commit 9fedd0d283.
This commit is contained in:
Josh Poimboeuf 2015-11-18 14:44:45 -06:00
parent 7b48c4ce12
commit 707435ec62

View File

@ -119,9 +119,9 @@ find_dirs() {
gcc_version_check() { gcc_version_check() {
# ensure gcc version matches that used to build the kernel # ensure gcc version matches that used to build the kernel
local gccver=$(gcc --version |head -n1 |cut -d' ' -f2-) local gccver=$(gcc --version |head -n1 |cut -d' ' -f3-)
local kgccver=$(readelf -p .comment $VMLINUX |grep GCC: | tr -s ' ' | cut -d ' ' -f5-) local kgccver=$(readelf -p .comment $VMLINUX |grep GCC: | tr -s ' ' | cut -d ' ' -f6-)
if [[ "$gccver" != "$kgccver" ]]; then if [[ $gccver != $kgccver ]]; then
warn "gcc/kernel version mismatch" warn "gcc/kernel version mismatch"
echo "gcc version: $gccver" echo "gcc version: $gccver"
echo "kernel version: $kgccver" echo "kernel version: $kgccver"