diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-10-04 14:49:17 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-10-04 14:49:17 +0200 |
| commit | 2305b5cbd8d75f8e01a1298f9490d2270d740d1d (patch) | |
| tree | f7981e0e532b84284437fa796c99770d0c3c6aed /Makefile | |
| parent | c96fd52e41b1ffe23675a8a7bab8df9278d9182b (diff) | |
| download | cachepc-2305b5cbd8d75f8e01a1298f9490d2270d740d1d.tar.gz cachepc-2305b5cbd8d75f8e01a1298f9490d2270d740d1d.zip | |
Small fixes
Diffstat (limited to 'Makefile')
| -rwxr-xr-x | Makefile | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -1,24 +1,15 @@ KERNEL_SOURCE ?= /usr/src/linux PWD := $(shell pwd) -.PHONY: all reset clean prepare build - -all: reset clean prepare build test/eviction test/access test/kvm test/sev test/sev-es +all: build test/eviction test/access test/kvm test/sev test/sev-es clean: $(MAKE) -C $(KERNEL_SOURCE) SUBDIRS=arch/x86/kvm clean -reset: - git -C $(KERNEL_SOURCE) reset --hard - $(KERNEL_SOURCE)/arch/x86/kvm/svm/cachepc: ln -sf $(PWD)/kmod $@ -prepare: $(KERNEL_SOURCE)/arch/x86/kvm/svm/cachepc - git -C $(KERNEL_SOURCE) apply $(PWD)/patch.diff - build: - #$(MAKE) -C $(KERNEL_SOURCE) arch/x86/kvm/kvm.ko arch/x86/kvm/kvm-amd.ko $(MAKE) -C $(KERNEL_SOURCE) -j6 M=arch/x86/kvm load: @@ -32,4 +23,6 @@ test/%: test/%.c kmod/cachepc_user.h clang -fsanitize=address -o $@ $< -I kmod -Wunused-variable update: - git -C $(KERNEL_SOURCE) diff > patch.diff + git -C $(KERNEL_SOURCE) diff 0aaa1e599bee256b3b15643bbb95e80ce7aa9be5 -G. > patch.diff + +.PHONY: all clean build load update |
