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
16 include $(SRC)/data/Makefile.data
17
18 ROOTUCODEPATH = $(ROOT)/platform/i86pc/ucode
19 ROOTAMDDIR = $(ROOTUCODEPATH)/AuthenticAMD
20 ROOTINTELDIR = $(ROOTUCODEPATH)/GenuineIntel
21
22 AMD_FILES :sh= (cd amd; print *)
23 INTEL_FILES :sh= (cd intel; print *)
24 include $(SRC)/data/ucode/Makefile.links
25
26 ROOTAMDFILES = $(AMD_FILES:%=$(ROOTAMDDIR)/%)
27 ROOTINTELFILES = $(INTEL_FILES:%=$(ROOTINTELDIR)/%)
28 ROOTINTELLINKS = $(INTEL_LINKS:%=$(ROOTINTELDIR)/%)
29
30 $(ROOTAMDFILES) := FILEMODE = 444
31 $(ROOTINTELFILES) := FILEMODE = 444
32
33 all:
34
35 install: $(ROOTAMDFILES) $(ROOTINTELFILES) $(ROOTINTELLINKS)
36
37 clean:
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
51 include $(SRC)/data/Makefile.targ