Print this page
11630 remove checks for 64-bit capable hardware
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/psm/stand/lib/promif/sparcv9/ieee1275/sun4v/Makefile
+++ new/usr/src/psm/stand/lib/promif/sparcv9/ieee1275/sun4v/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
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
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 2010 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 +# Copyright 2019 Peter tribble.
24 25 #
25 26 # psm/stand/boot/sparcv9/ieee1275/sun4v/Makefile
26 27 #
27 28 #
28 29 TOPDIR = ../../../../../../..
29 30
30 31 include $(TOPDIR)/Makefile.master
31 32 include $(TOPDIR)/lib/Makefile.lib
32 33 include $(TOPDIR)/psm/stand/lib/Makefile.lib
33 34 include $(TOPDIR)/psm/Makefile.psm.64
34 35
35 36 CFLAGS64 += -xchip=ultra $(CCABS32)
36 37
37 38 PLATDIR = $(TOPDIR)/psm/promif/ieee1275/sun4u
38 39 PLATSUN4DIR = $(TOPDIR)/psm/promif/ieee1275/sun4
39 40 SYSDIR = $(TOPDIR)/uts
40 41
41 42 LIBPLAT = libplat.a
42 43 LINTLIBPLAT = llib-lplat.ln
43 44
44 45 PLAT_PFILES =
45 46
46 47 PLAT_PSUN4FILES = \
47 48 prom_alloc.c \
48 49 prom_cpuctl.c \
49 50 prom_fio.c \
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
50 51 prom_getunum.c \
51 52 prom_heartbeat.c \
52 53 prom_idprom.c \
53 54 prom_init.c \
54 55 prom_macaddr.c \
55 56 prom_map.c \
56 57 prom_mem.c \
57 58 prom_mmu.c \
58 59 prom_retain.c \
59 60 prom_sparc.c \
60 - prom_vername.c \
61 - prom_vercheck.c
61 + prom_vername.c
62 62
63 63 KARCH = sun4v
64 64 MMU = sfmmu
65 65
66 66 OBJSDIR = objs
67 67
68 68 PLAT_POBJ = $(PLAT_PFILES:%.c=$(OBJSDIR)/%.o)
69 69 PLAT_PSUN4OBJ = $(PLAT_PSUN4FILES:%.c=$(OBJSDIR)/%.o)
70 70 OBJS = $(PLAT_POBJ) $(PLAT_PSUN4OBJ)
71 71 L_OBJS = $(OBJS:%.o=%.ln)
72 -L_SRCS = $(PLAT_PFILES:%=$(PLATDIR)/%)
73 -L_SRCS += $(PLAT_PSUN4FILES:%=$(PLATSUN4DIR)/%)
72 +L_SRCS = $(PLAT_PFILES:%=$(PLATDIR)/%)
73 +L_SRCS += $(PLAT_PSUN4FILES:%=$(PLATSUN4DIR)/%)
74 74
75 75 ARCHOPTS= -Dsun4v
76 76 ASFLAGS = -P -D__STDC__ -D_BOOT -D_ASM
77 77 CPPDEFS = $(ARCHOPTS) -D$(KARCH) -D_BOOT -D_KERNEL -D_MACHDEP
78 78 CPPINCS = -I. -I$(SYSDIR)/sun4 -I$(SYSDIR)/$(KARCH) -I$(SYSDIR)/$(MMU) \
79 79 -I$(SYSDIR)/sun4u \
80 80 -I$(SYSDIR)/sparc/v9 -I$(SYSDIR)/sparc \
81 81 -I$(SYSDIR)/sun -I$(SYSDIR)/common
82 82 CPPFLAGS= $(CPPDEFS) $(CPPINCS) $(CPPFLAGS.master)
83 83 CFLAGS += $(CCVERBOSE)
84 84
85 85 .KEEP_STATE:
86 86
87 87 .PARALLEL: $(OBJS) $(L_OBJS)
88 88
89 89 all install: $(LIBPLAT)
90 90
91 91 lint: $(LINTLIBPLAT)
92 92
93 93 clean:
94 94 $(RM) $(OBJS) $(L_OBJS)
95 95
96 96 clobber: clean
97 97 $(RM) $(LIBPLAT) $(LINTLIBPLAT)
98 98
99 99 $(LIBPLAT): $(OBJSDIR) .WAIT $(OBJS)
100 100 $(BUILD.AR) $(OBJS)
101 101
102 102 $(LINTLIBPLAT): $(OBJSDIR) .WAIT $(L_OBJS)
103 103 @$(ECHO) "\nlint library construction:" $@
104 104 @$(LINT.lib) -o plat $(L_SRCS)
105 105
106 106 $(OBJSDIR):
107 107 -@[ -d $@ ] || mkdir $@
108 108
109 109 #
110 110 # build rules using standard library object subdirectory
111 111 #
112 112 $(OBJSDIR)/%.o: $(PLATDIR)/%.c
113 113 $(COMPILE.c) -o $@ $<
114 114 $(POST_PROCESS_O)
115 115
116 116 $(OBJSDIR)/%.o: $(PLATDIR)/%.s
117 117 $(COMPILE.s) -o $@ $<
118 118 $(POST_PROCESS_O)
119 119
120 120 $(OBJSDIR)/%.o: $(PLATSUN4DIR)/%.c
121 121 $(COMPILE.c) -o $@ $<
122 122 $(POST_PROCESS_O)
123 123
124 124 $(OBJSDIR)/%.o: $(PLATSUN4DIR)/%.s
125 125 $(COMPILE.s) -o $@ $<
126 126 $(POST_PROCESS_O)
127 127
128 128 $(OBJSDIR)/%.ln: $(PLATDIR)/%.c
129 129 @($(LHEAD) $(LINT.c) $< $(LTAIL))
130 130 @$(MV) $(@F) $@
131 131
132 132 $(OBJSDIR)/%.ln: $(PLATDIR)/%.s
133 133 @($(LHEAD) $(LINT.s) $< $(LTAIL))
134 134 @$(MV) $(@F) $@
135 135
136 136 $(OBJSDIR)/%.ln: $(PLATSUN4DIR)/%.c
137 137 @($(LHEAD) $(LINT.c) $< $(LTAIL))
138 138 @$(MV) $(@F) $@
139 139
140 140 $(OBJSDIR)/%.ln: $(PLATSUN4DIR)/%.s
141 141 @($(LHEAD) $(LINT.s) $< $(LTAIL))
142 142 @$(MV) $(@F) $@
↓ open down ↓ |
59 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX