Print this page
11843 update Intel microcode to 20190918
Reviewed by: Dan McDonald <danmcd@joyent.com>
Portions contributed by: Andy Fiddaman <andy@omniosce.org>
Portions contributed by: Robert Mustacchi <rm@fingolfin.org>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/ucodeadm/Makefile
+++ new/usr/src/cmd/ucodeadm/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright 2017 RackTop Systems.
26 26 #
27 27
28 28 PROG = ucodeadm
29 29
30 30 PROG_OBJS = ucodeadm.o ucode_errno.o
31 31 COMMON_OBJS = ucode_utils.o
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
32 32 OBJS = $(PROG_OBJS) $(COMMON_OBJS)
33 33 COMMON_SRCDIR = ../../common/ucode
34 34 ERROR_HEADER = $(COMMON_SRCDIR)/ucode_errno.h
35 35 SRCS = $(PROG_OBJS:%.o=%.c) $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c)
36 36
37 37 include ../Makefile.cmd
38 38
39 39 POFILE = ucodeadm_all.po
40 40 POFILES = $(PROG_OBJS:%.o=%.po)
41 41
42 -INTEL_UCODE_FILE = intel-ucode.txt
43 -AMD_UCODE_FILE = amd-ucode.bin
44 -
45 -ROOTUCODEPATH = $(ROOT)/platform/i86pc/ucode
46 -ROOTINTELUCODE = $(INTEL_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
47 -ROOTAMDUCODE = $(AMD_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
48 -
49 42 CPPFLAGS = -I../../common -I../../uts/common
50 43 CFLAGS += $(CCVERBOSE)
51 44 CERRWARN += $(CNOWARN_UNINIT)
52 45 CERRWARN += -_gcc=-Wno-type-limits
53 46 LINTFLAGS += -errtags -erroff=E_NAME_DEF_NOT_USED2
54 47 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2
55 48 LDLIBS += -lgen
56 49
57 50 DIRMODE = 0755
58 51 FILEMODE = 0555
59 52
60 -$(ROOTINTELUCODE) := FILEMODE = 0444
61 -$(ROOTAMDUCODE) := FILEMODE = 0444
62 -
63 53 install := TARGET = install
64 54 clobber := TARGET = clobber
65 55
66 56 CLEANFILES += $(PROG) $(OBJS) ucode_errno.c $(POFILES) $(POFILE)
67 57
68 58 .KEEP_STATE:
69 59
70 60 all: $(PROG)
71 61
72 -install: all $(ROOTUSRSBINPROG) $(ROOTUCODEPATH) $(ROOTINTELUCODE) $(ROOTAMDUCODE)
62 +install: all $(ROOTUSRSBINPROG)
73 63
74 64 _msg: ucodeadm_all.po
75 65
76 66 %.o: $(COMMON_SRCDIR)/%.c
77 67 $(COMPILE.c) -o $@ $<
78 68 $(POST_PROCESS_O)
79 69
80 70 $(PROG): $(OBJS) ucode_errno.c
81 71 $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
82 72 $(POST_PROCESS)
83 73
84 -$(ROOTUCODEPATH):
85 - $(INS.dir)
86 -
87 -$(ROOTUCODEPATH)/%: %
88 - $(INS.file)
89 -
90 74 clean:
91 75 -$(RM) $(CLEANFILES)
92 76
93 77 lint: lint_SRCS
94 78
95 79
96 80 include ../Makefile.targ
97 81
98 82 ucode_errno.c: $(COMMON_SRCDIR)/mkerrno.sh $(ERROR_HEADER)
99 83 sh $(COMMON_SRCDIR)/mkerrno.sh $(ERROR_HEADER) > $@
100 84
101 85 ucode_errno.po := XGETFLAGS += -a
102 86
103 87 $(POFILE): $(POFILES)
104 88 $(RM) $@
105 89 $(CAT) $(POFILES) > $@
106 90
107 91 FRC:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX