xref: /titanic_41/usr/src/uts/sun4u/snowbird/Makefile.snowbird (revision 1e49577a7fcde812700ded04431b49d67cc57d6d)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5bb25c06cSjg# Common Development and Distribution License (the "License").
6bb25c06cSjg# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22*1e49577aSRod Evans# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate#	Global definitions for sun4u snowbird implementation specific modules.
267c478bd9Sstevel@tonic-gate# uts/sun4u/snowbird/Makefile.snowbird
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gate#
307c478bd9Sstevel@tonic-gate#	Define directories.
317c478bd9Sstevel@tonic-gate#
327c478bd9Sstevel@tonic-gateMONTECARLO	=	SUNW,UltraSPARC-IIi-Netract
337c478bd9Sstevel@tonic-gateSNOWBIRD	=	SUNW,Netra-CP2300
347c478bd9Sstevel@tonic-gateROOT_MONTECARLO_DIR		= $(ROOT_PLAT_DIR)/$(MONTECARLO)
357c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_DIR		= $(ROOT_PLAT_DIR)/SUNW,Netra-CP2300
367c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_MOD_DIR		= $(ROOT_SNOWBIRD_DIR)/kernel
377c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_MISC_DIR_32	= $(ROOT_SNOWBIRD_DIR)/kernel/misc
387c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_MISC_DIR_64	= $(ROOT_SNOWBIRD_MISC_DIR_32)/$(SUBDIR64)
397c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_KERN_DIR_32 	= $(ROOT_SNOWBIRD_MOD_DIR)
407c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_KERN_DIR_64 	= $(ROOT_SNOWBIRD_MOD_DIR)/$(SUBDIR64)
417c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_DRV_DIR_32	= $(ROOT_SNOWBIRD_MOD_DIR)/drv
427c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_DRV_DIR_64	= $(ROOT_SNOWBIRD_MOD_DIR)/drv/$(SUBDIR64)
437c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_DRV_LINK_32	= $(ROOT_SNOWBIRD_DRV_DIR_32:$(ROOT_SNOWBIRD_DIR)%=../../../$(MONTECARLO)%)
447c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_TOD_DIR_32	= $(ROOT_SNOWBIRD_MOD_DIR)/tod
457c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_TOD_DIR_64	= $(ROOT_SNOWBIRD_MOD_DIR)/tod/$(SUBDIR64)
467c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_DACF_DIR_32	= $(ROOT_SNOWBIRD_MOD_DIR)/dacf
477c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_DACF_DIR_64	= $(ROOT_SNOWBIRD_MOD_DIR)/dacf/$(SUBDIR64)
487c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_DACF_LINK_64	= $(ROOT_SNOWBIRD_DACF_DIR_64:$(ROOT_SNOWBIRD_DIR)%=../../../../$(MONTECARLO)%)
497c478bd9Sstevel@tonic-gate
507c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_KERN_DIR		= $(ROOT_SNOWBIRD_KERN_DIR_$(CLASS))
517c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_DRV_DIR		= $(ROOT_SNOWBIRD_DRV_DIR_$(CLASS))
527c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_TOD_DIR		= $(ROOT_SNOWBIRD_TOD_DIR_$(CLASS))
537c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_MISC_DIR		= $(ROOT_SNOWBIRD_MISC_DIR_$(CLASS))
547c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_DACF_DIR		= $(ROOT_SNOWBIRD_DACF_DIR_$(CLASS))
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gateROOT_PLAT_MOD_DIRS      	+= $(ROOT_SNOWBIRD_MOD_DIR)
577c478bd9Sstevel@tonic-gateROOT_PLAT_MISC_DIRS     	+= $(ROOT_SNOWBIRD_MISC_DIR)
587c478bd9Sstevel@tonic-gateROOT_PLAT_DRV_DIRS     		+= $(ROOT_SNOWBIRD_DRV_DIR)
597c478bd9Sstevel@tonic-gateROOT_PLAT_DACF_DIRS		+= $(ROOT_SNOWBIRD_DACF_DIR)
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_DACF_LINK		= $(ROOT_SNOWBIRD_DACF_LINK_$(CLASS))
627c478bd9Sstevel@tonic-gateROOT_SNOWBIRD_DRV_LINK		= $(ROOT_SNOWBIRD_DRV_LINK_$(CLASS))
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gateUSR_SNOWBIRD_DIR		= $(USR_PLAT_DIR)/SUNW,Netra-CP2300
657c478bd9Sstevel@tonic-gateUSR_SNOWBIRD_INC_DIR		= $(USR_SNOWBIRD_DIR)/include
667c478bd9Sstevel@tonic-gateUSR_SNOWBIRD_SBIN_DIR		= $(USR_SNOWBIRD_DIR)/sbin
677c478bd9Sstevel@tonic-gateUSR_SNOWBIRD_SBIN_PRTDIAG	= $(USR_SNOWBIRD_SBIN_DIR)/prtdiag
687c478bd9Sstevel@tonic-gateUSR_SNOWBIRD_SBIN_FRUADM	= $(USR_SNOWBIRD_SBIN_DIR)/fruadm
697c478bd9Sstevel@tonic-gateUSR_SNOWBIRD_LIB_DIR		= $(USR_SNOWBIRD_DIR)/lib
707c478bd9Sstevel@tonic-gateUSR_SNOWBIRD_ISYS_DIR		= $(USR_SNOWBIRD_INC_DIR)/sys
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gateSNOWBIRD_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/snowbird/lint-libs/$(OBJS_DIR)
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gate#	Define Objects
777c478bd9Sstevel@tonic-gate#
787c478bd9Sstevel@tonic-gateSNOWBIRD_OBJS     = snowbird.o
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gate#
817c478bd9Sstevel@tonic-gate#	Define modules.
827c478bd9Sstevel@tonic-gate#
837c478bd9Sstevel@tonic-gateSNOWBIRD_KMODS	= todds1307 platmod
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gate#
867c478bd9Sstevel@tonic-gate#	Include the makefiles which define build rule templates, the
877c478bd9Sstevel@tonic-gate#	collection of files per module, and a few specific flags. Note
887c478bd9Sstevel@tonic-gate#	that order is significant, just as with an include path. The
897c478bd9Sstevel@tonic-gate#	first build rule template which matches the files name will be
907c478bd9Sstevel@tonic-gate#	used. By including these in order from most machine dependent
917c478bd9Sstevel@tonic-gate#	to most machine independent, we allow a machine dependent file
927c478bd9Sstevel@tonic-gate#	to be used in preference over a machine independent version
937c478bd9Sstevel@tonic-gate#	(Such as a machine specific optimization, which preserves the
947c478bd9Sstevel@tonic-gate#	interfaces.)
957c478bd9Sstevel@tonic-gate#
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sun4u/snowbird/Makefile.files
987c478bd9Sstevel@tonic-gate#
997c478bd9Sstevel@tonic-gate#	Include common rules.
1007c478bd9Sstevel@tonic-gate#
1017c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sun4u/Makefile.sun4u
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gate#
1047c478bd9Sstevel@tonic-gate#	Define the actual specific platforms
1057c478bd9Sstevel@tonic-gate#
1067c478bd9Sstevel@tonic-gateMACHINE_DEFS	+= -D$(PLATFORM) -D_MACHDEP -DSFMMU
1077c478bd9Sstevel@tonic-gateMACHINE_DEFS	+= -D_SNOWBIRD
108bb25c06cSjg
109bb25c06cSjg#
110bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
111bb25c06cSjg# to investigate and remove these for maximum lint coverage.
112bb25c06cSjg# Please do not carry these forward to new Makefiles.
113bb25c06cSjg#
114bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
115bb25c06cSjg
116