xref: /illumos-gate/usr/src/data/ucode/Makefile (revision 3e8b6b84e5ea96d276f9d6364e9f53b94d58ea00)
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
33.PARALLEL:
34
35all:
36
37install: $(ROOTAMDFILES) $(ROOTINTELFILES) $(ROOTINTELLINKS)
38
39clean:
40
41$(ROOTUCODEPATH):
42	$(INS.dir)
43
44$(ROOTINTELDIR) $(ROOTAMDDIR): $(ROOTUCODEPATH)
45	$(INS.dir)
46
47$(ROOTAMDDIR)/%: amd/% $(ROOTAMDDIR)
48	$(INS.file)
49
50$(ROOTINTELDIR)/%: intel/% $(ROOTINTELDIR)
51	$(INS.file)
52
53include	$(SRC)/data/Makefile.targ
54