220 PATH_SEP:=: |
220 PATH_SEP:=: |
221 endif |
221 endif |
222 |
222 |
223 # Check number of cores |
223 # Check number of cores |
224 ifeq ($(OPENJDK_TARGET_OS), linux) |
224 ifeq ($(OPENJDK_TARGET_OS), linux) |
225 NUM_CORES := $(shell $(CAT) /proc/cpuinfo | $(GREP) -c processor) |
225 NUM_CORES := $(shell $(CAT) /proc/cpuinfo | $(GREP) -c processor) |
226 else ifeq ($(OPENJDK_TARGET_OS), macosx) |
226 else ifeq ($(OPENJDK_TARGET_OS), macosx) |
227 NUM_CORES := $(shell /usr/sbin/sysctl -n hw.ncpu) |
227 NUM_CORES := $(shell /usr/sbin/sysctl -n hw.ncpu) |
228 else ifeq ($(OPENJDK_TARGET_OS), solaris) |
228 else ifeq ($(OPENJDK_TARGET_OS), solaris) |
229 NUM_CORES := $(shell LC_MESSAGES=C /usr/sbin/psrinfo -v | $(GREP) -c on-line) |
229 NUM_CORES := $(shell LC_MESSAGES=C /usr/sbin/psrinfo -v | $(GREP) -c on-line) |
230 else ifeq ($(OPENJDK_TARGET_OS), windows) |
230 else ifeq ($(OPENJDK_TARGET_OS), windows) |
231 NUM_CORES := $(NUMBER_OF_PROCESSORS) |
231 NUM_CORES := $(NUMBER_OF_PROCESSORS) |
232 else |
232 endif |
233 NUM_CORES := 1 |
233 ifeq ($(NUM_CORES), ) |
|
234 $(warn Could not find number of CPUs, assuming 1) |
|
235 NUM_CORES := 1 |
234 endif |
236 endif |
235 |
237 |
236 ################################################################################ |
238 ################################################################################ |
237 # Generate the ephemeral spec file |
239 # Generate the ephemeral spec file |
238 ################################################################################ |
240 ################################################################################ |