xref: /titanic_41/usr/src/psm/stand/boot/sparcv9/sun4v/Makefile (revision d73ae94e59c019f5cc3221ee0a0012d02091b40e)
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 2006 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,Sun-Fire-T200
35PLATLINKS	+= SUNW,Netra-CP3060
36PLATLINKS	+= SUNW,Sun-Blade-T6300
37
38LINKED_DIRS	= $(PLATLINKS:%=$(USR_PLAT_DIR)/%)
39LINKED_LIB_DIRS	= $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib)
40LINKED_LIB_FS_DIRS	= $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib/fs)
41
42all	:=	TARGET = all
43install	:=	TARGET = install
44clean	:=	TARGET = clean
45
46TARG_MACH =	sparcv9
47TARG_MACH_DIR =	sparcv9
48ARCHVERS =	v9
49PLATFORM =	sun4v
50ARCHMMU  =	sfmmu
51PROMVERS =	ieee1275
52ASFLAGS +=	$(sparcv9_XARCH)
53
54PLAT_C_SRC =	machdep.c
55ARCH_C_SRC =	sun4u_memlist.c sun4x_standalloc.c sun4dep.c
56ARCH_S_SRC =	sparcv9_subr.s
57SRT0_S =	sun4u_srt0.s
58INLINES =
59
60LDFLAGS +=	-L$(TOPDIR)/psm/stand/lib/promif/$(TARG_MACH)/$(PROMVERS)/common
61
62#
63# The following libraries are build in LIBPLAT_DIR
64#
65LIBPLAT_DIR =	$(TOPDIR)/psm/stand/lib/promif/$(TARG_MACH)/$(PROMVERS)/$(PLATFORM)
66LIBPLAT_LIBS =  libplat.a
67LIBPLAT_L_LIBS=	$(LIBPLAT_LIBS:lib%.a=llib-l%.ln)
68LIBPLAT_DEP = 	$(LIBPLAT_DIR)/$(LIBPLAT_LIBS)
69LIBPLAT_DEP_L =	$(LIBPLAT_DIR)/$(LIBPLAT_L_LIBS)
70
71#
72# Platform specific libraries
73#
74PSMLIBS +=      $(LIBPLAT_LIBS:lib%.a=-l%)
75PSMLIB_DIRS +=  $(LIBPLAT_DIR)
76
77
78#	MPSAS support
79MPSAS_BUILD:sh=		echo \\043
80$(MPSAS_BUILD)ARCHOPTS += -DMPSAS
81
82include ../Makefile.com
83
84CPPINCS		+= -I$(SRC)/uts/sun4u
85CPPINCS		+= -I$(ROOT)/usr/platform/sun4u/include
86
87# re-define ELFCONV for 4v--- sun4v can boot ELF directly
88ELFCONV = /usr/bin/cp
89
90# Don't need mapfile.inet for 4v inetboot
91NFS_MAPFILE = $(MACH_DIR)/mapfile
92
93#
94# Set the choice of compiler.
95
96include $(TOPDIR)/psm/Makefile.psm.64
97
98CFLAGS64	+= -xchip=ultra $(CCABS32)
99
100#
101# XXX this totally sucks since it effectively turns off -errchk=longptr64,
102# which we really should be using.
103#
104LINTFLAGS64 = $(LINTFLAGS) -Xarch=v9
105
106#
107# Cross-reference customization: include all boot-related source files.
108#
109STANDLIBDIR=	../../../../../stand/lib
110STANDSYSDIR=	../../../../../stand/sys
111PROMDIRS=	../../../../promif
112NAMESDIRS=	../../../lib/names/sparcv9 ../../../lib/names/sparc/common
113XRDIRS +=	../../sparc/common ../../common $(STANDLIBDIR) \
114		$(STANDSYSDIR) $(PROMDIRS) $(NAMESDIRS)
115XRPRUNE =	i86pc i386
116
117cscope.out tags: FRC
118	$(XREF) -x $@
119
120FRC:
121