xref: /titanic_41/usr/src/uts/sun4u/starfire/Makefile.starfire (revision da14cebe459d3275048785f25bd869cb09b5307f)
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 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#	Global definitions for sun4u starfire implementation specific modules.
26#
27
28#
29#	Define directories.
30#
31ROOT_STARFIRE_DIR	= $(ROOT_PLAT_DIR)/SUNW,Ultra-Enterprise-10000
32ROOT_STARFIRE_MOD_DIR	= $(ROOT_STARFIRE_DIR)/kernel
33ROOT_STARFIRE_KERN_DIR_32 = $(ROOT_STARFIRE_MOD_DIR)
34ROOT_STARFIRE_KERN_DIR_64 = $(ROOT_STARFIRE_MOD_DIR)/$(SUBDIR64)
35ROOT_STARFIRE_MISC_DIR_32 = $(ROOT_STARFIRE_MOD_DIR)/misc
36ROOT_STARFIRE_MISC_DIR_64 = $(ROOT_STARFIRE_MOD_DIR)/misc/$(SUBDIR64)
37ROOT_STARFIRE_DRV_DIR_32 = $(ROOT_STARFIRE_MOD_DIR)/drv
38ROOT_STARFIRE_DRV_DIR_64 = $(ROOT_STARFIRE_MOD_DIR)/drv/$(SUBDIR64)
39ROOT_STARFIRE_CPU_DIR_32 = $(ROOT_STARFIRE_MOD_DIR)/cpu
40ROOT_STARFIRE_CPU_DIR_64 = $(ROOT_STARFIRE_MOD_DIR)/cpu/$(SUBDIR64)
41
42ROOT_STARFIRE_KERN_DIR	= $(ROOT_STARFIRE_KERN_DIR_$(CLASS))
43ROOT_STARFIRE_MISC_DIR	= $(ROOT_STARFIRE_MISC_DIR_$(CLASS))
44ROOT_STARFIRE_DRV_DIR	= $(ROOT_STARFIRE_DRV_DIR_$(CLASS))
45ROOT_STARFIRE_CPU_DIR	= $(ROOT_STARFIRE_CPU_DIR_$(CLASS))
46
47ROOT_PLAT_MOD_DIRS	+= $(ROOT_STARFIRE_MOD_DIR)
48ROOT_PLAT_MISC_DIRS_32	+= $(ROOT_STARFIRE_MISC_DIR_32)
49
50USR_STARFIRE_DIR	= $(USR_PLAT_DIR)/SUNW,Ultra-Enterprise-10000
51USR_STARFIRE_INC_DIR	= $(USR_STARFIRE_DIR)/include
52USR_STARFIRE_ISYS_DIR	= $(USR_STARFIRE_INC_DIR)/sys
53USR_STARFIRE_SBIN_DIR	= $(USR_STARFIRE_DIR)/sbin
54USR_STARFIRE_LIB_DIR	= $(USR_STARFIRE_DIR)/lib
55
56#
57# Define objects.
58#
59STARFIRE_OBJS	= starfire.o
60
61#
62#	Define modules.
63#
64STARFIRE_KMODS	= platmod
65STARFIRE_KMODS	+= rootnex sbus pcipsy
66STARFIRE_KMODS	+= cvc cvcredir
67STARFIRE_KMODS	+= ngdr ngdrmach
68STARFIRE_KMODS	+= idn
69
70#
71#	CPU modules.
72#
73STARFIRE_CPU_KMODS += spitfire
74
75#
76#	Include the makefiles which define build rule templates, the
77#	collection of files per module, and a few specific flags. Note
78#	that order is significant, just as with an include path. The
79#	first build rule template which matches the files name will be
80#	used. By including these in order from most machine dependent
81#	to most machine independent, we allow a machine dependent file
82#	to be used in preference over a machine independent version
83#	(Such as a machine specific optimization, which preserves the
84#	interfaces.)
85#
86include $(UTSBASE)/sun4u/ngdr/Makefile.files
87include $(UTSBASE)/sun4u/starfire/Makefile.files
88
89#
90#	Include common rules.
91#
92include $(UTSBASE)/sun4u/Makefile.sun4u
93
94#
95#	Everybody needs to know how to build modstubs.o and to locate unix.o
96#
97UNIX_DIR	= $(UTSBASE)/$(PLATFORM)/starfire/unix
98MODSTUBS_DIR	= $(UNIX_DIR)
99DSF_DIR		= $(UTSBASE)/$(PLATFORM)/starfire/genassym
100LINTS_DIR	= $(OBJS_DIR)
101LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/starfire/lint-libs/$(OBJS_DIR)
102
103UNIX_O		= $(UNIX_DIR)/$(OBJS_DIR)/unix.o
104
105LINT_LIB	= $(LINT_LIB_DIR)/llib-lunix.ln
106
107#
108#	Define the actual specific platforms
109#
110MACHINE_DEFS	= -D$(PLATFORM) -D_MACHDEP -DSFMMU
111MACHINE_DEFS	+= -D_STARFIRE -D_CPU_SIGNATURE
112
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#
122# For now, disable these lint checks; maintainers should endeavor
123# to investigate and remove these for maximum lint coverage.
124# Please do not carry these forward to new Makefiles.
125#
126LINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
127LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
128LINTTAGS	+= -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
129LINTTAGS	+= -erroff=E_STATIC_UNUSED
130LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
131LINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
132LINTTAGS	+= -erroff=E_BAD_FORMAT_STR2
133