xref: /titanic_50/usr/src/uts/sun4u/mpxu/Makefile.mpxu (revision d291d9f21e8c0417aec99de243dd48bc400002d0)
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/mpxu/Makefile.mpxu
24# Copyright 2002-2003 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27#ident	"%Z%%M%	%I%	%E% SMI"
28#
29
30#
31#	Global definitions for sun4u implementation specific modules.
32#
33
34#
35#	Define the name of this implementation.
36#
37
38#
39#	Define directories.
40#
41ROOT_MPXU_DIR	= $(ROOT_PLAT_DIR)/SUNW,Sun-Fire-V240
42ROOT_MPXU_MOD_DIR	= $(ROOT_MPXU_DIR)/kernel
43
44ROOT_MPXU_DRV_DIR_32	= $(ROOT_MPXU_MOD_DIR)/drv
45ROOT_MPXU_DRV_DIR_64	= $(ROOT_MPXU_MOD_DIR)/drv/$(SUBDIR64)
46ROOT_MPXU_DRV_DIR	= $(ROOT_MPXU_DRV_DIR_$(CLASS))
47
48ROOT_MPXU_MISC_DIR_32	= $(ROOT_MPXU_MOD_DIR)/misc
49ROOT_MPXU_MISC_DIR_64	= $(ROOT_MPXU_MOD_DIR)/misc/$(SUBDIR64)
50ROOT_MPXU_MISC_DIR	= $(ROOT_MPXU_MISC_DIR_$(CLASS))
51
52ROOT_MPXU_CRYPTO_DIR_32	= $(ROOT_MPXU_MOD_DIR)/crypto
53ROOT_MPXU_CRYPTO_DIR_64	= $(ROOT_MPXU_MOD_DIR)/crypto/$(SUBDIR64)
54ROOT_MPXU_CRYPTO_DIR	= $(ROOT_MPXU_CRYPTO_DIR_$(CLASS))
55
56USR_MPXU_DIR		= $(USR_PLAT_DIR)/SUNW,Sun-Fire-V240
57USR_MPXU_INC_DIR	= $(USR_MPXU_DIR)/include
58USR_MPXU_ISYS_DIR	= $(USR_MPXU_INC_DIR)/sys
59USR_MPXU_SBIN_DIR	= $(USR_MPXU_DIR)/sbin
60USR_MPXU_SBIN_EEPROM	= $(USR_MPXU_SBIN_DIR)/eeprom
61USR_MPXU_SBIN_PRTDIAG	= $(USR_MPXU_SBIN_DIR)/prtdiag
62USR_MPXU_SBIN_TRAPSTAT	= $(USR_MPXU_SBIN_DIR)/trapstat
63USR_MPXU_SBIN_FRUADM	= $(USR_MPXU_SBIN_DIR)/fruadm
64USR_MPXU_LIB_DIR	= $(USR_MPXU_DIR)/lib
65
66MPXU_LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/mpxu/lint-libs/$(OBJS_DIR)
67
68#
69#	Define modules.
70#
71MPXU_KMODS	= platmod tsalarm ntwdt
72
73#
74# Links to UltraSparc III crypto modules
75#
76MPXU_CRYPTO_LINKS	= aes
77
78#
79#       Include the makefiles which define build rule templates, the
80#       collection of files per module, and a few specific flags. Note
81#       that order is significant, just as with an include path. The
82#       first build rule template which matches the files name will be
83#       used. By including these in order from most machine dependent
84#       to most machine independent, we allow a machine dependent file
85#       to be used in preference over a machine independent version
86#       (Such as a machine specific optimization, which preserves the
87#       interfaces.)
88#
89
90include $(UTSBASE)/sun4u/mpxu/Makefile.files
91#
92#	Include common rules.
93#
94
95include $(UTSBASE)/sun4u/Makefile.sun4u
96MODSTUBS_DIR	= $(UNIX_DIR)
97LINTS_DIR	= $(OBJS_DIR)
98LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/mpxu/lint-libs/$(OBJS_DIR)
99
100#
101#       Define the actual specific platforms
102#
103MACHINE_DEFS	= -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP
104
105#
106#	Define platform specific values
107#
108#MACHINE_DEFS	+= -DNCPU=554
109#MACHINE_DEFS	+= -DMAX_UPA=1024
110#MACHINE_DEFS	+= -DIGN_SIZE=10
111# Max IOSRAM TOC major version number supported
112#MACHINE_DEFS	+= -DMAX_IOSRAM_TOC_VER=0x1
113
114#       Define for inline pre-processing since
115#       cpp not smart about v9 yet.
116#
117CPP_DEFS_32   =
118CPP_DEFS_64   = -D__sparcv9
119CPP_DEFS      = $(CPP_DEFS_$(CLASS))
120
121