Print this page
LOCAL: preliminary topo mapping for Richmond-A disk bays
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/fm/topo/maps/Makefile.map
+++ new/usr/src/lib/fm/topo/maps/Makefile.map
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 +# Copyright (c) 2012, Joyent, Inc. All rights reserved.
25 26 #
26 -# ident "%Z%%M% %I% %E% SMI"
27 27
28 28 .KEEP_STATE:
29 29 .SUFFIXES:
30 -.SUFFIXES: .xml .xmlgen $(SUFFIXES)
30 +.SUFFIXES: .xml .xmlgen .xmlgenksh $(SUFFIXES)
31 31
32 32 MODCLASS = maps
33 33
34 34 include ../../../Makefile.lib
35 35 include ../../../../Makefile.lib
36 36
37 37 DTDSRC = $(DTDFILE:%=../common/%)
38 38 DTDTARG = $(DTDFILE:%=%)
39 39 ROOTDTDTARG = $(DTDTARG:%=$(ROOT)/usr/share/lib/xml/dtd/%)
40 40
41 41 common_ROOTTOPOROOT = $(ROOT)/usr/lib/fm/topo/$(MODCLASS)
42 42 arch_ROOTTOPOROOT = $(ROOT)/usr/platform/$(ARCH)/lib/fm/topo/$(MODCLASS)
43 43 platform_ROOTTOPOROOT = \
44 44 $(PLATFORMS:%=$(ROOT)/usr/platform/%/lib/fm/topo/$(MODCLASS))
45 45 ROOTTOPOROOT = $($(CLASS)_ROOTTOPOROOT)
46 46 ROOTTOPOMAPS = $(TOPOFILE:%=$(ROOTTOPOROOT)/%)
↓ open down ↓ |
6 lines elided |
↑ open up ↑ |
47 47
48 48 install:= FILEMODE = 0444
49 49
50 50 # The .xmlgen perl file automatically generates a new xml file. This is done
51 51 # to avoid having to deal with things like 48 platform specific internal
52 52 # storage bays by hand.
53 53 .xmlgen.xml:
54 54 $(RM) $@
55 55 $(CAT) ../common/xmlgen-header.xml > $@
56 56 $(PERL) $< >> $@
57 +
58 +.xmlgenksh.xml:
59 + $(RM) $@
60 + $(CAT) ../common/xmlgen-header-new.xml > $@
61 + $(KSH93) $< >> $@
57 62
58 63 %.xml: ../common/%.xml
59 64 $(RM) $@
60 65 $(CAT) $< > $@
61 66
62 67 include ../../Makefile.rootdirs
63 68
64 69 all: $(TOPOFILE)
65 70
66 71 clean:
67 72 $(RM) $(ROOTTOPOMAPS)
68 73 $(RM) $(TEMPTOPOFILE)
69 74
70 75 clobber: clean
71 76
72 77 check: $(CHECKHDRS)
73 78
74 79 install_h _msg:
75 80
76 81 lint: $(TOPOFILE:%=%.chk)
77 82
78 83 %.xml.chk: %.xml
79 84 @echo xmllint $<
80 85 @xmllint --dropdtd $< | \
81 86 xmllint --noout --dtdvalid $(DTDSRC) -
82 87
83 88 $($(CLASS)_ROOTTOPOROOT)/%: %
84 89 $(INS.file)
85 90
86 91 $(ROOTDTDTARG): $$(@D)
87 92 $(RM) $@; $(INS) -s -m 0444 -f $(@D) $(DTDSRC)
88 93
89 94 install: all $(ROOTDTDTARG) $(ROOTTOPOROOT) $(ROOTTOPOMAPS)
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX