Files
intel-linux-sgx-driver/Makefile
T
Ayoun Serge efcde02427 Build error fixes for kernel 5.3 and later
apply_to_page_range() API signature was changed
Makefile does not support SUBDIR anymore

Signed-off-by: Ayoun Serge <serge.ayoun@intel.com>
2019-09-23 10:58:24 +03:00

26 lines
540 B
Makefile

ifneq ($(KERNELRELEASE),)
isgx-y := \
sgx_main.o \
sgx_page_cache.o \
sgx_ioctl.o \
sgx_vma.o \
sgx_util.o\
sgx_encl.o \
sgx_encl2.o
obj-m += isgx.o
else
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
install: default
$(MAKE) INSTALL_MOD_DIR=kernel/drivers/intel/sgx -C $(KDIR) M=$(PWD) modules_install
sh -c "cat /etc/modules | grep -Fxq isgx || echo isgx >> /etc/modules"
endif
clean:
rm -vrf *.o *.ko *.order *.symvers *.mod.c .tmp_versions .*o.cmd