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, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# 23#pragma ident "%Z%%M% %I% %E% SMI" 24# 25# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 26# Use is subject to license terms. 27# 28# Global definitions for sun4u starcat implementation specific modules. 29# 30 31# 32# Define directories. 33# 34ROOT_STARCAT_DIR = $(ROOT_PLAT_DIR)/SUNW,Sun-Fire-15000 35ROOT_STARCAT_MOD_DIR = $(ROOT_STARCAT_DIR)/kernel 36ROOT_STARCAT_KERN_DIR_32 = $(ROOT_STARCAT_MOD_DIR) 37ROOT_STARCAT_KERN_DIR_64 = $(ROOT_STARCAT_MOD_DIR)/$(SUBDIR64) 38ROOT_STARCAT_MISC_DIR_32 = $(ROOT_STARCAT_MOD_DIR)/misc 39ROOT_STARCAT_MISC_DIR_64 = $(ROOT_STARCAT_MOD_DIR)/misc/$(SUBDIR64) 40ROOT_STARCAT_DRV_DIR_32 = $(ROOT_STARCAT_MOD_DIR)/drv 41ROOT_STARCAT_DRV_DIR_64 = $(ROOT_STARCAT_MOD_DIR)/drv/$(SUBDIR64) 42ROOT_STARCAT_CPU_DIR_32 = $(ROOT_STARCAT_MOD_DIR)/cpu 43ROOT_STARCAT_CPU_DIR_64 = $(ROOT_STARCAT_MOD_DIR)/cpu/$(SUBDIR64) 44ROOT_STARCAT_CRYPTO_DIR_32 = $(ROOT_STARCAT_MOD_DIR)/crypto 45ROOT_STARCAT_CRYPTO_DIR_64 = $(ROOT_STARCAT_MOD_DIR)/crypto/$(SUBDIR64) 46 47ROOT_STARCAT_KERN_DIR = $(ROOT_STARCAT_KERN_DIR_$(CLASS)) 48ROOT_STARCAT_MISC_DIR = $(ROOT_STARCAT_MISC_DIR_$(CLASS)) 49ROOT_STARCAT_DRV_DIR = $(ROOT_STARCAT_DRV_DIR_$(CLASS)) 50ROOT_STARCAT_CPU_DIR = $(ROOT_STARCAT_CPU_DIR_$(CLASS)) 51ROOT_STARCAT_CRYPTO_DIR = $(ROOT_STARCAT_CRYPTO_DIR_$(CLASS)) 52 53ROOT_PLAT_MOD_DIRS += $(ROOT_STARCAT_MOD_DIR) 54ROOT_PLAT_MISC_DIRS_32 += $(ROOT_STARCAT_MISC_DIR_32) 55 56USR_STARCAT_DIR = $(USR_PLAT_DIR)/SUNW,Sun-Fire-15000 57USR_STARCAT_LIB_DIR = $(USR_STARCAT_DIR)/lib 58USR_STARCAT_SBIN_DIR = $(USR_STARCAT_DIR)/sbin 59USR_STARCAT_INC_DIR = $(USR_STARCAT_DIR)/include 60USR_STARCAT_ISYS_DIR = $(USR_STARCAT_INC_DIR)/sys 61 62STARCAT_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/starcat/lint-libs/$(OBJS_DIR) 63 64# 65# Define objects. 66# 67STARCAT_OBJS = starcat.o starcat_asm.o plat_ecc_unum.o 68 69# 70# Define modules. 71# 72STARCAT_KMODS = platmod 73STARCAT_KMODS += cvc cvcredir 74STARCAT_KMODS += dr .WAIT drmach 75STARCAT_KMODS += iosram 76STARCAT_KMODS += mboxsc 77STARCAT_KMODS += axq 78STARCAT_KMODS += scosmb 79STARCAT_KMODS += schpc 80STARCAT_KMODS += dman 81STARCAT_KMODS += sckmdrv 82STARCAT_KMODS += gptwo_pci 83STARCAT_KMODS += gptwo_wci 84STARCAT_KMODS += sc_gptwocfg 85STARCAT_KMODS += fcgp2 86STARCAT_KMODS += wrsmplat 87 88# 89# Define CPU modules. 90# 91STARCAT_CPU_KMODS += cheetah cheetahplus 92 93# 94# Links to UltraSparc III crypto modules 95# 96STARCAT_CRYPTO_LINKS = aes 97 98# 99# Include the makefiles which define build rule templates, the 100# collection of files per module, and a few specific flags. Note 101# that order is significant, just as with an include path. The 102# first build rule template which matches the files name will be 103# used. By including these in order from most machine dependent 104# to most machine independent, we allow a machine dependent file 105# to be used in preference over a machine independent version 106# (Such as a machine specific optimization, which preserves the 107# interfaces.) 108# 109include $(UTSBASE)/sun4u/ngdr/Makefile.files 110include $(UTSBASE)/sun4u/starcat/Makefile.files 111 112# 113# Include common rules. 114# 115include $(UTSBASE)/sun4u/Makefile.sun4u 116 117# 118# Everybody needs to know how to build modstubs.o and to locate unix.o 119# 120UNIX_DIR = $(UTSBASE)/$(PLATFORM)/starcat/unix 121MODSTUBS_DIR = $(UNIX_DIR) 122DSF_DIR = $(UTSBASE)/$(PLATFORM)/starcat/genassym 123LINTS_DIR = $(OBJS_DIR) 124LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/starcat/lint-libs/$(OBJS_DIR) 125 126UNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o 127 128LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln 129 130# 131# The following must be defined for all implementations: 132# 133# MAPFILE: ld mapfile for the build of kernel/unix. 134# MODSTUBS: Module stubs source file. 135# 136MAPFILE = $(UTSBASE)/sun4u/conf/Mapfile 137MODSTUBS = $(UTSBASE)/sparc/ml/modstubs.s 138 139# 140# Define the actual specific platforms 141# 142MACHINE_DEFS = -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP -DMIXEDCPU_DR_SUPPORTED 143MACHINE_DEFS += -D_CPU_SIGNATURE 144 145# 146# Define platform specific value 147# 148MACHINE_DEFS += -DNCPU=558 149MACHINE_DEFS += -DMAX_CPU_CHIPID=554 150MACHINE_DEFS += -DMAX_UPA=1024 151MACHINE_DEFS += -DIGN_SIZE=10 152MACHINE_DEFS += -DMAX_MEM_NODES=18 153 154# 155# Define for inline pre-processing since 156# cpp not smart about v9 yet. 157# It's not smart about __sparc either since it only predefines sparc. 158CPP_DEFS_32 = -D__sparc 159CPP_DEFS_64 = -D__sparc -D__sparcv9 160CPP_DEFS = $(CPP_DEFS_$(CLASS)) 161