diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-06-09 15:38:45 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-06-09 15:38:45 +0000 |
commit | f4e7bdac427e5cf7c06378fdb68e6f1780bcaff4 (patch) | |
tree | beda70cdc408c3248d07dec3bf53f7170d5623c2 /include/subdir.mk | |
parent | ef36c74b06f8fdc5d4e81b1bdfc1e3ad275e560f (diff) | |
download | upstream-f4e7bdac427e5cf7c06378fdb68e6f1780bcaff4.tar.gz upstream-f4e7bdac427e5cf7c06378fdb68e6f1780bcaff4.tar.bz2 upstream-f4e7bdac427e5cf7c06378fdb68e6f1780bcaff4.zip |
large improvement for parallel builds. works without V=99 now and without warnings. tested with -j on an 2x dual core opteron machine
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11414 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include/subdir.mk')
-rw-r--r-- | include/subdir.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/subdir.mk b/include/subdir.mk index 3097ea418d..e12799b475 100644 --- a/include/subdir.mk +++ b/include/subdir.mk @@ -28,8 +28,8 @@ define subdir $(call warn,$(1),d,BD $(1)/$(bd)) $(foreach target,$(SUBTARGETS), $(call warn_eval,$(1)/$(bd),t,T,$(1)/$(bd)/$(target): $(if $(QUILT),,$($(1)/$(bd)/$(target)) $(call $(1)//$(target),$(1)/$(bd)))) - +$$(MAKE) -j1 -C $(1)/$(bd) $(target) $(if $(findstring $(bd),$($(1)/builddirs-ignore-$(target))), || $(call MESSAGE, ERROR: $(1)/$(bd) failed to build.)) - + $(if $(findstring $(bd),$($(1)/builddirs-parallel)),$$(SUBMAKE),$$(_SINGLE)$$(SUBMAKE) -j1) \ + -C $(1)/$(bd) $(target) $(if $(findstring $(bd),$($(1)/builddirs-ignore-$(target))), || $(call MESSAGE, ERROR: $(1)/$(bd) failed to build.)) $$(if $(call debug,$(1)/$(bd),v),,.SILENT: $(1)/$(bd)/$(target)) # legacy targets |