xref: /illumos-gate/usr/src/data/ucode/Makefile (revision 3b436d06bb95fd180ef7416b2b1b9972e2f2a513)
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 2019 Joyent, Inc.
14#
15
16include	$(SRC)/data/Makefile.data
17
18ROOTUCODEPATH = $(ROOT)/platform/i86pc/ucode
19ROOTAMDDIR = $(ROOTUCODEPATH)/AuthenticAMD
20ROOTINTELDIR = $(ROOTUCODEPATH)/GenuineIntel
21
22AMD_FILES :sh= (cd amd; print *)
23INTEL_FILES :sh= (cd intel; print *-*)
24include $(SRC)/data/ucode/Makefile.links
25
26ROOTAMDFILES = $(AMD_FILES:%=$(ROOTAMDDIR)/%)
27ROOTINTELFILES = $(INTEL_FILES:%=$(ROOTINTELDIR)/%)
28ROOTINTELLINKS = $(INTEL_LINKS:%=$(ROOTINTELDIR)/%)
29
30$(ROOTAMDFILES) := FILEMODE = 444
31$(ROOTINTELFILES) := FILEMODE = 444
32
33all:
34
35install: $(ROOTAMDFILES) $(ROOTINTELFILES) $(ROOTINTELLINKS)
36
37clean:
38
39$(ROOTUCODEPATH):
40	$(INS.dir)
41
42$(ROOTINTELDIR) $(ROOTAMDDIR): $(ROOTUCODEPATH)
43	$(INS.dir)
44
45$(ROOTAMDDIR)/%: amd/% $(ROOTAMDDIR)
46	$(INS.file)
47
48$(ROOTINTELDIR)/%: intel/% $(ROOTINTELDIR)
49	$(INS.file)
50
51include	$(SRC)/data/Makefile.targ
52