summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-10 01:37:23 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-10 01:38:43 +0100
commit252b11a01e061fd17821e53a41c8451a1d2c27bd (patch)
treee887ead2faddc8691fc13da426655a0062351cdc /Makefile
parent864f5fa9d539734d823b3d0613dbf1a43beec334 (diff)
downloadcachepc-252b11a01e061fd17821e53a41c8451a1d2c27bd.tar.gz
cachepc-252b11a01e061fd17821e53a41c8451a1d2c27bd.zip
Begin ioctl and test-case overhaul
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index c22eb67..e6ca7b9 100755
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,15 @@
LINUX ?= linux
-LOAD ?= $(shell ls /dev/cpu | wc -l)
+CORES ?= $(shell ls /dev/cpu | wc -l)
+LOAD ?= $(CORES)
+JOBS ?= $(CORES)
PWD := $(shell pwd)
-BINS = test/eviction test/access test/kvm test/sev test/sev-es
-BINS += test/fullstep test/execstep
-BINS += test/aes-detect_guest test/aes-detect_host
-BINS += test/access-detect_guest test/access-detect_host
-BINS += test/readsvme util/debug util/reset
+BINS = test/eviction test/kvm-eviction # test/kvm-execstep
+# BINS += test/qemu-eviction_guest test/qemu-eviction_host
+# BINS += test/qemu-aes_guest test/qemu-aes_host
+BINS += util/svme util/debug util/reset
-CFLAGS = -I . -I test -Wunused-variable -Wunknown-pragmas
+CFLAGS = -I . -I linux/usr/include -I test -Wunused-variable -Wunknown-pragmas
all: build $(BINS)
@@ -28,13 +29,14 @@ host:
git -C $(LINUX) checkout 0aaa1e5
$(MAKE) -C $(LINUX) oldconfig
$(MAKE) -C $(LINUX) prepare
- $(MAKE) -C $(LINUX) -l $(LOAD)
+ $(MAKE) -C $(LINUX) -j $(JOBS) -l $(LOAD)
+ $(MAKE) -C $(LINUX) -j $(JOBS) -l $(LOAD) headers
git -C $(LINUX) checkout master
git -C $(LINUX) stash pop
build: $(LINUX)/arch/x86/kvm/cachepc
- $(MAKE) -C $(LINUX) -l $(LOAD) M=arch/x86/kvm modules
- $(MAKE) -C $(LINUX) -l $(LOAD) M=crypto modules
+ $(MAKE) -C $(LINUX) -j $(JOBS) -l $(LOAD) M=arch/x86/kvm modules
+ $(MAKE) -C $(LINUX) -j $(JOBS) -l $(LOAD) M=crypto modules
load:
sudo rmmod kvm_amd || true