mirror of
https://github.com/dynup/kpatch
synced 2025-03-25 04:16:39 +00:00
Merge pull request #729 from rudis/uname
Makefile.inc: replace uname -p with uname -m
This commit is contained in:
commit
676b77e936
@ -3,7 +3,7 @@ CC = gcc
|
||||
|
||||
INSTALL = /usr/bin/install
|
||||
|
||||
ARCH = $(shell uname -p)
|
||||
ARCH = $(shell uname -m)
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
LIBDIR ?= lib
|
||||
|
@ -6,7 +6,7 @@ LDFLAGS += $(KPATCH_LDFLAGS)
|
||||
# ppc64le kernel modules are expected to compile with the
|
||||
# -mcmodel=large flag. This enables 64-bit relocations
|
||||
# instead of a 32-bit offset from the TOC pointer.
|
||||
PROCESSOR = $(shell uname -p)
|
||||
PROCESSOR = $(shell uname -m)
|
||||
ifeq ($(PROCESSOR), ppc64le)
|
||||
KBUILD_CFLAGS_MODULE += -mcmodel=large
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user