[csw-devel] SF.net SVN: gar:[16195] csw/mgar/gar/v2/gar.conf.mk
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Tue Nov 15 11:21:50 CET 2011
Revision: 16195
http://gar.svn.sourceforge.net/gar/?rev=16195&view=rev
Author: dmichelsen
Date: 2011-11-15 10:21:50 +0000 (Tue, 15 Nov 2011)
Log Message:
-----------
mGAR v2: Skip duplicate ISA requests
Modified Paths:
--------------
csw/mgar/gar/v2/gar.conf.mk
Modified: csw/mgar/gar/v2/gar.conf.mk
===================================================================
--- csw/mgar/gar/v2/gar.conf.mk 2011-11-15 10:11:14 UTC (rev 16194)
+++ csw/mgar/gar/v2/gar.conf.mk 2011-11-15 10:21:50 UTC (rev 16195)
@@ -452,7 +452,11 @@
# BUILD_ISAS contains all ISAs that can be built on the current kernel
# It is guaranteed that all BUILD_ISAS come first in NEEDED_ISAS
# Set 'BUILD64 = 1' to build 64 bit versions automatically
-REQUESTED_ISAS ?= $(strip $(foreach A,$(GARCHLIST),$(ISA_DEFAULT_$A) $(if $(BUILD64),$(ISA_DEFAULT64_$A)) $(EXTRA_BUILD_ISAS_$A)) $(EXTRA_BUILD_ISAS))
+
+# Just keeps the first appearance of each word
+remove-duplicates = $(if $1,$(firstword $1) $(call remove-duplicates,$(filter-out $(firstword $1),$1)))
+
+REQUESTED_ISAS ?= $(strip $(call remove-duplicates,$(foreach A,$(GARCHLIST),$(ISA_DEFAULT_$A) $(if $(BUILD64),$(ISA_DEFAULT64_$A)) $(EXTRA_BUILD_ISAS_$A)) $(EXTRA_BUILD_ISAS)))
NEEDED_ISAS ?= $(strip $(filter $(ISALIST_$(KERNELISA)),$(filter $(ISALIST_$(ISA_DEFAULT64_$(GARCH))),$(REQUESTED_ISAS))) \
$(filter-out $(ISALIST_$(KERNELISA)),$(filter $(ISALIST_$(ISA_DEFAULT64_$(GARCH))),$(REQUESTED_ISAS))))
BUILD_ISAS ?= $(filter $(ISALIST_$(KERNELISA)),$(NEEDED_ISAS))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list