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