From: Tim Gardner Date: Mon, 22 Aug 2011 17:18:13 +0000 (-0600) Subject: UBUNTU: [Config] Set concurrency for kmake invocations X-Git-Url: http://git.alex.org.uk UBUNTU: [Config] Set concurrency for kmake invocations As it turns out, 'kmake modules_install' understands concurrency, and is quite a bit faster when told to parallelize the copy operation. Signed-off-by: Tim Gardner --- diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk index 3d3578a..62550cd 100644 --- a/debian/rules.d/2-binary-arch.mk +++ b/debian/rules.d/2-binary-arch.mk @@ -72,7 +72,7 @@ ifeq ($(no_dumpfile),) chmod 0600 $(pkgdir)/boot/vmcoreinfo-$(abi_release)-$* endif - $(build_cd) $(kmake) $(build_O) modules_install \ + $(build_cd) $(kmake) $(build_O) $(conc_level) modules_install \ INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$(pkgdir)/ \ INSTALL_FW_PATH=$(pkgdir)/lib/firmware/$(abi_release)-$* @@ -158,7 +158,7 @@ endif sed -e 's/.*CONFIG_DEBUG_INFO=.*/# CONFIG_DEBUG_INFO is not set/g' > \ $(hdrdir)/.config chmod 644 $(hdrdir)/.config - $(kmake) O=$(hdrdir) silentoldconfig prepare scripts + $(kmake) O=$(hdrdir) -j1 silentoldconfig prepare scripts # We'll symlink this stuff rm -f $(hdrdir)/Makefile rm -rf $(hdrdir)/include2