xref: /illumos-gate/usr/src/lib/fm/topo/maps/SMCI,SSG-2028R-ACR24L/Makefile (revision 3fe80ca4a1f8a033d672a9a2e6e4babac651205a)
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 (the "License").
6# You may not use this file except in compliance with the License.
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
22#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25# Copyright (c) 2018, Joyent, Inc.
26#
27
28# NOTE: The name of the xml file we are building is 'platform'
29# specific, but its build is structured as 'arch' specific since
30# 'uname -i' on all x86 platforms returns i86pc.
31
32ARCH = i86pc
33CLASS = arch
34DTDFILE = topology.dtd.1
35JOYENT_PLATFORMS = \
36	Joyent-Compute-Platform-3101-hc-topology.xml \
37	Joyent-Compute-Platform-3102-hc-topology.xml
38
39JOYENT_USBMAPS = \
40	Joyent-Compute-Platform-3101-usb.usbtopo \
41	Joyent-Compute-Platform-3102-usb.usbtopo
42ROOTJOYENTMAPS = $(JOYENT_PLATFORMS:%=$(arch_ROOTTOPOROOT)/%)
43ROOTJOYENTUSB = $(JOYENT_USBMAPS:%=$(arch_ROOTTOPOROOT)/%)
44
45TOPOFILE = \
46	SSG-2028R-ACR24L-hc-topology.xml \
47	SSG-2028R-ACR24L-chassis-hc-topology.xml \
48	SSG-2028R-ACR24L-disk-hc-topology.xml \
49	SSG-2028R-ACR24L-slot-hc-topology.xml \
50	SSG-2028R-ACR24L-usb.usbtopo
51
52SRCDIR = ../SMCI,SSG-2028R-ACR24L
53
54PLATFORM = SSG-2028R-ACR24L
55
56CLOBBERFILES +=	$(ROOTJOYENTMAPS) SSG-2028R-ACR24L-disk-hc-topology.xml
57
58include ../Makefile.map
59
60install: $(ROOTJOYENTMAPS) $(ROOTJOYENTUSB)
61
62#
63# Note, the Joyent Compute Platform 310x is based on the SuperMicro
64# SSG-2028R-ACR24L. Because of that, the topo map used here will work for all
65# such systems.
66#
67$(ROOTJOYENTMAPS): SSG-2028R-ACR24L-hc-topology.xml
68	$(RM) $@
69	$(SYMLINK) ./$? $@
70
71$(ROOTJOYENTUSB): SSG-2028R-ACR24L-usb.usbtopo
72	$(RM) $@
73	$(SYMLINK) ./$? $@
74