xref: /titanic_41/usr/src/psm/stand/boot/sparcv9/sun4u/Makefile (revision 70025d765b044c6d8594bb965a2247a61e991a99)
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# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29TOPDIR =	../../../../..
30
31include $(TOPDIR)/uts/Makefile.uts
32
33MODULE	= fs
34
35PLATLINKS	= SUNW,Ultra-2
36PLATLINKS	+= SUNW,Ultra-250
37PLATLINKS	+= SUNW,Ultra-4
38PLATLINKS	+= SUNW,Ultra-Enterprise
39PLATLINKS	+= SUNW,Ultra-Enterprise-10000
40PLATLINKS	+= SUNW,UltraSPARC-IIi-Netract
41PLATLINKS	+= SUNW,UltraSPARC-IIe-NetraCT-40
42PLATLINKS	+= SUNW,UltraSPARC-IIe-NetraCT-60
43PLATLINKS	+= SUNW,Sun-Blade-100
44PLATLINKS	+= SUNW,Sun-Blade-1000
45PLATLINKS	+= SUNW,Sun-Blade-1500
46PLATLINKS	+= SUNW,Sun-Blade-2500
47PLATLINKS	+= SUNW,A70
48PLATLINKS	+= SUNW,Sun-Fire
49PLATLINKS	+= SUNW,Sun-Fire-V240
50PLATLINKS	+= SUNW,Sun-Fire-V250
51PLATLINKS	+= SUNW,Sun-Fire-V440
52PLATLINKS	+= SUNW,Sun-Fire-280R
53PLATLINKS	+= SUNW,Sun-Fire-15000
54PLATLINKS	+= SUNW,Sun-Fire-880
55PLATLINKS	+= SUNW,Sun-Fire-480R
56PLATLINKS	+= SUNW,Sun-Fire-V890
57PLATLINKS	+= SUNW,Sun-Fire-V490
58PLATLINKS	+= SUNW,Serverblade1
59PLATLINKS	+= SUNW,Netra-T12
60PLATLINKS	+= SUNW,Netra-T4
61PLATLINKS	+= SUNW,Netra-CP2300
62PLATLINKS	+= SUNW,Netra-CP3010
63
64LINKED_DIRS	= $(PLATLINKS:%=$(USR_PLAT_DIR)/%)
65LINKED_LIB_DIRS	= $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib)
66LINKED_LIB_FS_DIRS	= $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib/fs)
67
68all	:=	TARGET = all
69install	:=	TARGET = install
70clean	:=	TARGET = clean
71
72TARG_MACH =	sparcv9
73TARG_MACH_DIR =	sparcv9
74ARCHVERS =	v9
75PLATFORM =	sun4u
76ARCHMMU  =	sfmmu
77PROMVERS =	ieee1275
78ASFLAGS +=	$(sparcv9_XARCH)
79
80PLAT_C_SRC =	machdep.c
81ARCH_C_SRC =	sun4u_memlist.c sun4x_standalloc.c sun4dep.c
82ARCH_S_SRC =	sparcv9_subr.s
83SRT0_S =	sun4u_srt0.s
84INLINES =
85
86LDFLAGS +=	-L$(TOPDIR)/psm/stand/lib/promif/$(TARG_MACH)/$(PROMVERS)/common
87
88#
89# The following libraries are build in LIBPLAT_DIR
90#
91LIBPLAT_DIR =	$(TOPDIR)/psm/stand/lib/promif/$(TARG_MACH)/$(PROMVERS)/$(PLATFORM)
92LIBPLAT_LIBS =  libplat.a
93LIBPLAT_L_LIBS=	$(LIBPLAT_LIBS:lib%.a=llib-l%.ln)
94LIBPLAT_DEP = 	$(LIBPLAT_DIR)/$(LIBPLAT_LIBS)
95LIBPLAT_DEP_L =	$(LIBPLAT_DIR)/$(LIBPLAT_L_LIBS)
96
97#
98# Platform specific libraries
99#
100PSMLIBS +=      $(LIBPLAT_LIBS:lib%.a=-l%)
101PSMLIB_DIRS +=  $(LIBPLAT_DIR)
102
103
104#	MPSAS support
105MPSAS_BUILD:sh=		echo \\043
106$(MPSAS_BUILD)ARCHOPTS += -DMPSAS
107
108include ../Makefile.com
109
110# re-define ELFCONV for 4u--- sun4u can boot ELF directly
111ELFCONV = /usr/bin/cp
112
113# Don't need mapfile.inet for 4u inetboot
114NFS_MAPFILE = $(MACH_DIR)/mapfile
115
116#
117# Set the choice of compiler.
118
119include $(TOPDIR)/psm/Makefile.psm.64
120
121CFLAGS64	+= -xchip=ultra $(CCABS32)
122
123#
124# XXX this totally sucks since it effectively turns off -errchk=longptr64,
125# which we really should be using.
126#
127LINTFLAGS64 = $(LINTFLAGS) -Xarch=v9
128
129#
130# Cross-reference customization: include all boot-related source files.
131#
132UTSDIR=		../../../../../uts
133STANDLIBDIR=	../../../../../stand/lib
134STANDSYSDIR=	../../../../../stand/sys
135PROMDIRS=	../../../../promif
136NAMESDIRS=	../../../lib/names/sparcv9 ../../../lib/names/sparc/common
137XRDIRS +=	../../sparc/common ../../common $(STANDLIBDIR) \
138		$(STANDSYSDIR) $(PROMDIRS) $(NAMESDIRS)
139XRDEL =		sun4x_srt0* sun4x_memlist*
140XRPRUNE =	i86pc i386
141
142cscope.out tags: FRC
143	$(XREF) -x $@
144
145FRC:
146