Print this page
10925 remove 32-bit krtld
Reviewed by: Andy Stormont <astormont@racktopsystems.com>


   4 # The contents of this file are subject to the terms of the
   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 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 # Copyright 2019 Joyent, Inc.  All rights reserved.
  25 # Copyright 2017 Nexenta Systems, Inc.
  26 #
  27 
  28 #
  29 #       This Makefile defines all file modules and build rules for the
  30 # directory uts/intel and its children. These are the source files which
  31 # are specific to the intel processor.
  32 #
  33 #       The following two-level ordering must be maintained in this file.
  34 #         Lines are sorted first in order of decreasing specificity based on
  35 #         the first directory component.  That is, sun4u rules come before
  36 #         sparc rules come before common rules.
  37 #
  38 #         Lines whose initial directory components are equal are sorted
  39 #         alphabetically by the remaining components.
  40 
  41 #
  42 # Need a way to distinguish between the ia32 and amd64 subdirs.
  43 #
  44 SUBARCH_DIR_32 = ia32


 262         $(CTFCONVERT_O)
 263 
 264 $(OBJS_DIR)/%.o:                $(UTSBASE)/intel/kdi/%.c
 265         $(COMPILE.c) -o $@ $<
 266         $(CTFCONVERT_O)
 267 
 268 $(OBJS_DIR)/%.o:                $(UTSBASE)/intel/kdi/%.s
 269         $(COMPILE.s) -o $@ $<
 270 
 271 $(OBJS_DIR)/%.o:                $(UTSBASE)/intel/zfs/%.c
 272         $(COMPILE.c) -o $@ $<
 273         $(CTFCONVERT_O)
 274 
 275 #
 276 # krtld compiled into unix
 277 #
 278 
 279 KRTLD_INC_PATH  = -I$(UTSBASE)/common/krtld -I$(UTSBASE)/intel/sys
 280 KRTLD_INC_PATH  += -I$(UTSBASE)/intel/$(SUBARCH_DIR)/krtld
 281 
 282 KRTLD_CPPFLAGS_32       = -DELF_TARGET_386
 283 KRTLD_CPPFLAGS_64       = -DELF_TARGET_AMD64 -DMODDIR_SUFFIX=\"amd64\"
 284 KRTLD_CPPFLAGS          = $(KRTLD_CPPFLAGS_$(CLASS)) -D_KRTLD
 285 
 286 $(OBJS_DIR)/%.o:        $(UTSBASE)/common/krtld/%.c
 287         $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
 288         $(CTFCONVERT_O)
 289 
 290 $(OBJS_DIR)/%.o:        $(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.c
 291         $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
 292         $(CTFCONVERT_O)
 293 
 294 #
 295 # _DBOOT indicates that krtld is called from a dboot ELF section
 296 #
 297 $(OBJS_DIR)/kobj.o              := CPPFLAGS += -D_DBOOT
 298 
 299 $(OBJS_DIR)/%.o:        $(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.s
 300         $(COMPILE.s) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
 301 
 302 $(OBJS_DIR)/%.o:        $(SRC)/common/util/$(SUBARCH_DIR)/%.c
 303         $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
 304         $(CTFCONVERT_O)




   4 # The contents of this file are subject to the terms of the
   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 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 # Copyright 2019 Joyent, Inc.
  25 # Copyright 2017 Nexenta Systems, Inc.
  26 #
  27 
  28 #
  29 #       This Makefile defines all file modules and build rules for the
  30 # directory uts/intel and its children. These are the source files which
  31 # are specific to the intel processor.
  32 #
  33 #       The following two-level ordering must be maintained in this file.
  34 #         Lines are sorted first in order of decreasing specificity based on
  35 #         the first directory component.  That is, sun4u rules come before
  36 #         sparc rules come before common rules.
  37 #
  38 #         Lines whose initial directory components are equal are sorted
  39 #         alphabetically by the remaining components.
  40 
  41 #
  42 # Need a way to distinguish between the ia32 and amd64 subdirs.
  43 #
  44 SUBARCH_DIR_32 = ia32


 262         $(CTFCONVERT_O)
 263 
 264 $(OBJS_DIR)/%.o:                $(UTSBASE)/intel/kdi/%.c
 265         $(COMPILE.c) -o $@ $<
 266         $(CTFCONVERT_O)
 267 
 268 $(OBJS_DIR)/%.o:                $(UTSBASE)/intel/kdi/%.s
 269         $(COMPILE.s) -o $@ $<
 270 
 271 $(OBJS_DIR)/%.o:                $(UTSBASE)/intel/zfs/%.c
 272         $(COMPILE.c) -o $@ $<
 273         $(CTFCONVERT_O)
 274 
 275 #
 276 # krtld compiled into unix
 277 #
 278 
 279 KRTLD_INC_PATH  = -I$(UTSBASE)/common/krtld -I$(UTSBASE)/intel/sys
 280 KRTLD_INC_PATH  += -I$(UTSBASE)/intel/$(SUBARCH_DIR)/krtld
 281 
 282 KRTLD_CPPFLAGS  = -D_KRTLD -DELF_TARGET_AMD64 -DMODDIR_SUFFIX=\"amd64\"


 283 
 284 $(OBJS_DIR)/%.o:        $(UTSBASE)/common/krtld/%.c
 285         $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
 286         $(CTFCONVERT_O)
 287 
 288 $(OBJS_DIR)/%.o:        $(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.c
 289         $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
 290         $(CTFCONVERT_O)
 291 
 292 #
 293 # _DBOOT indicates that krtld is called from a dboot ELF section
 294 #
 295 $(OBJS_DIR)/kobj.o              := CPPFLAGS += -D_DBOOT
 296 
 297 $(OBJS_DIR)/%.o:        $(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.s
 298         $(COMPILE.s) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
 299 
 300 $(OBJS_DIR)/%.o:        $(SRC)/common/util/$(SUBARCH_DIR)/%.c
 301         $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
 302         $(CTFCONVERT_O)