diff --git a/Makefile.inc b/Makefile.inc index 4828619..4b15d84 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -3,6 +3,8 @@ CC = gcc INSTALL = /usr/bin/install +ARCH = $(shell uname -p) + PREFIX ?= /usr/local LIBDIR ?= lib LIBEXEC ?= libexec @@ -13,7 +15,11 @@ LIBEXECDIR = $(DESTDIR)$(PREFIX)/$(LIBEXEC)/kpatch DATADIR = $(DESTDIR)$(PREFIX)/share/kpatch MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1 SYSTEMDDIR = $(DESTDIR)$(PREFIX)/lib/systemd/system -BUILDMOD ?= yes + +# The core module is only supported on x86_64 +ifeq ($(ARCH),x86_64) +BUILDMOD ?= yes +endif .PHONY: all install clean .DEFAULT: all