7127104: Build issue with prtconf and zones, also using := to avoid extra execs
authorohair
Wed Jan 04 17:32:46 2012 -0800 (16 months ago)
changeset 54141a7f002492d
parent 5408f6523cdd46e
child 542edc311f95cf0
7127104: Build issue with prtconf and zones, also using := to avoid extra execs
Reviewed-by: katleman
make/common/shared/Platform.gmk
--- a/make/common/shared/Platform.gmk Wed Jan 04 11:22:55 2012 -0800
+++ b/make/common/shared/Platform.gmk Wed Jan 04 17:32:46 2012 -0800
@@ -170,8 +170,8 @@ ifeq ($(SYSTEM_UNAME), SunOS)
else
REQUIRED_OS_VERSION = 5.8
endif
- # How much RAM does this machine have:
- MB_OF_MEMORY=$(shell /usr/sbin/prtconf | fgrep 'Memory size:' | expand | cut -d' ' -f3)
+ # How much RAM does this machine have (zones send an error to stderr):
+ MB_OF_MEMORY:=$(shell /usr/sbin/prtconf 2>/dev/null | fgrep 'Memory size:' | expand | cut -d' ' -f3)
endif
# Platform settings specific to Linux