blob: 8b10ec15722806fbdeb530d82a40b26f966c58f7 [file] [log] [blame]
Andrew Scull55704232018-08-10 17:19:54 +01001# By default, assume this was checked out as a submodule of the Hafnium repo
2# and that Linux was checked out along side that checkout. These paths can be
3# overridden if that assumption is incorrect.
4HAFNIUM_PATH ?= $(PWD)/../..
5KERNEL_PATH ?= $(HAFNIUM_PATH)/../linux
Wedson Almeida Filho2f62b422018-06-19 06:44:32 +01006
7obj-m += hafnium.o
8
9hafnium-y += main.o
Andrew Scull55704232018-08-10 17:19:54 +010010hafnium-y += hf_call.o
11
12ccflags-y = -I$(HAFNIUM_PATH)/inc/vmapi
Wedson Almeida Filho2f62b422018-06-19 06:44:32 +010013
14all:
15 make -C $(KERNEL_PATH) M=$(PWD) modules
16
17clean:
18 make -C $(KERNEL_PATH) M=$(PWD) clean