xref: /onnv-gate/usr/src/uts/sun4u/lw2plus/Makefile.lw2plus (revision 3066:2a2af34f0642)
12305Sstevel#
22305Sstevel# CDDL HEADER START
32305Sstevel#
42305Sstevel# The contents of this file are subject to the terms of the
52305Sstevel# Common Development and Distribution License (the "License").
62305Sstevel# You may not use this file except in compliance with the License.
72305Sstevel#
82305Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92305Sstevel# or http://www.opensolaris.org/os/licensing.
102305Sstevel# See the License for the specific language governing permissions
112305Sstevel# and limitations under the License.
122305Sstevel#
132305Sstevel# When distributing Covered Code, include this CDDL HEADER in each
142305Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152305Sstevel# If applicable, add the following below this CDDL HEADER, with the
162305Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
172305Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
182305Sstevel#
192305Sstevel# CDDL HEADER END
202305Sstevel#
212305Sstevel
222305Sstevel#
232305Sstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
242305Sstevel# Use is subject to license terms.
252305Sstevel#
262305Sstevel#ident	"%Z%%M%	%I%	%E% SMI"
272305Sstevel#
282305Sstevel
292305Sstevel#
302305Sstevel#	Global definitions for sun4u implementation specific modules.
312305Sstevel#
322305Sstevel
332305Sstevel#
342305Sstevel#	Define the name of this implementation.
352305Sstevel#
362305Sstevel
372305Sstevel#
382305Sstevel#	Define directories.
392305Sstevel#
402305SstevelROOT_LW2PLUS_DIR	= $(ROOT_PLAT_DIR)/SUNW,Netra-T4
412305SstevelROOT_LW2PLUS_MOD_DIR	= $(ROOT_LW2PLUS_DIR)/kernel
422305Sstevel
432305SstevelROOT_LW2PLUS_DRV_DIR_32	= $(ROOT_LW2PLUS_MOD_DIR)/drv
442305SstevelROOT_LW2PLUS_DRV_DIR_64	= $(ROOT_LW2PLUS_MOD_DIR)/drv/$(SUBDIR64)
452305SstevelROOT_LW2PLUS_DRV_DIR	= $(ROOT_LW2PLUS_DRV_DIR_$(CLASS))
462305Sstevel
472305SstevelROOT_LW2PLUS_MISC_DIR_32	= $(ROOT_LW2PLUS_MOD_DIR)/misc
482305SstevelROOT_LW2PLUS_MISC_DIR_64	= $(ROOT_LW2PLUS_MOD_DIR)/misc/$(SUBDIR64)
492305SstevelROOT_LW2PLUS_MISC_DIR	= $(ROOT_LW2PLUS_MISC_DIR_$(CLASS))
502305Sstevel
512305SstevelROOT_LW2PLUS_CRYPTO_DIR_32	= $(ROOT_LW2PLUS_MOD_DIR)/crypto
522305SstevelROOT_LW2PLUS_CRYPTO_DIR_64	= $(ROOT_LW2PLUS_CRYPTO_DIR_32)/$(SUBDIR64)
532305SstevelROOT_LW2PLUS_CRYPTO_DIR		= $(ROOT_LW2PLUS_CRYPTO_DIR_$(CLASS))
542305Sstevel
552305SstevelUSR_LW2PLUS_DIR		= $(USR_PLAT_DIR)/SUNW,Netra-T4
562305SstevelUSR_LW2PLUS_INC_DIR	= $(USR_LW2PLUS_DIR)/include
572305SstevelUSR_LW2PLUS_ISYS_DIR	= $(USR_LW2PLUS_INC_DIR)/sys
582305SstevelUSR_LW2PLUS_SBIN_DIR	= $(USR_LW2PLUS_DIR)/sbin
592305SstevelUSR_LW2PLUS_LIB_DIR	= $(USR_LW2PLUS_DIR)/lib
602305Sstevel
612305SstevelLW2PLUS_LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/lw2plus/lint-libs/$(OBJS_DIR)
622305Sstevel
632305Sstevel#
642305Sstevel#	Define modules.
652305Sstevel#
662305SstevelLW2PLUS_KMODS	= lombus
672305Sstevel#
682305Sstevel#       Include the makefiles which define build rule templates, the
692305Sstevel#       collection of files per module, and a few specific flags. Note
702305Sstevel#       that order is significant, just as with an include path. The
712305Sstevel#       first build rule template which matches the files name will be
722305Sstevel#       used. By including these in order from most machine dependent
732305Sstevel#       to most machine independent, we allow a machine dependent file
742305Sstevel#       to be used in preference over a machine independent version
752305Sstevel#       (Such as a machine specific optimization, which preserves the
762305Sstevel#       interfaces.)
772305Sstevel#
782305Sstevel
792305Sstevel#
802305Sstevel#	Links to UltraSparc III crypto modules
812305Sstevel#
822305SstevelLW2PLUS_CRYPTO_LINKS	= aes
832305Sstevel
842305Sstevelinclude $(UTSBASE)/sun4u/lw2plus/Makefile.files
852305Sstevel#
862305Sstevel#	Include common rules.
872305Sstevel#
882305Sstevel
892305Sstevelinclude $(UTSBASE)/sun4u/Makefile.sun4u
902305Sstevel#
912305Sstevel#       Everybody needs to know how to build modstubs.o and to locate unix.o
922305Sstevel#
932305SstevelUNIX_DIR	= $(UTSBASE)/$(PLATFORM)/littleneck/unix
942305SstevelMODSTUBS_DIR	= $(UNIX_DIR)
952305SstevelDSF_DIR		= $(UTSBASE)/$(PLATFORM)/littleneck/genassym
962305SstevelLINTS_DIR	= $(OBJS_DIR)
972305SstevelLINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/lw2plus/lint-libs/$(OBJS_DIR)
982305Sstevel
992305Sstevel#
1002305Sstevel#       Define the actual specific platforms
1012305Sstevel#
1022305SstevelMACHINE_DEFS	= -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP
1032305Sstevel
1042305Sstevel#
1052305Sstevel#	Define platform specific values
1062305Sstevel#
1072305Sstevel#MACHINE_DEFS	+= -DNCPU=554
1082305Sstevel#MACHINE_DEFS	+= -DMAX_UPA=1024
1092305Sstevel#MACHINE_DEFS	+= -DIGN_SIZE=10
1102305Sstevel# Max IOSRAM TOC major version number supported
1112305Sstevel#MACHINE_DEFS	+= -DMAX_IOSRAM_TOC_VER=0x1
1122305Sstevel
1132305Sstevel#       Define for inline pre-processing since
1142305Sstevel#       cpp not smart about v9 yet.
1152305Sstevel#
1162305SstevelCPP_DEFS_32   =
1172305SstevelCPP_DEFS_64   = -D__sparcv9
1182305SstevelCPP_DEFS      = $(CPP_DEFS_$(CLASS))
1192305Sstevel
120*3066Sjg#
121*3066Sjg# For now, disable these lint checks; maintainers should endeavor
122*3066Sjg# to investigate and remove these for maximum lint coverage.
123*3066Sjg# Please do not carry these forward to new Makefiles.
124*3066Sjg#
125*3066SjgLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
126*3066SjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
127*3066SjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
128*3066Sjg
129