diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-01-09 20:31:08 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-01-09 20:35:51 +0100 |
| commit | 864f5fa9d539734d823b3d0613dbf1a43beec334 (patch) | |
| tree | ed9fb844f80db660a976e83b61d9bf78206820c5 /Makefile | |
| parent | e9672e6ac38bdf49dc78181d66abb5b1d72a122a (diff) | |
| download | cachepc-864f5fa9d539734d823b3d0613dbf1a43beec334.tar.gz cachepc-864f5fa9d539734d823b3d0613dbf1a43beec334.zip | |
Use compilation load average target instead of jobs
Diffstat (limited to 'Makefile')
| -rwxr-xr-x | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,9 +1,9 @@ LINUX ?= linux -JOBS ?= 15 +LOAD ?= $(shell ls /dev/cpu | wc -l) PWD := $(shell pwd) BINS = test/eviction test/access test/kvm test/sev test/sev-es -BINS += test/fullstep test/execstep +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 @@ -28,13 +28,13 @@ host: git -C $(LINUX) checkout 0aaa1e5 $(MAKE) -C $(LINUX) oldconfig $(MAKE) -C $(LINUX) prepare - $(MAKE) -C $(LINUX) -j $(JOBS) bindeb-pkg - git -C $(LINUX) checkout HEAD + $(MAKE) -C $(LINUX) -l $(LOAD) + git -C $(LINUX) checkout master git -C $(LINUX) stash pop build: $(LINUX)/arch/x86/kvm/cachepc - $(MAKE) -C $(LINUX) -j $(JOBS) M=arch/x86/kvm modules - $(MAKE) -C $(LINUX) -j $(JOBS) M=crypto modules + $(MAKE) -C $(LINUX) -l $(LOAD) M=arch/x86/kvm modules + $(MAKE) -C $(LINUX) -l $(LOAD) M=crypto modules load: sudo rmmod kvm_amd || true |
