annotate usr/src/cmd/boot/bootadm/Makefile @ 13388:6c2fc79987ac

923 bootadm tries to rebuild archives which it shouldn't Reviewed by: Garrett D'Amore <garrett@nexenta.com> Reviewed by: Dan McDonald <danmcd@nexenta.com> Approved by: Albert Lee <trisk@nexenta.com>
author Alexander Eremin <a.eremin@nexenta.com>
date Tue, 14 Jun 2011 14:58:56 -0400
parents 4c75f60a2704
children 58bc6f85b799
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
1 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
2 # CDDL HEADER START
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
3 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
4 # The contents of this file are subject to the terms of the
2334
9aa84d301319 6256649 the boot-archive check should not trip over changes in devid-cache
setje
parents: 0
diff changeset
5 # Common Development and Distribution License (the "License").
9aa84d301319 6256649 the boot-archive check should not trip over changes in devid-cache
setje
parents: 0
diff changeset
6 # You may not use this file except in compliance with the License.
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
7 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
9 # or http://www.opensolaris.org/os/licensing.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
10 # See the License for the specific language governing permissions
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
11 # and limitations under the License.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
12 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
13 # When distributing Covered Code, include this CDDL HEADER in each
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
15 # If applicable, add the following below this CDDL HEADER, with the
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
16 # fields enclosed by brackets "[]" replaced with your own identifying
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
17 # information: Portions Copyright [yyyy] [name of copyright owner]
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
18 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
19 # CDDL HEADER END
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
20 #
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
21 #
8735
342d042ca571 6802006 Improving boot-archive creation performance
Enrico Perla - Sun Microsystems <Enrico.Perla@Sun.COM>
parents: 6694
diff changeset
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
23 # Use is subject to license terms.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
24 #
13388
6c2fc79987ac 923 bootadm tries to rebuild archives which it shouldn't
Alexander Eremin <a.eremin@nexenta.com>
parents: 10682
diff changeset
25 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
6c2fc79987ac 923 bootadm tries to rebuild archives which it shouldn't
Alexander Eremin <a.eremin@nexenta.com>
parents: 10682
diff changeset
26 #
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
27
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
28 PROG= bootadm
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
29
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
30 SBINLINKS= $(PROG)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
31
10499
31676b43a19e 6874337 Add private commands to bootadm to enable/disable hypervisor
William Kucharski <William.Kucharski@Sun.COM>
parents: 8735
diff changeset
32 OBJS= bootadm.o bootadm_upgrade.o bootadm_hyper.o
2345
bb227faffe98 6447460 gcc trips over spurious static in bootadm.c
setje
parents: 2334
diff changeset
33 SRCS = $(OBJS:.o=.c)
bb227faffe98 6447460 gcc trips over spurious static in bootadm.c
setje
parents: 2334
diff changeset
34
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
35 include ../Makefile.com
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
36
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
37
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
38 .KEEP_STATE:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
39
10682
4c75f60a2704 6868033 Solaris installed via legacy installer on a Linux Swap partition does not boot
Sheshadri Vasudevan <Sheshadri.Vasudevan@Sun.COM>
parents: 10499
diff changeset
40 LDLIBS_i386= -lfdisk
13388
6c2fc79987ac 923 bootadm tries to rebuild archives which it shouldn't
Alexander Eremin <a.eremin@nexenta.com>
parents: 10682
diff changeset
41 LDLIBS += -lnvpair -lgen -ladm -lefi -lscf -lz -lbe -lzfs $(LDLIBS_$(MACH))
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
42
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
43 # Writing into string literals is incorrect. We need to match gcc's
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
44 # behavior, which causes us to take SIGSEGV on such a write.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
45 CFLAGS += $(XSTRCONST)
2334
9aa84d301319 6256649 the boot-archive check should not trip over changes in devid-cache
setje
parents: 0
diff changeset
46 CPPFLAGS += -D_FILE_OFFSET_BITS=64
4581
b6104e41b06c PSARC/2007/349 Intel Microcode Update Support
sherrym
parents: 3446
diff changeset
47 CPPFLAGS += -I../../../uts/common -I../../../common
3446
5903aece022d PSARC 2006/469 EOF and removal of eeprom -I
mrj
parents: 2345
diff changeset
48
8735
342d042ca571 6802006 Improving boot-archive creation performance
Enrico Perla - Sun Microsystems <Enrico.Perla@Sun.COM>
parents: 6694
diff changeset
49 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2
342d042ca571 6802006 Improving boot-archive creation performance
Enrico Perla - Sun Microsystems <Enrico.Perla@Sun.COM>
parents: 6694
diff changeset
50 LINTFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
10682
4c75f60a2704 6868033 Solaris installed via legacy installer on a Linux Swap partition does not boot
Sheshadri Vasudevan <Sheshadri.Vasudevan@Sun.COM>
parents: 10499
diff changeset
51 LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
8735
342d042ca571 6802006 Improving boot-archive creation performance
Enrico Perla - Sun Microsystems <Enrico.Perla@Sun.COM>
parents: 6694
diff changeset
52
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
53 all: $(PROG)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
54
3446
5903aece022d PSARC 2006/469 EOF and removal of eeprom -I
mrj
parents: 2345
diff changeset
55 $(PROG): $(OBJS) bootadm.h
2345
bb227faffe98 6447460 gcc trips over spurious static in bootadm.c
setje
parents: 2334
diff changeset
56 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
bb227faffe98 6447460 gcc trips over spurious static in bootadm.c
setje
parents: 2334
diff changeset
57 $(POST_PROCESS)
bb227faffe98 6447460 gcc trips over spurious static in bootadm.c
setje
parents: 2334
diff changeset
58
5648
161f8007cab9 6521412 PSARC 2006/525: new boot sparc
setje
parents: 4581
diff changeset
59 install: all $(ROOTSBINPROG) .WAIT $(ROOTUSRSBINLINKS)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
60
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
61 clean:
3446
5903aece022d PSARC 2006/469 EOF and removal of eeprom -I
mrj
parents: 2345
diff changeset
62 -$(RM) $(OBJS)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
63
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
64 _msg:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
65
3446
5903aece022d PSARC 2006/469 EOF and removal of eeprom -I
mrj
parents: 2345
diff changeset
66 lint: lint_SRCS
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
67
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
68 include ../Makefile.targ