From 864f5fa9d539734d823b3d0613dbf1a43beec334 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Mon, 9 Jan 2023 20:31:08 +0100 Subject: Use compilation load average target instead of jobs --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e64e421..c22eb67 100755 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3-71-gd317