xref: /titanic_52/usr/src/psm/stand/boot/sparcv9/sun4u/Makefile (revision f9ead4a57883f3ef04ef20d83cc47987d98c0687)
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
103include ../Makefile.com
104
105# re-define ELFCONV for 4u--- sun4u can boot ELF directly
106ELFCONV = /usr/bin/cp
107
108# Don't need mapfile.inet for 4u inetboot
109NFS_MAPFILE = $(MACH_DIR)/mapfile
110
111#
112# Set the choice of compiler.
113
114include $(TOPDIR)/psm/Makefile.psm.64
115
116CFLAGS64	+= -xchip=ultra $(CCABS32)
117
118#
119# XXX this totally sucks since it effectively turns off -errchk=longptr64,
120# which we really should be using.
121#
122LINTFLAGS64 = $(LINTFLAGS) -m64
123
124#
125# Cross-reference customization: include all boot-related source files.
126#
127STANDLIBDIR=	../../../../../stand/lib
128STANDSYSDIR=	../../../../../stand/sys
129PROMDIRS=	../../../../promif
130NAMESDIRS=	../../../lib/names/sparcv9 ../../../lib/names/sparc/common
131XRDIRS +=	../../sparc/common ../../common $(STANDLIBDIR) \
132		$(STANDSYSDIR) $(PROMDIRS) $(NAMESDIRS)
133XRPRUNE =	i86pc i386
134
135cscope.out tags: FRC
136	$(XREF) -x $@
137
138FRC:
139