vhba-kmp/vhba-parallel-build.diff

47 lines
973 B
Diff
Raw Normal View History

From: Jan Engelhardt <jengelh@inai.de>
Date: 2012-05-08 22:50:50.918987100
build: enable parallel build
${MAKE} -C must not be hidden behind a variable to not break parallel
building.
---
Makefile | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
Index: vhba-module-20120422/Makefile
===================================================================
--- vhba-module-20120422.orig/Makefile
+++ vhba-module-20120422/Makefile
@@ -5,27 +5,18 @@ EXTRA_CFLAGS += -DVHBA_VERSION=\"$(VHBA_
obj-m += vhba.o
-PWD ?= `pwd`
KERNELRELEASE ?= `uname -r`
KDIR ?= /lib/modules/$(KERNELRELEASE)/build
-KMAKE := $(MAKE) -C $(KDIR) M=$(PWD)
DOCS = AUTHORS ChangeLog COPYING INSTALL NEWS README
all: modules
-modules:
- $(KMAKE) modules
-
-module_install:
- $(KMAKE) modules_install
+modules modules_install clean:
+ ${MAKE} -C ${KDIR} M=$$PWD $@
install: module_install
-clean:
- $(KMAKE) clean
- rm -fr $(PACKAGE)
-
dist: dist-gzip
dist-dir: