Hi,

I like to propose a small and simple patch for parallel builds via make
-j#. Currently I see

make[1]: Entering directory `/usr/src/linux-3.3.4-lh'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent
make rule.

Which gets fixed with the patch attached. I didn't do a clean git
format-patch on all branches, I am sorry. But the principle should apply
there too.

Here some background informations from one of our devs
http://blog.flameeyes.eu/2008/11/for-a-parallel-world-case-study-n-4-jobserver-unavailable

Thanks for inclusion,
Justin
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 9031813..94329c0 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ export CONFIG_AUFS_FS
 EXTRA_CFLAGS := -I${CURDIR}/include
 EXTRA_CFLAGS += ${AUFS_DEF_CONFIG}
 
-MakeMod = ${MAKE} -C ${KDIR} M=${CURDIR}/fs/aufs EXTRA_CFLAGS="${EXTRA_CFLAGS}"
+MakeMod = -C ${KDIR} M=${CURDIR}/fs/aufs EXTRA_CFLAGS="${EXTRA_CFLAGS}"
 
 all: aufs.ko usr/include/linux/aufs_type.h
 
@@ -39,7 +39,7 @@ aufs.ko: fs/aufs/aufs.ko
 
 fs/aufs/aufs.ko:
 	@echo ${EXTRA_CFLAGS}
-	${MakeMod} modules
+	${MAKE} ${MakeMod} modules
 
 usr/include/linux/aufs_type.h: d = $(shell echo ${CURDIR} | cut -c2-)
 usr/include/linux/aufs_type.h:

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Reply via email to