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