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 /rules.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 'rules.mk')
-rw-r--r-- | rules.mk | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -23,6 +23,12 @@ $(strip $(subst ",,$(1))) endef #")) +empty:= +space:= $(empty) $(empty) +merge=$(subst $(space),,$(1)) +confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n))) + +_SINGLE=MAKEFLAGS=$(space) ARCH:=$(call qstrip,$(shell echo $(CONFIG_ARCH) | sed -e 's/i[3-9]86/i386/')) BOARD:=$(call qstrip,$(CONFIG_TARGET_BOARD)) TARGET_OPTIMIZATION:=$(call qstrip,$(CONFIG_TARGET_OPTIMIZATION)) @@ -145,11 +151,6 @@ $(call shvar,$(1))=$$(call $(1)) export $(call shvar,$(1)) endef -empty:= -space:= $(empty) $(empty) -merge=$(subst $(space),,$(1)) -confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n))) - # file extension ext=$(word $(words $(subst ., ,$(1))),$(subst ., ,$(1))) |