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