xref: /titanic_41/usr/src/psm/stand/boot/sparcv9/sun4u/Makefile (revision 96c4a178a18cd52ee5001195f1552d9cef0c38f0)
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 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26TOPDIR =	../../../../..
27
28include $(TOPDIR)/uts/Makefile.uts
29
30MODULE	= fs
31
32PLATLINKS	= SUNW,Ultra-2
33PLATLINKS	+= SUNW,Ultra-250
34PLATLINKS	+= SUNW,Ultra-4
35PLATLINKS	+= SUNW,Ultra-Enterprise
36PLATLINKS	+= SUNW,Ultra-Enterprise-10000
37PLATLINKS	+= SUNW,UltraSPARC-IIi-Netract
38PLATLINKS	+= SUNW,UltraSPARC-IIe-NetraCT-40
39PLATLINKS	+= SUNW,UltraSPARC-IIe-NetraCT-60
40PLATLINKS	+= SUNW,Sun-Blade-100
41PLATLINKS	+= SUNW,Sun-Blade-1000
42PLATLINKS	+= SUNW,Sun-Blade-1500
43PLATLINKS	+= SUNW,Sun-Blade-2500
44PLATLINKS	+= SUNW,A70
45PLATLINKS	+= SUNW,Sun-Fire-V445
46PLATLINKS	+= SUNW,Sun-Fire-V215
47PLATLINKS	+= SUNW,Sun-Fire
48PLATLINKS	+= SUNW,Sun-Fire-V240
49PLATLINKS	+= SUNW,Sun-Fire-V250
50PLATLINKS	+= SUNW,Sun-Fire-V440
51PLATLINKS	+= SUNW,Sun-Fire-280R
52PLATLINKS	+= SUNW,Sun-Fire-15000
53PLATLINKS	+= SUNW,Sun-Fire-880
54PLATLINKS	+= SUNW,Sun-Fire-480R
55PLATLINKS	+= SUNW,Sun-Fire-V890
56PLATLINKS	+= SUNW,Sun-Fire-V490
57PLATLINKS	+= SUNW,Serverblade1
58PLATLINKS	+= SUNW,Netra-T12
59PLATLINKS	+= SUNW,Netra-T4
60PLATLINKS	+= SUNW,Netra-CP2300
61PLATLINKS	+= SUNW,Netra-CP3010
62PLATLINKS	+= SUNW,SPARC-Enterprise
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) -m64
128
129#
130# Cross-reference customization: include all boot-related source files.
131#
132STANDLIBDIR=	../../../../../stand/lib
133STANDSYSDIR=	../../../../../stand/sys
134PROMDIRS=	../../../../promif
135NAMESDIRS=	../../../lib/names/sparcv9 ../../../lib/names/sparc/common
136XRDIRS +=	../../sparc/common ../../common $(STANDLIBDIR) \
137		$(STANDSYSDIR) $(PROMDIRS) $(NAMESDIRS)
138XRPRUNE =	i86pc i386
139
140cscope.out tags: FRC
141	$(XREF) -x $@
142
143FRC:
144