summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-02-06 15:15:58 -0600
committerLouis Burda <quent.burda@gmail.com>2023-02-06 15:15:58 -0600
commitfb8f08fd5718900d1a709f8a57d61e59cdfecf61 (patch)
tree091028ecf723d3c5d93f637648e3cb8e97172c4d /Makefile
parent8d018c17170a3b623f48de5282955b817a6284f3 (diff)
downloadcachepc-fb8f08fd5718900d1a709f8a57d61e59cdfecf61.tar.gz
cachepc-fb8f08fd5718900d1a709f8a57d61e59cdfecf61.zip
Add aes crypto stepping initial test
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9590b92..f5f9fb1 100755
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,8 @@ BINS += test/kvm-targetstep test/kvm-targetstep_guest
BINS += test/kvm-pagestep test/kvm-pagestep_guest
BINS += test/qemu-pagestep
BINS += test/qemu-targetstep test/qemu-targetstep_guest
-# BINS += test/qemu-aes_guest test/qemu-aes
+BINS += test/qemu-aes_guest test/qemu-aes
+#BINS += test/qemu-poc
BINS += util/loglevel util/reset util/mainpfn
CFLAGS = -I . -I linux/usr/include
@@ -51,7 +52,7 @@ linux: # build host kernel for depmod
build: $(LINUX)/arch/x86/kvm/cachepc
$(MAKE) -C $(LINUX) -j $(JOBS) -l $(LOAD) M=arch/x86/kvm modules
- #$(MAKE) -C $(LINUX) -j $(JOBS) -l $(LOAD) M=crypto modules
+ $(MAKE) -C $(LINUX) -j $(JOBS) -l $(LOAD) M=crypto modules
load:
sudo rmmod kvm_amd || true
@@ -94,7 +95,10 @@ test/kvm-eviction: test/kvm-eviction.c test/kvm-eviction.h $(TEST_SRCS)
test/qemu-%: test/qemu-%.c $(TEST_SRCS)
$(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(HOST_CFLAGS) $(LDLIBS)
+test/qemu-aes_guest: test/qemu-aes_guest.c test/libkcapi/.libs/libkcapi.a
+ $(CC) -o $@ $^ $(GUEST_CFLAGS) -I test/libkcapi/lib
+
test/qemu-%_guest: test/qemu-%_guest.c
- $(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(GUEST_CFLAGS) $(LDLIBS)
+ $(CC) -o $@ $^ $(GUEST_CFLAGS)
.PHONY: all clean linux build load prep