Print this page
8410 ucoreadm links against libraries outside the proto area
Reviewed by: Yuri Pankov <yuripv@gmx.com>
Reviewed by: Toomas Soome <tsoome@me.com>


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #


  25 
  26 PROG = ucodeadm
  27 
  28 PROG_OBJS = ucodeadm.o ucode_errno.o
  29 COMMON_OBJS = ucode_utils.o
  30 OBJS = $(PROG_OBJS) $(COMMON_OBJS)
  31 COMMON_SRCDIR = ../../common/ucode
  32 ERROR_HEADER = $(COMMON_SRCDIR)/ucode_errno.h
  33 SRCS = $(PROG_OBJS:%.o=%.c) $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c)
  34 
  35 include ../Makefile.cmd
  36 
  37 POFILE = ucodeadm_all.po
  38 POFILES = $(PROG_OBJS:%.o=%.po)
  39 
  40 INTEL_UCODE_FILE = intel-ucode.txt
  41 AMD_UCODE_FILE = amd-ucode.bin
  42 
  43 ROOTUCODEPATH = $(ROOT)/platform/i86pc/ucode
  44 ROOTINTELUCODE = $(INTEL_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
  45 ROOTAMDUCODE = $(AMD_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
  46 
  47 CPPFLAGS = -I../../common -I../../uts/common
  48 CFLAGS  += $(CCVERBOSE)
  49 CERRWARN += -_gcc=-Wno-uninitialized
  50 CERRWARN += -_gcc=-Wno-type-limits
  51 LINTFLAGS += -errtags -erroff=E_NAME_DEF_NOT_USED2
  52 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2
  53 LDLIBS = -lgen
  54 
  55 DIRMODE = 0755
  56 FILEMODE = 0555
  57 
  58 $(ROOTINTELUCODE) := FILEMODE = 0444
  59 $(ROOTAMDUCODE) := FILEMODE = 0444
  60 
  61 install := TARGET = install
  62 clobber := TARGET = clobber
  63 
  64 CLEANFILES += $(PROG) $(OBJS) ucode_errno.c $(POFILES) $(POFILE)
  65 
  66 .KEEP_STATE:
  67 
  68 all: $(PROG)
  69 
  70 install: all $(ROOTUSRSBINPROG) $(ROOTUCODEPATH) $(ROOTINTELUCODE) $(ROOTAMDUCODE)
  71 
  72 _msg: ucodeadm_all.po
  73 




   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright 2017 RackTop Systems.
  26 #
  27 
  28 PROG = ucodeadm
  29 
  30 PROG_OBJS = ucodeadm.o ucode_errno.o
  31 COMMON_OBJS = ucode_utils.o
  32 OBJS = $(PROG_OBJS) $(COMMON_OBJS)
  33 COMMON_SRCDIR = ../../common/ucode
  34 ERROR_HEADER = $(COMMON_SRCDIR)/ucode_errno.h
  35 SRCS = $(PROG_OBJS:%.o=%.c) $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c)
  36 
  37 include ../Makefile.cmd
  38 
  39 POFILE = ucodeadm_all.po
  40 POFILES = $(PROG_OBJS:%.o=%.po)
  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 CPPFLAGS = -I../../common -I../../uts/common
  50 CFLAGS  += $(CCVERBOSE)
  51 CERRWARN += -_gcc=-Wno-uninitialized
  52 CERRWARN += -_gcc=-Wno-type-limits
  53 LINTFLAGS += -errtags -erroff=E_NAME_DEF_NOT_USED2
  54 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2
  55 LDLIBS += -lgen
  56 
  57 DIRMODE = 0755
  58 FILEMODE = 0555
  59 
  60 $(ROOTINTELUCODE) := FILEMODE = 0444
  61 $(ROOTAMDUCODE) := FILEMODE = 0444
  62 
  63 install := TARGET = install
  64 clobber := TARGET = clobber
  65 
  66 CLEANFILES += $(PROG) $(OBJS) ucode_errno.c $(POFILES) $(POFILE)
  67 
  68 .KEEP_STATE:
  69 
  70 all: $(PROG)
  71 
  72 install: all $(ROOTUSRSBINPROG) $(ROOTUCODEPATH) $(ROOTINTELUCODE) $(ROOTAMDUCODE)
  73 
  74 _msg: ucodeadm_all.po
  75