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