xref: /illumos-gate/usr/src/lib/fm/topo/maps/Joyent,Joyent-Compute-Platform-330x/Makefile (revision f52943a93040563107b95bccb9db87d9971ef47d)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright (c) 2018, Joyent, Inc.
14#
15
16ARCH = i86pc
17CLASS = arch
18DTDFILE = topology.dtd.1
19OTHER_VARIANTS = \
20	Joyent-Compute-Platform-3302-hc-topology.xml
21
22ROOTJOYENTMAPS = $(OTHER_VARIANTS:%=$(arch_ROOTTOPOROOT)/%)
23
24TOPOFILE = \
25	Joyent-Compute-Platform-3301-hc-topology.xml \
26	Joyent-Compute-Platform-330x-chassis-hc-topology.xml \
27	Joyent-Compute-Platform-330x-fan-hc-topology.xml
28
29SRCDIR = ../Joyent,Joyent-Compute-Platform-330x
30
31PLATFORM = Joyent-Compute-Platform-330x
32
33CLOBBERFILES +=	$(ROOTJOYENTMAPS)
34
35include ../Makefile.map
36
37install: $(ROOTJOYENTMAPS)
38
39#
40# The JCP-3301 and JCP-3302 are essentially the same underlying hardware.  The
41# only significant difference is the JCP-3302 uses SSDs internally instead of
42# traditional disks.  As such, the same platform topo map should work for
43# both platforms so we simply create a symlink from the JCP 3301 map for the
44# JCP 3302.
45#
46$(ROOTJOYENTMAPS): Joyent-Compute-Platform-3301-hc-topology.xml
47	$(RM) $@
48	$(SYMLINK) ./$? $@
49
50