kernel: remove unused utsname_set_machine()
[unleashed.git] / usr / src / uts / sun4u / cheetahplus / Makefile
blobf9b370ce9de5123dd54e6162572dd0485d2aa981
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
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.
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]
19 # CDDL HEADER END
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
28 # This makefile drives the production of the sun4u UltraSPARC driver
29 # module.
31 # sun4u implementation architecture dependent
35 # Path to the base of the uts directory tree (usually /usr/src/uts).
37 UTSBASE = ../..
40 # Define the module and object file sets.
42 MODULE = SUNW,UltraSPARC-III+
43 OBJECTS = $(CHEETAHPLUS_OBJS:%=$(OBJS_DIR)/%)
44 ROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE)
45 SOFTLINKS = SUNW,UltraSPARC-IV SUNW,UltraSPARC-IV+
46 ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_PSM_CPU_DIR)/%)
48 CPU_DIR = .
49 HERE = ../cheetahplus
52 # Include common rules.
54 include $(UTSBASE)/sun4u/Makefile.sun4u
57 # Override defaults
59 CLEANFILES += $(CPULIB) $(SYM_MOD)
62 # Define targets
64 ALL_TARGET = $(SYM_MOD)
65 INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS)
67 CFLAGS += -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
68 -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
69 ASFLAGS += -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
70 -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
73 # cpu-module-specific flags
75 CPPFLAGS += -DCPU_MODULE -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
76 -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
77 AS_CPPFLAGS += -DCPU_MODULE -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
78 -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
81 # Default build targets.
83 .KEEP_STATE:
85 def: $(DEF_DEPS)
87 all: $(ALL_DEPS)
89 clean: $(CLEAN_DEPS)
91 clobber: $(CLOBBER_DEPS)
93 install: $(INSTALL_DEPS)
95 $(CPULIB): $(BINARY)
96 $(BUILD.SO) $(BINARY)
98 $(SYM_MOD): $(UNIX_O) $(CPULIB)
99 @echo "resolving symbols against unix.o"
100 @(cd $(UNIX_DIR); pwd; \
101 CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
103 $(ROOTSOFTLINKS): $(ROOTMODULE)
104 $(RM) $@; $(SYMLINK) $(MODULE) $@
106 # Include common targets.
108 include $(UTSBASE)/sun4u/Makefile.targ
111 # For now, disable these compiler warnings; maintainers should endeavor to
112 # investigate and remove these for maximum coverage. Please do not carry
113 # these forward to new Makefiles.
116 CERRWARN += -Wno-parentheses
117 CERRWARN += -Wno-uninitialized
118 CERRWARN += -Wno-unused-variable
119 CERRWARN += -Wno-type-limits
120 CERRWARN += -Wno-clobbered