Skip to content

Commit 1d4b3c2

Browse files
authored
Merge pull request #1248 from joe-lawrence/cross-arch
Remove host / target architecture assumption from create-diff-object
2 parents aa33ee7 + f67a008 commit 1d4b3c2

File tree

6 files changed

+216
-139
lines changed

6 files changed

+216
-139
lines changed

kpatch-build/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,18 @@ SOURCES = create-diff-object.c kpatch-elf.c \
1010
create-kpatch-module.c \
1111
create-kpatch-module.c lookup.c
1212

13-
ifeq ($(ARCH),x86_64)
1413
SOURCES += insn/insn.c insn/inat.c
1514
INSN = insn/insn.o insn/inat.o
1615
insn/%.o: CFLAGS := $(filter-out -Wconversion, $(CFLAGS))
17-
else ifeq ($(ARCH),ppc64le)
16+
ifeq ($(ARCH),ppc64le)
1817
SOURCES += gcc-plugins/ppc64le-plugin.c
1918
PLUGIN = gcc-plugins/ppc64le-plugin.so
2019
TARGETS += $(PLUGIN)
2120
GCC_PLUGINS_DIR := $(shell gcc -print-file-name=plugin)
2221
PLUGIN_CFLAGS := $(filter-out -Wconversion, $(CFLAGS))
2322
PLUGIN_CFLAGS += -shared -I$(GCC_PLUGINS_DIR)/include \
2423
-Igcc-plugins -fPIC -fno-rtti -O2 -Wall
25-
else
24+
else ifneq ($(ARCH),x86_64)
2625
$(error Unsupported architecture ${ARCH}, check https://github.com/dynup/kpatch/#supported-architectures)
2726
endif
2827

0 commit comments

Comments
 (0)