Signed-off-by: Matt Helsley <matthltc@xxxxxxxxxx> --- Makefile | 7 +++++++ test/Makefile | 2 ++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 0932519..d4558be 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,13 @@ KERNELSRC ?= ../linux +# Prefix CC, AS, LD, AR for cross compilation +CROSS_COMPILE ?= +CC := $(CROSS_COMPILE)gcc +LD := $(CROSS_COMPILE)ld +AS := $(CROSS_COMPILE)as +AR := $(CROSS_COMPILE)ar + CKPT_INCLUDE = -I./include CKPT_HEADERS = include/linux/checkpoint.h \ include/linux/checkpoint_hdr.h \ diff --git a/test/Makefile b/test/Makefile index 898e426..92482f2 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,4 +1,6 @@ # handle cross-compilation +# Prefix CC, AS, LD, AR for cross compilation +CROSS_COMPILE ?= AR := ${CROSS_COMPILE}ar AS := ${CROSS_COMPILE}as CC := ${CROSS_COMPILE}gcc -- 1.6.3.3 _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers