xref: /titanic_41/usr/src/psm/stand/boot/Makefile.boot (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate#
2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate#
4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate# with the License.
8*7c478bd9Sstevel@tonic-gate#
9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate# and limitations under the License.
13*7c478bd9Sstevel@tonic-gate#
14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate#
20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate#
22*7c478bd9Sstevel@tonic-gate#
23*7c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms.
25*7c478bd9Sstevel@tonic-gate#
26*7c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
27*7c478bd9Sstevel@tonic-gate#
28*7c478bd9Sstevel@tonic-gate# psm/stand/boot/Makefile.boot
29*7c478bd9Sstevel@tonic-gate
30*7c478bd9Sstevel@tonic-gate#
31*7c478bd9Sstevel@tonic-gate# Hack until stand makefiles are fixed
32*7c478bd9Sstevel@tonic-gate#
33*7c478bd9Sstevel@tonic-gateCLASS	= 32
34*7c478bd9Sstevel@tonic-gate
35*7c478bd9Sstevel@tonic-gateinclude $(TOPDIR)/Makefile.master
36*7c478bd9Sstevel@tonic-gateinclude $(TOPDIR)/Makefile.psm
37*7c478bd9Sstevel@tonic-gate
38*7c478bd9Sstevel@tonic-gateSTANDDIR	= $(TOPDIR)/stand
39*7c478bd9Sstevel@tonic-gatePSMSTANDDIR	= $(TOPDIR)/psm/stand
40*7c478bd9Sstevel@tonic-gate
41*7c478bd9Sstevel@tonic-gateSYSHDRDIR	= $(STANDDIR)
42*7c478bd9Sstevel@tonic-gateSYSLIBDIR	= $(ROOT)/stand/lib
43*7c478bd9Sstevel@tonic-gate
44*7c478bd9Sstevel@tonic-gatePSMSYSHDRDIR	= $(PSMSTANDDIR)
45*7c478bd9Sstevel@tonic-gatePSMNAMELIBDIR	= $(PSMSTANDDIR)/lib/names/$(MACH)
46*7c478bd9Sstevel@tonic-gatePSMNAMELIBDIR64	= $(PSMSTANDDIR)/lib/names/$(MACH64)
47*7c478bd9Sstevel@tonic-gatePSMPROMLIBDIR	= $(PSMSTANDDIR)/lib/promif/$(MACH)
48*7c478bd9Sstevel@tonic-gatePSMPROMLIBDIR64	= $(PSMSTANDDIR)/lib/promif/$(MACH64)
49*7c478bd9Sstevel@tonic-gate
50*7c478bd9Sstevel@tonic-gate#
51*7c478bd9Sstevel@tonic-gate# XXX	one day we should just be able to set PROG to 'cfsboot'..
52*7c478bd9Sstevel@tonic-gate#	and everything will become a lot easier.
53*7c478bd9Sstevel@tonic-gate#
54*7c478bd9Sstevel@tonic-gate# XXX	note that we build but -don't- install the HSFS boot
55*7c478bd9Sstevel@tonic-gate#	program - it's unused and untested, and until it is we
56*7c478bd9Sstevel@tonic-gate#	shouldn't ship it!
57*7c478bd9Sstevel@tonic-gate#
58*7c478bd9Sstevel@tonic-gateUNIBOOT		= multiboot
59*7c478bd9Sstevel@tonic-gateUFSBOOT		= ufsboot
60*7c478bd9Sstevel@tonic-gateWANBOOT		= wanboot
61*7c478bd9Sstevel@tonic-gateNFSBOOT		= inetboot
62*7c478bd9Sstevel@tonic-gateHSFSBOOT	= hsfsboot
63*7c478bd9Sstevel@tonic-gate
64*7c478bd9Sstevel@tonic-gate#
65*7c478bd9Sstevel@tonic-gate# Common install modes and owners
66*7c478bd9Sstevel@tonic-gate#
67*7c478bd9Sstevel@tonic-gateFILEMODE	= 644
68*7c478bd9Sstevel@tonic-gateDIRMODE		= 755
69*7c478bd9Sstevel@tonic-gateOWNER		= root
70*7c478bd9Sstevel@tonic-gateGROUP		= sys
71*7c478bd9Sstevel@tonic-gate
72*7c478bd9Sstevel@tonic-gate#
73*7c478bd9Sstevel@tonic-gate# Install locations
74*7c478bd9Sstevel@tonic-gate#
75*7c478bd9Sstevel@tonic-gateROOT_PSM_UNIBOOT= $(ROOT_PSM_DIR)/$(UNIBOOT)
76*7c478bd9Sstevel@tonic-gateROOT_PSM_UFSBOOT= $(ROOT_PSM_DIR)/$(UFSBOOT)
77*7c478bd9Sstevel@tonic-gateROOT_PSM_WANBOOT= $(ROOT_PSM_DIR)/$(WANBOOT)
78*7c478bd9Sstevel@tonic-gateUSR_PSM_NFSBOOT	= $(USR_PSM_LIB_NFS_DIR)/$(NFSBOOT)
79*7c478bd9Sstevel@tonic-gateUSR_PSM_HSFSBOOT= $(USR_PSM_LIB_HSFS_DIR)/$(HSFSBOOT)
80*7c478bd9Sstevel@tonic-gate
81*7c478bd9Sstevel@tonic-gate#
82*7c478bd9Sstevel@tonic-gate# While things are pretty much 32-bit lint-clean, there are a ton of
83*7c478bd9Sstevel@tonic-gate# suspect pointer casts.  Since these may be serious problems (especially
84*7c478bd9Sstevel@tonic-gate# on SPARC), this really needs to be investigated thoroughly one day.
85*7c478bd9Sstevel@tonic-gate# However, we shouldn't feel too bad: the whole kernel is linted with this
86*7c478bd9Sstevel@tonic-gate# turned off as well (along with a dozen other disabled warnings).
87*7c478bd9Sstevel@tonic-gate#
88*7c478bd9Sstevel@tonic-gate# The other two -erroff's are needed only because lint's -u flag is lame
89*7c478bd9Sstevel@tonic-gate# and also turns off "name used but not defined" checks (so we instead
90*7c478bd9Sstevel@tonic-gate# just enumerate the errors that -u turns off that we want turned off).
91*7c478bd9Sstevel@tonic-gate#
92*7c478bd9Sstevel@tonic-gateLINTFLAGS = -nmsF -erroff=E_BAD_PTR_CAST_ALIGN \
93*7c478bd9Sstevel@tonic-gate	    -erroff=E_NAME_DECL_NOT_USED_DEF2 -erroff=E_NAME_DEF_NOT_USED2
94