1 #
   2 # CDDL HEADER START
   3 #
   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 (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 #
  25 #       Global definitions for sun4u snowbird implementation specific modules.
  26 # uts/sun4u/snowbird/Makefile.snowbird
  27 #
  28 
  29 #
  30 #       Define directories.
  31 #
  32 MONTECARLO      =       SUNW,UltraSPARC-IIi-Netract
  33 SNOWBIRD        =       SUNW,Netra-CP2300
  34 ROOT_MONTECARLO_DIR             = $(ROOT_PLAT_DIR)/$(MONTECARLO)
  35 ROOT_SNOWBIRD_DIR               = $(ROOT_PLAT_DIR)/SUNW,Netra-CP2300
  36 ROOT_SNOWBIRD_MOD_DIR           = $(ROOT_SNOWBIRD_DIR)/kernel
  37 ROOT_SNOWBIRD_MISC_DIR_32       = $(ROOT_SNOWBIRD_DIR)/kernel/misc
  38 ROOT_SNOWBIRD_MISC_DIR_64       = $(ROOT_SNOWBIRD_MISC_DIR_32)/$(SUBDIR64)
  39 ROOT_SNOWBIRD_KERN_DIR_32       = $(ROOT_SNOWBIRD_MOD_DIR)
  40 ROOT_SNOWBIRD_KERN_DIR_64       = $(ROOT_SNOWBIRD_MOD_DIR)/$(SUBDIR64)
  41 ROOT_SNOWBIRD_DRV_DIR_32        = $(ROOT_SNOWBIRD_MOD_DIR)/drv
  42 ROOT_SNOWBIRD_DRV_DIR_64        = $(ROOT_SNOWBIRD_MOD_DIR)/drv/$(SUBDIR64)
  43 ROOT_SNOWBIRD_DRV_LINK_32       = $(ROOT_SNOWBIRD_DRV_DIR_32:$(ROOT_SNOWBIRD_DIR)%=../../../$(MONTECARLO)%)
  44 ROOT_SNOWBIRD_TOD_DIR_32        = $(ROOT_SNOWBIRD_MOD_DIR)/tod
  45 ROOT_SNOWBIRD_TOD_DIR_64        = $(ROOT_SNOWBIRD_MOD_DIR)/tod/$(SUBDIR64)
  46 ROOT_SNOWBIRD_DACF_DIR_32       = $(ROOT_SNOWBIRD_MOD_DIR)/dacf
  47 ROOT_SNOWBIRD_DACF_DIR_64       = $(ROOT_SNOWBIRD_MOD_DIR)/dacf/$(SUBDIR64)
  48 ROOT_SNOWBIRD_DACF_LINK_64      = $(ROOT_SNOWBIRD_DACF_DIR_64:$(ROOT_SNOWBIRD_DIR)%=../../../../$(MONTECARLO)%)
  49 
  50 ROOT_SNOWBIRD_KERN_DIR          = $(ROOT_SNOWBIRD_KERN_DIR_$(CLASS))
  51 ROOT_SNOWBIRD_DRV_DIR           = $(ROOT_SNOWBIRD_DRV_DIR_$(CLASS))
  52 ROOT_SNOWBIRD_TOD_DIR           = $(ROOT_SNOWBIRD_TOD_DIR_$(CLASS))
  53 ROOT_SNOWBIRD_MISC_DIR          = $(ROOT_SNOWBIRD_MISC_DIR_$(CLASS))
  54 ROOT_SNOWBIRD_DACF_DIR          = $(ROOT_SNOWBIRD_DACF_DIR_$(CLASS))
  55 
  56 ROOT_PLAT_MOD_DIRS              += $(ROOT_SNOWBIRD_MOD_DIR)
  57 ROOT_PLAT_MISC_DIRS             += $(ROOT_SNOWBIRD_MISC_DIR)
  58 ROOT_PLAT_DRV_DIRS              += $(ROOT_SNOWBIRD_DRV_DIR)
  59 ROOT_PLAT_DACF_DIRS             += $(ROOT_SNOWBIRD_DACF_DIR)
  60 
  61 ROOT_SNOWBIRD_DACF_LINK         = $(ROOT_SNOWBIRD_DACF_LINK_$(CLASS))
  62 ROOT_SNOWBIRD_DRV_LINK          = $(ROOT_SNOWBIRD_DRV_LINK_$(CLASS))
  63 
  64 USR_SNOWBIRD_DIR                = $(USR_PLAT_DIR)/SUNW,Netra-CP2300
  65 USR_SNOWBIRD_INC_DIR            = $(USR_SNOWBIRD_DIR)/include
  66 USR_SNOWBIRD_SBIN_DIR           = $(USR_SNOWBIRD_DIR)/sbin
  67 USR_SNOWBIRD_SBIN_PRTDIAG       = $(USR_SNOWBIRD_SBIN_DIR)/prtdiag
  68 USR_SNOWBIRD_SBIN_FRUADM        = $(USR_SNOWBIRD_SBIN_DIR)/fruadm
  69 USR_SNOWBIRD_LIB_DIR            = $(USR_SNOWBIRD_DIR)/lib
  70 USR_SNOWBIRD_ISYS_DIR           = $(USR_SNOWBIRD_INC_DIR)/sys
  71 
  72 
  73 SNOWBIRD_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/snowbird/lint-libs/$(OBJS_DIR)
  74 
  75 
  76 #       Define Objects
  77 #
  78 SNOWBIRD_OBJS     = snowbird.o
  79 
  80 #
  81 #       Define modules.
  82 #
  83 SNOWBIRD_KMODS  = todds1307 platmod
  84 
  85 #
  86 #       Include the makefiles which define build rule templates, the
  87 #       collection of files per module, and a few specific flags. Note
  88 #       that order is significant, just as with an include path. The
  89 #       first build rule template which matches the files name will be
  90 #       used. By including these in order from most machine dependent
  91 #       to most machine independent, we allow a machine dependent file
  92 #       to be used in preference over a machine independent version
  93 #       (Such as a machine specific optimization, which preserves the
  94 #       interfaces.)
  95 #
  96 
  97 include $(UTSBASE)/sun4u/snowbird/Makefile.files
  98 #
  99 #       Include common rules.
 100 #
 101 include $(UTSBASE)/sun4u/Makefile.sun4u
 102 
 103 #
 104 #       Define the actual specific platforms
 105 #
 106 MACHINE_DEFS    += -D$(PLATFORM) -D_MACHDEP -DSFMMU
 107 MACHINE_DEFS    += -D_SNOWBIRD
 108 
 109 #
 110 # For now, disable these lint checks; maintainers should endeavor
 111 # to investigate and remove these for maximum lint coverage.
 112 # Please do not carry these forward to new Makefiles.
 113 #
 114 LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
 115