From b94d2cffc64277c71874bed05508613e4d5db28d Mon Sep 17 00:00:00 2001 From: Cristian Stoica Date: Tue, 17 Mar 2026 08:20:18 +0200 Subject: [PATCH 1/3] add modules_install make target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1557cb2..f3d592a 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,16 @@ ifeq ($(KERNELRELEASE),) KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) -.PHONY: build clean +.PHONY: build clean modules_install build: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules clean: rm -f *.o core .depend .*.cmd *.ko *.mod.c *.mod .*.o.d modules.order Module.symvers rm -rf .tmp_versions +modules_install: + $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install + else $(info Building with KERNELRELEASE = ${KERNELRELEASE}) From 719fcd4bc5f0c496ea931280c1daf8b320814ee5 Mon Sep 17 00:00:00 2001 From: Cristian Stoica Date: Tue, 17 Mar 2026 08:25:32 +0200 Subject: [PATCH 2/3] update clean makefile target --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f3d592a..07b3264 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ build: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules clean: rm -f *.o core .depend .*.cmd *.ko *.mod.c *.mod .*.o.d modules.order Module.symvers - rm -rf .tmp_versions + rm -rf .tmp_versions .module-common.o modules_install: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install From bc4b08e0a6f4f7f60be3c026feeff1d2caeff7b1 Mon Sep 17 00:00:00 2001 From: Cristian Stoica Date: Tue, 17 Mar 2026 08:30:10 +0200 Subject: [PATCH 3/3] use all available cores for a faster build Signed-off-by: Cristian Stoica --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 07b3264..7dfe38a 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) .PHONY: build clean modules_install build: - $(MAKE) -C $(KERNELDIR) M=$(PWD) modules + $(MAKE) -C $(KERNELDIR) -j$(NPROC) M=$(PWD) modules clean: rm -f *.o core .depend .*.cmd *.ko *.mod.c *.mod .*.o.d modules.order Module.symvers rm -rf .tmp_versions .module-common.o