xref: /illumos-gate/usr/src/data/ucode/Makefile (revision a6a3654b)
155908bd7SJohn Levon#
255908bd7SJohn Levon# This file and its contents are supplied under the terms of the
355908bd7SJohn Levon# Common Development and Distribution License ("CDDL"), version 1.0.
455908bd7SJohn Levon# You may only use this file in accordance with the terms of version
555908bd7SJohn Levon# 1.0 of the CDDL.
655908bd7SJohn Levon#
755908bd7SJohn Levon# A full copy of the text of the CDDL should have accompanied this
855908bd7SJohn Levon# source.  A copy of the CDDL is also available via the Internet at
955908bd7SJohn Levon# http://www.illumos.org/license/CDDL.
1055908bd7SJohn Levon#
1155908bd7SJohn Levon
1255908bd7SJohn Levon#
1355908bd7SJohn Levon# Copyright 2019 Joyent, Inc.
1455908bd7SJohn Levon#
1555908bd7SJohn Levon
1655908bd7SJohn Levoninclude	$(SRC)/data/Makefile.data
1755908bd7SJohn Levon
1855908bd7SJohn LevonROOTUCODEPATH = $(ROOT)/platform/i86pc/ucode
1955908bd7SJohn LevonROOTAMDDIR = $(ROOTUCODEPATH)/AuthenticAMD
2055908bd7SJohn LevonROOTINTELDIR = $(ROOTUCODEPATH)/GenuineIntel
2155908bd7SJohn Levon
2255908bd7SJohn LevonAMD_FILES :sh= (cd amd; print *)
23225bb523SAndy FiddamanINTEL_FILES :sh= (cd intel; print *-*)
2455908bd7SJohn Levoninclude $(SRC)/data/ucode/Makefile.links
2555908bd7SJohn Levon
2655908bd7SJohn LevonROOTAMDFILES = $(AMD_FILES:%=$(ROOTAMDDIR)/%)
2755908bd7SJohn LevonROOTINTELFILES = $(INTEL_FILES:%=$(ROOTINTELDIR)/%)
2855908bd7SJohn LevonROOTINTELLINKS = $(INTEL_LINKS:%=$(ROOTINTELDIR)/%)
2955908bd7SJohn Levon
3055908bd7SJohn Levon$(ROOTAMDFILES) := FILEMODE = 444
3155908bd7SJohn Levon$(ROOTINTELFILES) := FILEMODE = 444
3255908bd7SJohn Levon
33*a6a3654bSRichard Lowe.PARALLEL:
34*a6a3654bSRichard Lowe
3555908bd7SJohn Levonall:
3655908bd7SJohn Levon
3755908bd7SJohn Levoninstall: $(ROOTAMDFILES) $(ROOTINTELFILES) $(ROOTINTELLINKS)
3855908bd7SJohn Levon
3955908bd7SJohn Levonclean:
4055908bd7SJohn Levon
4155908bd7SJohn Levon$(ROOTUCODEPATH):
4255908bd7SJohn Levon	$(INS.dir)
4355908bd7SJohn Levon
4455908bd7SJohn Levon$(ROOTINTELDIR) $(ROOTAMDDIR): $(ROOTUCODEPATH)
4555908bd7SJohn Levon	$(INS.dir)
4655908bd7SJohn Levon
4755908bd7SJohn Levon$(ROOTAMDDIR)/%: amd/% $(ROOTAMDDIR)
4855908bd7SJohn Levon	$(INS.file)
4955908bd7SJohn Levon
5055908bd7SJohn Levon$(ROOTINTELDIR)/%: intel/% $(ROOTINTELDIR)
5155908bd7SJohn Levon	$(INS.file)
5255908bd7SJohn Levon
5355908bd7SJohn Levoninclude	$(SRC)/data/Makefile.targ
54