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