Print this page
3806 illumos build execs echo unnecessarily
Reviewed by: Garrett D'Amore <garrett.damore@gmail.com>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.

  25 #
  26 #       This makefile contains the common definitions for the sun4u unix
  27 #       and all sun4u implementation architecture dependent modules.
  28 #
  29 
  30 #
  31 #       Machine type (implementation architecture):
  32 #
  33 PLATFORM         = sun4u
  34 PROMIF           = ieee1275
  35 PSMBASE          = $(UTSBASE)/../psm
  36 
  37 #
  38 #       uname -m value
  39 #
  40 UNAME_M         = $(PLATFORM)
  41 
  42 #
  43 # Definitions for the platform-specific /platform directories.
  44 #


 256 include $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
 257 
 258 #
 259 #       Debugging level
 260 #
 261 #       Special knowledge of which special debugging options effect which
 262 #       file is used to optimize the build if these flags are changed.
 263 #
 264 #       XXX: The above could possibly be done for more flags and files, but
 265 #            is left as an experiment to the interested reader. Be forewarned,
 266 #            that excessive use could lead to maintenance difficulties.
 267 #
 268 #       Note: kslice can be enabled for the sun4u, but is disabled by default
 269 #             in all cases.
 270 #
 271 
 272 DEBUG_DEFS_OBJ64        =
 273 DEBUG_DEFS_DBG64        = -DDEBUG
 274 DEBUG_DEFS              = $(DEBUG_DEFS_$(BUILD_TYPE))
 275 
 276 DEBUG_COND_OBJ64        :sh = echo \\043
 277 DEBUG_COND_DBG64        = 
 278 IF_DEBUG_OBJ            = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
 279 
 280 $(IF_DEBUG_OBJ)trap.o           :=      DEBUG_DEFS      += -DTRAPDEBUG
 281 $(IF_DEBUG_OBJ)mach_trap.o      :=      DEBUG_DEFS      += -DTRAPDEBUG
 282 $(IF_DEBUG_OBJ)syscall_trap.o   :=      DEBUG_DEFS      += -DSYSCALLTRACE
 283 $(IF_DEBUG_OBJ)clock.o          :=      DEBUG_DEFS      += -DKSLICE=0
 284 
 285 IF_TRAPTRACE_OBJ = $(IF_DEBUG_OBJ)
 286 # comment this out for a non-debug kernel with TRAPTRACE
 287 #IF_TRAPTRACE_OBJ = $(OBJS_DIR)/
 288 
 289 $(IF_TRAPTRACE_OBJ)mach_locore.o        :=      DEBUG_DEFS      += -DTRAPTRACE
 290 $(IF_TRAPTRACE_OBJ)mlsetup.o            :=      DEBUG_DEFS      += -DTRAPTRACE
 291 $(IF_TRAPTRACE_OBJ)syscall_trap.o       :=      DEBUG_DEFS      += -DTRAPTRACE
 292 $(IF_TRAPTRACE_OBJ)startup.o            :=      DEBUG_DEFS      += -DTRAPTRACE
 293 $(IF_TRAPTRACE_OBJ)mach_startup.o       :=      DEBUG_DEFS      += -DTRAPTRACE
 294 $(IF_TRAPTRACE_OBJ)mp_startup.o         :=      DEBUG_DEFS      += -DTRAPTRACE
 295 $(IF_TRAPTRACE_OBJ)cpu_states.o         :=      DEBUG_DEFS      += -DTRAPTRACE
 296 $(IF_TRAPTRACE_OBJ)mach_cpu_states.o    :=      DEBUG_DEFS      += -DTRAPTRACE




   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
  26 #
  27 #       This makefile contains the common definitions for the sun4u unix
  28 #       and all sun4u implementation architecture dependent modules.
  29 #
  30 
  31 #
  32 #       Machine type (implementation architecture):
  33 #
  34 PLATFORM         = sun4u
  35 PROMIF           = ieee1275
  36 PSMBASE          = $(UTSBASE)/../psm
  37 
  38 #
  39 #       uname -m value
  40 #
  41 UNAME_M         = $(PLATFORM)
  42 
  43 #
  44 # Definitions for the platform-specific /platform directories.
  45 #


 257 include $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
 258 
 259 #
 260 #       Debugging level
 261 #
 262 #       Special knowledge of which special debugging options effect which
 263 #       file is used to optimize the build if these flags are changed.
 264 #
 265 #       XXX: The above could possibly be done for more flags and files, but
 266 #            is left as an experiment to the interested reader. Be forewarned,
 267 #            that excessive use could lead to maintenance difficulties.
 268 #
 269 #       Note: kslice can be enabled for the sun4u, but is disabled by default
 270 #             in all cases.
 271 #
 272 
 273 DEBUG_DEFS_OBJ64        =
 274 DEBUG_DEFS_DBG64        = -DDEBUG
 275 DEBUG_DEFS              = $(DEBUG_DEFS_$(BUILD_TYPE))
 276 
 277 DEBUG_COND_OBJ64        = $(POUND_SIGN)
 278 DEBUG_COND_DBG64        = 
 279 IF_DEBUG_OBJ            = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
 280 
 281 $(IF_DEBUG_OBJ)trap.o           :=      DEBUG_DEFS      += -DTRAPDEBUG
 282 $(IF_DEBUG_OBJ)mach_trap.o      :=      DEBUG_DEFS      += -DTRAPDEBUG
 283 $(IF_DEBUG_OBJ)syscall_trap.o   :=      DEBUG_DEFS      += -DSYSCALLTRACE
 284 $(IF_DEBUG_OBJ)clock.o          :=      DEBUG_DEFS      += -DKSLICE=0
 285 
 286 IF_TRAPTRACE_OBJ = $(IF_DEBUG_OBJ)
 287 # comment this out for a non-debug kernel with TRAPTRACE
 288 #IF_TRAPTRACE_OBJ = $(OBJS_DIR)/
 289 
 290 $(IF_TRAPTRACE_OBJ)mach_locore.o        :=      DEBUG_DEFS      += -DTRAPTRACE
 291 $(IF_TRAPTRACE_OBJ)mlsetup.o            :=      DEBUG_DEFS      += -DTRAPTRACE
 292 $(IF_TRAPTRACE_OBJ)syscall_trap.o       :=      DEBUG_DEFS      += -DTRAPTRACE
 293 $(IF_TRAPTRACE_OBJ)startup.o            :=      DEBUG_DEFS      += -DTRAPTRACE
 294 $(IF_TRAPTRACE_OBJ)mach_startup.o       :=      DEBUG_DEFS      += -DTRAPTRACE
 295 $(IF_TRAPTRACE_OBJ)mp_startup.o         :=      DEBUG_DEFS      += -DTRAPTRACE
 296 $(IF_TRAPTRACE_OBJ)cpu_states.o         :=      DEBUG_DEFS      += -DTRAPTRACE
 297 $(IF_TRAPTRACE_OBJ)mach_cpu_states.o    :=      DEBUG_DEFS      += -DTRAPTRACE