xref: /titanic_44/usr/src/uts/sun4u/serengeti/Makefile.serengeti (revision fe0e7ec4d916b05b52d8c7cc8a3e6a1b28e77b6f)
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# uts/sun4u/serengeti/Makefile.serengeti
24# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27#pragma ident	"%Z%%M%	%I%	%E% SMI"
28
29#
30#	Global definitions for sun4u implementation specific modules.
31#
32
33#
34#	Define the name of this implementation.
35#
36
37#
38#	Define directories.
39#
40ROOT_SERENGETI_DIR		= $(ROOT_PLAT_DIR)/SUNW,Sun-Fire
41ROOT_SERENGETI_MOD_DIR		= $(ROOT_SERENGETI_DIR)/kernel
42
43ROOT_SERENGETI_KERN_DIR_32	= $(ROOT_SERENGETI_MOD_DIR)
44ROOT_SERENGETI_KERN_DIR_64	= $(ROOT_SERENGETI_MOD_DIR)/$(SUBDIR64)
45ROOT_SERENGETI_KERN_DIR		= $(ROOT_SERENGETI_KERN_DIR_$(CLASS))
46
47ROOT_SERENGETI_CPU_DIR_32	= $(ROOT_SERENGETI_MOD_DIR)/cpu
48ROOT_SERENGETI_CPU_DIR_64	= $(ROOT_SERENGETI_MOD_DIR)/cpu/$(SUBDIR64)
49ROOT_SERENGETI_CPU_DIR		= $(ROOT_SERENGETI_CPU_DIR_$(CLASS))
50
51ROOT_SERENGETI_DRV_DIR_32	= $(ROOT_SERENGETI_MOD_DIR)/drv
52ROOT_SERENGETI_DRV_DIR_64	= $(ROOT_SERENGETI_MOD_DIR)/drv/$(SUBDIR64)
53ROOT_SERENGETI_DRV_DIR		= $(ROOT_SERENGETI_DRV_DIR_$(CLASS))
54
55ROOT_SERENGETI_MISC_DIR_32	= $(ROOT_SERENGETI_MOD_DIR)/misc
56ROOT_SERENGETI_MISC_DIR_64	= $(ROOT_SERENGETI_MOD_DIR)/misc/$(SUBDIR64)
57ROOT_SERENGETI_MISC_DIR		= $(ROOT_SERENGETI_MISC_DIR_$(CLASS))
58
59ROOT_SERENGETI_CRYPTO_DIR_32	= $(ROOT_SERENGETI_MOD_DIR)/crypto
60ROOT_SERENGETI_CRYPTO_DIR_64	= $(ROOT_SERENGETI_MOD_DIR)/crypto/$(SUBDIR64)
61ROOT_SERENGETI_CRYPTO_DIR	= $(ROOT_SERENGETI_CRYPTO_DIR_$(CLASS))
62
63ROOT_PLAT_MOD_DIRS		+= $(ROOT_SERENGETI_MOD_DIR)
64ROOT_PLAT_MISC_DIRS_32		+= $(ROOT_SERENGETI_MISC_DIR_32)
65
66USR_SERENGETI_DIR		= $(USR_PLAT_DIR)/SUNW,Sun-Fire
67USR_SERENGETI_INC_DIR		= $(USR_SERENGETI_DIR)/include
68USR_SERENGETI_ISYS_DIR		= $(USR_SERENGETI_INC_DIR)/sys
69USR_SERENGETI_SBIN_DIR		= $(USR_SERENGETI_DIR)/sbin
70USR_SERENGETI_LIB_DIR		= $(USR_SERENGETI_DIR)/lib
71
72SERENGETI_LINT_LIB_DIR		= $(UTSBASE)/$(PLATFORM)/serengeti/lint-libs/$(OBJS_DIR)
73
74#
75#	Define modules.
76#
77SERENGETI_KMODS	= cheetah cheetahplus platmod sbdp sgcn
78SERENGETI_KMODS	+= sghsc sgsbbc ssm wrsm wrsmplat
79#
80#       Include the makefiles which define build rule templates, the
81#       collection of files per module, and a few specific flags. Note
82#       that order is significant, just as with an include path. The
83#       first build rule template which matches the files name will be
84#       used. By including these in order from most machine dependent
85#       to most machine independent, we allow a machine dependent file
86#       to be used in preference over a machine independent version
87#       (Such as a machine specific optimization, which preserves the
88#       interfaces.)
89#
90
91#
92# Links to UltraSparc III crypto modules
93#
94SERENGETI_CRYPTO_LINKS	+= aes
95
96include $(UTSBASE)/sun4u/serengeti/Makefile.files
97#
98#	Include common rules.
99#
100
101include $(UTSBASE)/sun4u/Makefile.sun4u
102#
103#       Everybody needs to know how to build modstubs.o and to locate unix.o
104#
105UNIX_DIR	= $(UTSBASE)/$(PLATFORM)/serengeti/unix
106MODSTUBS_DIR	= $(UNIX_DIR)
107DSF_DIR		= $(UTSBASE)/$(PLATFORM)/serengeti/genassym
108LINTS_DIR	= $(OBJS_DIR)
109LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/serengeti/lint-libs/$(OBJS_DIR)
110
111UNIX_O		= $(UNIX_DIR)/$(OBJS_DIR)/unix.o
112
113LINT_LIB	= $(LINT_LIB_DIR)/llib-lunix.ln
114
115#
116#       Define the actual specific platforms
117#
118MACHINE_DEFS	= -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP -DMIXEDCPU_DR_SUPPORTED
119
120#
121#	Define platform specific values
122#
123MACHINE_DEFS	+= -DNCPU=558
124MACHINE_DEFS	+= -DMAX_CPU_CHIPID=554
125MACHINE_DEFS	+= -DMAX_UPA=1024
126MACHINE_DEFS	+= -DIGN_SIZE=10
127MACHINE_DEFS	+= -DMAX_MEM_NODES=8
128MACHINE_DEFS	+= -DLOCKED_DTLB_ENTRIES=6
129# Max IOSRAM TOC major version number supported
130MACHINE_DEFS	+= -DMAX_IOSRAM_TOC_VER=0x1
131
132#	Define for inline pre-processing since
133#	cpp is not smart about v9 yet.
134#	It's not smart about __sparc either since it only predefines sparc.
135CPP_DEFS_32	= -D__sparc
136CPP_DEFS_64	= -D__sparc -D__sparcv9
137CPP_DEFS	= $(CPP_DEFS_$(CLASS))
138