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
↓ 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