aboutsummaryrefslogtreecommitdiffstats
path: root/xen/Rules.mk
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-29 14:54:43 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-29 14:54:43 +0100
commit54336cd68592c0d48749ac5d3ce2c20fbfd2ab46 (patch)
tree6b821c65a3b5867403ec5c0a4a4919dd524f1cb0 /xen/Rules.mk
parentbf952827326514e26b6a5b3b5209c1e64076db97 (diff)
downloadxen-54336cd68592c0d48749ac5d3ce2c20fbfd2ab46.tar.gz
xen-54336cd68592c0d48749ac5d3ce2c20fbfd2ab46.tar.bz2
xen-54336cd68592c0d48749ac5d3ce2c20fbfd2ab46.zip
Make maximum number of supported physical CPUs a compile-time
option via the 'max_phys_cpus=<nr>' compilation parameter. Based on a patch from Aravindh Puthiyaparambil at Unisys. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/Rules.mk')
-rw-r--r--xen/Rules.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/Rules.mk b/xen/Rules.mk
index 55aab4c95e..f887ea44f5 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -51,6 +51,10 @@ CFLAGS-$(crash_debug) += -DCRASH_DEBUG
CFLAGS-$(perfc) += -DPERF_COUNTERS
CFLAGS-$(perfc_arrays) += -DPERF_ARRAYS
+ifneq ($(max_phys_cpus),)
+CFLAGS-y += -DMAX_PHYS_CPUS=$(max_phys_cpus)
+endif
+
ALL_OBJS := $(ALL_OBJS-y)
CFLAGS := $(strip $(CFLAGS) $(CFLAGS-y))