changeset 4559:e5b699ef3c77

7127104: Build issue with prtconf and zones, also using := to avoid extra execs Reviewed-by: katleman
author ohair
date Wed, 04 Jan 2012 17:44:34 -0800
parents eff45ca3391b
children 0bb7ab40ab76
files make/common/shared/Platform.gmk
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/make/common/shared/Platform.gmk	Wed Dec 28 13:02:43 2011 -0800
+++ b/make/common/shared/Platform.gmk	Wed Jan 04 17:44:34 2012 -0800
@@ -147,8 +147,8 @@
   endif
   # Suffix for file bundles used in previous release
   BUNDLE_FILE_SUFFIX=.tar
-  # 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