xref: /titanic_41/usr/src/psm/stand/boot/Makefile.boot (revision 70025d765b044c6d8594bb965a2247a61e991a99)
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# psm/stand/boot/Makefile.boot
29
30#
31# Hack until stand makefiles are fixed
32#
33CLASS	= 32
34
35include $(TOPDIR)/Makefile.master
36include $(TOPDIR)/Makefile.psm
37
38STANDDIR	= $(TOPDIR)/stand
39PSMSTANDDIR	= $(TOPDIR)/psm/stand
40
41SYSHDRDIR	= $(STANDDIR)
42SYSLIBDIR	= $(ROOT)/stand/lib
43
44PSMSYSHDRDIR	= $(PSMSTANDDIR)
45PSMNAMELIBDIR	= $(PSMSTANDDIR)/lib/names/$(MACH)
46PSMNAMELIBDIR64	= $(PSMSTANDDIR)/lib/names/$(MACH64)
47PSMPROMLIBDIR	= $(PSMSTANDDIR)/lib/promif/$(MACH)
48PSMPROMLIBDIR64	= $(PSMSTANDDIR)/lib/promif/$(MACH64)
49
50#
51# XXX	one day we should just be able to set PROG to 'cfsboot'..
52#	and everything will become a lot easier.
53#
54# XXX	note that we build but -don't- install the HSFS boot
55#	program - it's unused and untested, and until it is we
56#	shouldn't ship it!
57#
58UNIBOOT		= multiboot
59UFSBOOT		= ufsboot
60WANBOOT		= wanboot
61NFSBOOT		= inetboot
62HSFSBOOT	= hsfsboot
63
64#
65# Common install modes and owners
66#
67FILEMODE	= 644
68DIRMODE		= 755
69OWNER		= root
70GROUP		= sys
71
72#
73# Install locations
74#
75ROOT_PSM_UNIBOOT= $(ROOT_PSM_DIR)/$(UNIBOOT)
76ROOT_PSM_UFSBOOT= $(ROOT_PSM_DIR)/$(UFSBOOT)
77ROOT_PSM_WANBOOT= $(ROOT_PSM_DIR)/$(WANBOOT)
78USR_PSM_NFSBOOT	= $(USR_PSM_LIB_NFS_DIR)/$(NFSBOOT)
79USR_PSM_HSFSBOOT= $(USR_PSM_LIB_HSFS_DIR)/$(HSFSBOOT)
80
81#
82# While things are pretty much 32-bit lint-clean, there are a ton of
83# suspect pointer casts.  Since these may be serious problems (especially
84# on SPARC), this really needs to be investigated thoroughly one day.
85# However, we shouldn't feel too bad: the whole kernel is linted with this
86# turned off as well (along with a dozen other disabled warnings).
87#
88# The other two -erroff's are needed only because lint's -u flag is lame
89# and also turns off "name used but not defined" checks (so we instead
90# just enumerate the errors that -u turns off that we want turned off).
91#
92LINTFLAGS = -nmsF -erroff=E_BAD_PTR_CAST_ALIGN \
93	    -erroff=E_NAME_DECL_NOT_USED_DEF2 -erroff=E_NAME_DEF_NOT_USED2
94