Print this page
remove inlines,some other files


   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 # uts/i86xpv/Makefile.i86xpv
  24 #
  25 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  26 # Use is subject to license terms.
  27 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.

  28 #
  29 
  30 #
  31 #       This makefile contains the common definitions for the i86xpv unix
  32 #       and all i86xpv implementation architecture dependent modules.
  33 #
  34 
  35 #
  36 #       Machine type (implementation architecture):
  37 #
  38 PLATFORM         = i86xpv
  39 
  40 #
  41 #       uname -m value
  42 #
  43 UNAME_M          = i86pc
  44 
  45 #
  46 #       Everybody needs to know how to build modstubs.o and to locate unix.o
  47 #


  80 #       interfaces.)
  81 #
  82 include $(UTSBASE)/$(PLATFORM)/Makefile.files
  83 include $(UTSBASE)/intel/Makefile.files
  84 include $(UTSBASE)/common/Makefile.files
  85 
  86 #
  87 #       Include machine independent rules. Note that this does not imply
  88 #       that the resulting module from rules in Makefile.uts is machine
  89 #       independent. Only that the build rules are machine independent.
  90 #
  91 include $(UTSBASE)/Makefile.uts
  92 
  93 #
  94 #       Define supported builds
  95 #
  96 DEF_BUILDS              = $(DEF_BUILDS64)
  97 ALL_BUILDS              = $(ALL_BUILDS64)
  98 
  99 #
 100 #       x86 or amd64 inline templates
 101 #
 102 INLINES_32              = $(UTSBASE)/intel/ia32/ml/ia32.il \
 103                           $(UTSBASE)/$(PLATFORM)/ml/ia32.il
 104 INLINES_64              = $(UTSBASE)/intel/amd64/ml/amd64.il \
 105                           $(UTSBASE)/$(PLATFORM)/ml/amd64.il
 106 INLINES                 += $(INLINES_$(CLASS))
 107 
 108 #
 109 #       kernel-specific optimizations; override default in Makefile.master
 110 #
 111 
 112 CFLAGS_XARCH_32         = $(i386_CFLAGS)
 113 CFLAGS_XARCH_64         = $(amd64_CFLAGS)
 114 CFLAGS_XARCH            = $(CFLAGS_XARCH_$(CLASS))
 115 
 116 COPTFLAG_32             = $(COPTFLAG)
 117 COPTFLAG_64             = $(COPTFLAG64)
 118 COPTIMIZE               = $(COPTFLAG_$(CLASS))
 119 
 120 CFLAGS                  = $(CFLAGS_XARCH)
 121 CFLAGS                  += $(COPTIMIZE)
 122 CFLAGS                  += $(INLINES) -D_ASM_INLINES
 123 CFLAGS                  += $(CCMODE)
 124 CFLAGS                  += $(SPACEFLAG)
 125 CFLAGS                  += $(CCUNBOUND)
 126 CFLAGS                  += $(CFLAGS_uts)
 127 
 128 ASFLAGS_XARCH_32        = $(i386_ASFLAGS)
 129 ASFLAGS_XARCH_64        = $(amd64_ASFLAGS)
 130 ASFLAGS_XARCH           = $(ASFLAGS_XARCH_$(CLASS))
 131 
 132 ASFLAGS                 += $(ASFLAGS_XARCH)
 133 
 134 AS_INC_PATH             += -I$(DSF_DIR)/$(OBJS_DIR)
 135 
 136 #
 137 #       The following must be defined for all implementations:
 138 #
 139 #       MAPFILE:        ld mapfile for the build of kernel/unix.
 140 #       MODSTUBS:       Module stubs source file.
 141 #       GENASSYM_SRC:   genassym.c
 142 
 143 MAPFILE         = $(UTSBASE)/$(PLATFORM)/conf/Mapfile
 144 MODSTUBS        = $(UTSBASE)/intel/ia32/ml/modstubs.s
 145 GENASSYM_SRC    = $(UTSBASE)/i86pc/ml/genassym.c
 146 OFFSETS_SRC     = $(UTSBASE)/i86pc/ml/offsets.in
 147 
 148 #PLATFORM_OFFSETS_32    = $(UTSBASE)/$(PLATFORM)/ml/mach_offsets.in
 149 PLATFORM_OFFSETS_32     = $(UTSBASE)/i86pc/ml/mach_offsets.in
 150 PLATFORM_OFFSETS_64     = $(UTSBASE)/intel/amd64/ml/mach_offsets.in
 151 PLATFORM_OFFSETS_SRC    = $(PLATFORM_OFFSETS_$(CLASS))
 152 KDI_OFFSETS_SRC         = $(UTSBASE)/intel/kdi/kdi_offsets.in
 153 
 154 #
 155 #       Define the actual specific platforms
 156 #
 157 MACHINE_DEFS     = -D__$(PLATFORM) -D__xpv -D_MACHDEP
 158 
 159 #
 160 #       Software workarounds for hardware "features"
 161 #
 162 
 163 include $(UTSBASE)/i86pc/Makefile.workarounds
 164 
 165 #
 166 #       Debugging level
 167 #
 168 #       Special knowledge of which special debugging options effect which
 169 #       file is used to optimize the build if these flags are changed.
 170 #
 171 #       XXX: The above could possibly be done for more flags and files, but
 172 #            is left as an experiment to the interested reader. Be forewarned,
 173 #            that excessive use could lead to maintenance difficulties.
 174 #
 175 DEBUG_DEFS_OBJ32        =
 176 DEBUG_DEFS_DBG32        = -DDEBUG
 177 DEBUG_DEFS_OBJ64        =
 178 DEBUG_DEFS_DBG64        = -DDEBUG
 179 DEBUG_DEFS              = $(DEBUG_DEFS_$(BUILD_TYPE))
 180 
 181 DEBUG_COND_OBJ32        = $(POUND_SIGN)
 182 DEBUG_COND_DBG32        =
 183 DEBUG_COND_OBJ64        = $(POUND_SIGN)
 184 DEBUG_COND_DBG64        =
 185 IF_DEBUG_OBJ            = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
 186 
 187 $(IF_DEBUG_OBJ)trap.o           := DEBUG_DEFS += -DTRAPDEBUG -DTRAPTRACE
 188 $(IF_DEBUG_OBJ)syscall_asm.o    := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
 189 $(IF_DEBUG_OBJ)syscall_asm_amd64.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
 190 $(IF_DEBUG_OBJ)fast_trap_asm.o  := DEBUG_DEFS += -DTRAPTRACE
 191 $(IF_DEBUG_OBJ)interrupt.o      := DEBUG_DEFS += -DTRAPTRACE
 192 $(IF_DEBUG_OBJ)intr.o           := DEBUG_DEFS += -DTRAPTRACE
 193 $(IF_DEBUG_OBJ)locore.o         := DEBUG_DEFS += -DTRAPTRACE
 194 $(IF_DEBUG_OBJ)mp_startup.o     := DEBUG_DEFS += -DTRAPTRACE
 195 $(IF_DEBUG_OBJ)machdep.o        := DEBUG_DEFS += -DTRAPTRACE
 196 $(IF_DEBUG_OBJ)exception.o      := DEBUG_DEFS += -DTRAPTRACE
 197 $(IF_DEBUG_OBJ)x_call.o         := DEBUG_DEFS += -DTRAPTRACE
 198 $(IF_DEBUG_OBJ)mp_call.o        := DEBUG_DEFS += -DTRAPTRACE
 199 $(IF_DEBUG_OBJ)cbe.o            := DEBUG_DEFS += -DTRAPTRACE
 200 $(IF_DEBUG_OBJ)hyperevent.o     := DEBUG_DEFS += -DTRAPTRACE
 201 $(IF_DEBUG_OBJ)evtchn.o         := DEBUG_DEFS += -DTRAPTRACE
 202 
 203 #
 204 #       Collect the preprocessor definitions to be associated with *all*
 205 #       files.
 206 #
 207 ALL_DEFS         = $(MACHINE_DEFS) $(WORKAROUND_DEFS) $(DEBUG_DEFS) \
 208                    $(OPTION_DEFS)
 209 GENASSYM_DEFS    = $(MACHINE_DEFS) $(OPTION_DEFS) \




   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 # uts/i86xpv/Makefile.i86xpv
  24 #
  25 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  26 # Use is subject to license terms.
  27 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
  28 # Copyright 2019 Joyent, Inc.
  29 #
  30 
  31 #
  32 #       This makefile contains the common definitions for the i86xpv unix
  33 #       and all i86xpv implementation architecture dependent modules.
  34 #
  35 
  36 #
  37 #       Machine type (implementation architecture):
  38 #
  39 PLATFORM         = i86xpv
  40 
  41 #
  42 #       uname -m value
  43 #
  44 UNAME_M          = i86pc
  45 
  46 #
  47 #       Everybody needs to know how to build modstubs.o and to locate unix.o
  48 #


  81 #       interfaces.)
  82 #
  83 include $(UTSBASE)/$(PLATFORM)/Makefile.files
  84 include $(UTSBASE)/intel/Makefile.files
  85 include $(UTSBASE)/common/Makefile.files
  86 
  87 #
  88 #       Include machine independent rules. Note that this does not imply
  89 #       that the resulting module from rules in Makefile.uts is machine
  90 #       independent. Only that the build rules are machine independent.
  91 #
  92 include $(UTSBASE)/Makefile.uts
  93 
  94 #
  95 #       Define supported builds
  96 #
  97 DEF_BUILDS              = $(DEF_BUILDS64)
  98 ALL_BUILDS              = $(ALL_BUILDS64)
  99 
 100 #









 101 #       kernel-specific optimizations; override default in Makefile.master
 102 #
 103 
 104 CFLAGS_XARCH_32         = $(i386_CFLAGS)
 105 CFLAGS_XARCH_64         = $(amd64_CFLAGS)
 106 CFLAGS_XARCH            = $(CFLAGS_XARCH_$(CLASS))
 107 
 108 COPTFLAG_32             = $(COPTFLAG)
 109 COPTFLAG_64             = $(COPTFLAG64)
 110 COPTIMIZE               = $(COPTFLAG_$(CLASS))
 111 
 112 CFLAGS                  = $(CFLAGS_XARCH)
 113 CFLAGS                  += $(COPTIMIZE)
 114 CFLAGS                  += -D_ASM_INLINES
 115 CFLAGS                  += $(CCMODE)
 116 CFLAGS                  += $(SPACEFLAG)
 117 CFLAGS                  += $(CCUNBOUND)
 118 CFLAGS                  += $(CFLAGS_uts)
 119 
 120 ASFLAGS_XARCH_32        = $(i386_ASFLAGS)
 121 ASFLAGS_XARCH_64        = $(amd64_ASFLAGS)
 122 ASFLAGS_XARCH           = $(ASFLAGS_XARCH_$(CLASS))
 123 
 124 ASFLAGS                 += $(ASFLAGS_XARCH)
 125 
 126 AS_INC_PATH             += -I$(DSF_DIR)/$(OBJS_DIR)
 127 
 128 #
 129 #       The following must be defined for all implementations:
 130 #
 131 #       MAPFILE:        ld mapfile for the build of kernel/unix.
 132 #       MODSTUBS:       Module stubs source file.
 133 #       GENASSYM_SRC:   genassym.c
 134 
 135 MAPFILE         = $(UTSBASE)/$(PLATFORM)/conf/Mapfile
 136 MODSTUBS        = $(UTSBASE)/intel/ia32/ml/modstubs.s
 137 GENASSYM_SRC    = $(UTSBASE)/i86pc/ml/genassym.c
 138 OFFSETS_SRC     = $(UTSBASE)/i86pc/ml/offsets.in
 139 
 140 PLATFORM_OFFSETS_SRC    = $(UTSBASE)/intel/amd64/ml/mach_offsets.in



 141 KDI_OFFSETS_SRC         = $(UTSBASE)/intel/kdi/kdi_offsets.in
 142 
 143 #
 144 #       Define the actual specific platforms
 145 #
 146 MACHINE_DEFS     = -D__$(PLATFORM) -D__xpv -D_MACHDEP
 147 
 148 #
 149 #       Software workarounds for hardware "features"
 150 #
 151 
 152 include $(UTSBASE)/i86pc/Makefile.workarounds
 153 
 154 #
 155 #       Debugging level
 156 #
 157 #       Special knowledge of which special debugging options effect which
 158 #       file is used to optimize the build if these flags are changed.
 159 #
 160 #       XXX: The above could possibly be done for more flags and files, but
 161 #            is left as an experiment to the interested reader. Be forewarned,
 162 #            that excessive use could lead to maintenance difficulties.
 163 #
 164 DEBUG_DEFS_OBJ32        =
 165 DEBUG_DEFS_DBG32        = -DDEBUG
 166 DEBUG_DEFS_OBJ64        =
 167 DEBUG_DEFS_DBG64        = -DDEBUG
 168 DEBUG_DEFS              = $(DEBUG_DEFS_$(BUILD_TYPE))
 169 
 170 DEBUG_COND_OBJ32        = $(POUND_SIGN)
 171 DEBUG_COND_DBG32        =
 172 DEBUG_COND_OBJ64        = $(POUND_SIGN)
 173 DEBUG_COND_DBG64        =
 174 IF_DEBUG_OBJ            = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
 175 
 176 $(IF_DEBUG_OBJ)trap.o           := DEBUG_DEFS += -DTRAPDEBUG -DTRAPTRACE
 177 $(IF_DEBUG_OBJ)syscall_asm.o    := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE

 178 $(IF_DEBUG_OBJ)fast_trap_asm.o  := DEBUG_DEFS += -DTRAPTRACE
 179 $(IF_DEBUG_OBJ)interrupt.o      := DEBUG_DEFS += -DTRAPTRACE
 180 $(IF_DEBUG_OBJ)intr.o           := DEBUG_DEFS += -DTRAPTRACE
 181 $(IF_DEBUG_OBJ)locore.o         := DEBUG_DEFS += -DTRAPTRACE
 182 $(IF_DEBUG_OBJ)mp_startup.o     := DEBUG_DEFS += -DTRAPTRACE
 183 $(IF_DEBUG_OBJ)machdep.o        := DEBUG_DEFS += -DTRAPTRACE
 184 $(IF_DEBUG_OBJ)exception.o      := DEBUG_DEFS += -DTRAPTRACE
 185 $(IF_DEBUG_OBJ)x_call.o         := DEBUG_DEFS += -DTRAPTRACE
 186 $(IF_DEBUG_OBJ)mp_call.o        := DEBUG_DEFS += -DTRAPTRACE
 187 $(IF_DEBUG_OBJ)cbe.o            := DEBUG_DEFS += -DTRAPTRACE
 188 $(IF_DEBUG_OBJ)hyperevent.o     := DEBUG_DEFS += -DTRAPTRACE
 189 $(IF_DEBUG_OBJ)evtchn.o         := DEBUG_DEFS += -DTRAPTRACE
 190 
 191 #
 192 #       Collect the preprocessor definitions to be associated with *all*
 193 #       files.
 194 #
 195 ALL_DEFS         = $(MACHINE_DEFS) $(WORKAROUND_DEFS) $(DEBUG_DEFS) \
 196                    $(OPTION_DEFS)
 197 GENASSYM_DEFS    = $(MACHINE_DEFS) $(OPTION_DEFS) \