xref: /titanic_44/usr/src/psm/stand/boot/sparcv9/sun4u/Makefile (revision b7f45089ccbe01bab3d7c7377b49d80d2ae18a69)
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
62
63LINKED_DIRS	= $(PLATLINKS:%=$(USR_PLAT_DIR)/%)
64LINKED_LIB_DIRS	= $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib)
65LINKED_LIB_FS_DIRS	= $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib/fs)
66
67all	:=	TARGET = all
68install	:=	TARGET = install
69clean	:=	TARGET = clean
70
71TARG_MACH =	sparcv9
72TARG_MACH_DIR =	sparcv9
73ARCHVERS =	v9
74PLATFORM =	sun4u
75ARCHMMU  =	sfmmu
76PROMVERS =	ieee1275
77ASFLAGS +=	$(sparcv9_XARCH)
78
79PLAT_C_SRC =	machdep.c
80ARCH_C_SRC =	sun4u_memlist.c sun4x_standalloc.c sun4dep.c
81ARCH_S_SRC =	sparcv9_subr.s
82SRT0_S =	sun4u_srt0.s
83INLINES =
84
85LDFLAGS +=	-L$(TOPDIR)/psm/stand/lib/promif/$(TARG_MACH)/$(PROMVERS)/common
86
87#
88# The following libraries are build in LIBPLAT_DIR
89#
90LIBPLAT_DIR =	$(TOPDIR)/psm/stand/lib/promif/$(TARG_MACH)/$(PROMVERS)/$(PLATFORM)
91LIBPLAT_LIBS =  libplat.a
92LIBPLAT_L_LIBS=	$(LIBPLAT_LIBS:lib%.a=llib-l%.ln)
93LIBPLAT_DEP = 	$(LIBPLAT_DIR)/$(LIBPLAT_LIBS)
94LIBPLAT_DEP_L =	$(LIBPLAT_DIR)/$(LIBPLAT_L_LIBS)
95
96#
97# Platform specific libraries
98#
99PSMLIBS +=      $(LIBPLAT_LIBS:lib%.a=-l%)
100PSMLIB_DIRS +=  $(LIBPLAT_DIR)
101
102
103#	MPSAS support
104MPSAS_BUILD:sh=		echo \\043
105$(MPSAS_BUILD)ARCHOPTS += -DMPSAS
106
107include ../Makefile.com
108
109# re-define ELFCONV for 4u--- sun4u can boot ELF directly
110ELFCONV = /usr/bin/cp
111
112# Don't need mapfile.inet for 4u inetboot
113NFS_MAPFILE = $(MACH_DIR)/mapfile
114
115#
116# Set the choice of compiler.
117
118include $(TOPDIR)/psm/Makefile.psm.64
119
120CFLAGS64	+= -xchip=ultra $(CCABS32)
121
122#
123# XXX this totally sucks since it effectively turns off -errchk=longptr64,
124# which we really should be using.
125#
126LINTFLAGS64 = $(LINTFLAGS) -Xarch=v9
127
128#
129# Cross-reference customization: include all boot-related source files.
130#
131UTSDIR=		../../../../../uts
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)
138XRDEL =		sun4x_srt0* sun4x_memlist*
139XRPRUNE =	i86pc i386
140
141cscope.out tags: FRC
142	$(XREF) -x $@
143
144FRC:
145