Mercurial > illumos > illumos-gate
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 |
rev | line source |
---|---|
0 | 1 # |
2 # CDDL HEADER START | |
3 # | |
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 | 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 # | |
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 | 23 # Use is subject to license terms. |
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 | 27 |
28 PROG= bootadm | |
29 | |
30 SBINLINKS= $(PROG) | |
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 | 33 SRCS = $(OBJS:.o=.c) |
34 | |
0 | 35 include ../Makefile.com |
36 | |
37 | |
38 .KEEP_STATE: | |
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 | 42 |
43 # Writing into string literals is incorrect. We need to match gcc's | |
44 # behavior, which causes us to take SIGSEGV on such a write. | |
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 | 47 CPPFLAGS += -I../../../uts/common -I../../../common |
3446 | 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 | 53 all: $(PROG) |
54 | |
3446 | 55 $(PROG): $(OBJS) bootadm.h |
2345 | 56 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) |
57 $(POST_PROCESS) | |
58 | |
5648 | 59 install: all $(ROOTSBINPROG) .WAIT $(ROOTUSRSBINLINKS) |
0 | 60 |
61 clean: | |
3446 | 62 -$(RM) $(OBJS) |
0 | 63 |
64 _msg: | |
65 | |
3446 | 66 lint: lint_SRCS |
0 | 67 |
68 include ../Makefile.targ |