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>
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.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
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 +# Copyright 2017 RackTop Systems.
26 +#
25 27
26 28 PROG = ucodeadm
27 29
28 30 PROG_OBJS = ucodeadm.o ucode_errno.o
29 31 COMMON_OBJS = ucode_utils.o
30 32 OBJS = $(PROG_OBJS) $(COMMON_OBJS)
31 33 COMMON_SRCDIR = ../../common/ucode
32 34 ERROR_HEADER = $(COMMON_SRCDIR)/ucode_errno.h
33 35 SRCS = $(PROG_OBJS:%.o=%.c) $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c)
34 36
35 37 include ../Makefile.cmd
36 38
37 39 POFILE = ucodeadm_all.po
38 40 POFILES = $(PROG_OBJS:%.o=%.po)
39 41
40 42 INTEL_UCODE_FILE = intel-ucode.txt
41 43 AMD_UCODE_FILE = amd-ucode.bin
42 44
↓ open down ↓ |
8 lines elided |
↑ open up ↑ |
43 45 ROOTUCODEPATH = $(ROOT)/platform/i86pc/ucode
44 46 ROOTINTELUCODE = $(INTEL_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
45 47 ROOTAMDUCODE = $(AMD_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
46 48
47 49 CPPFLAGS = -I../../common -I../../uts/common
48 50 CFLAGS += $(CCVERBOSE)
49 51 CERRWARN += -_gcc=-Wno-uninitialized
50 52 CERRWARN += -_gcc=-Wno-type-limits
51 53 LINTFLAGS += -errtags -erroff=E_NAME_DEF_NOT_USED2
52 54 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2
53 -LDLIBS = -lgen
55 +LDLIBS += -lgen
54 56
55 57 DIRMODE = 0755
56 58 FILEMODE = 0555
57 59
58 60 $(ROOTINTELUCODE) := FILEMODE = 0444
59 61 $(ROOTAMDUCODE) := FILEMODE = 0444
60 62
61 63 install := TARGET = install
62 64 clobber := TARGET = clobber
63 65
64 66 CLEANFILES += $(PROG) $(OBJS) ucode_errno.c $(POFILES) $(POFILE)
65 67
66 68 .KEEP_STATE:
67 69
68 70 all: $(PROG)
69 71
70 72 install: all $(ROOTUSRSBINPROG) $(ROOTUCODEPATH) $(ROOTINTELUCODE) $(ROOTAMDUCODE)
71 73
72 74 _msg: ucodeadm_all.po
73 75
74 76 %.o: $(COMMON_SRCDIR)/%.c
75 77 $(COMPILE.c) -o $@ $<
76 78 $(POST_PROCESS_O)
77 79
78 80 $(PROG): $(OBJS) ucode_errno.c
79 81 $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
80 82 $(POST_PROCESS)
81 83
82 84 $(ROOTUCODEPATH):
83 85 $(INS.dir)
84 86
85 87 $(ROOTUCODEPATH)/%: %
86 88 $(INS.file)
87 89
88 90 clean:
89 91 -$(RM) $(CLEANFILES)
90 92
91 93 lint: lint_SRCS
92 94
93 95
94 96 include ../Makefile.targ
95 97
96 98 ucode_errno.c: $(COMMON_SRCDIR)/mkerrno.sh $(ERROR_HEADER)
97 99 sh $(COMMON_SRCDIR)/mkerrno.sh $(ERROR_HEADER) > $@
98 100
99 101 ucode_errno.po := XGETFLAGS += -a
100 102
101 103 $(POFILE): $(POFILES)
102 104 $(RM) $@
103 105 $(CAT) $(POFILES) > $@
104 106
105 107 FRC:
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX