diff options
Diffstat (limited to 'usr/src/uts/i86xpv/unix/Makefile')
-rw-r--r-- | usr/src/uts/i86xpv/unix/Makefile | 60 |
1 files changed, 3 insertions, 57 deletions
diff --git a/usr/src/uts/i86xpv/unix/Makefile b/usr/src/uts/i86xpv/unix/Makefile index 28a20705b9..dd6cf2e5ce 100644 --- a/usr/src/uts/i86xpv/unix/Makefile +++ b/usr/src/uts/i86xpv/unix/Makefile @@ -46,13 +46,6 @@ OBJECTS = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \ $(KRTLD_OBJS:%=$(OBJS_DIR)/%) \ $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%) -LINTS = $(SPECIAL_OBJS:%.o=$(LINTS_DIR)/%.ln) \ - $(CORE_OBJS:%.o=$(LINTS_DIR)/%.ln) \ - $(KRTLD_OBJS:%.o=$(LINTS_DIR)/%.ln) \ - $(MACH_NOT_YET_KMODS:%.o=$(LINTS_DIR)/%.ln) \ - $(LINTS_DIR)/vers.ln \ - $(LINTS_DIR)/modstubs.ln - ROOTMODULE = $(ROOT_PSM_KERN_DIR)/$(UNIX) UNIX_BIN = $(OBJS_DIR)/$(UNIX) @@ -71,8 +64,6 @@ DBOOT_OBJECTS = $(DBOOT_OBJS:%=$(DBOOT_OBJS_DIR)/%) DBOOT_BIN = $(DBOOT_OBJS_DIR)/$(DBOOT) DBOOT_O = $(OBJS_DIR)/$(DBOOT).o DBOOT_S = $(DBOOT_O:%.o=%.s) -DBOOT_LINTS = $(DBOOT_OBJS:%.o=$(DBOOT_OBJS_DIR)/%.ln) -DBOOT_LINT = $(LINT_$(MACH)_$(CLASS)) # # Include common rules. @@ -83,7 +74,6 @@ include $(UTSBASE)/i86xpv/Makefile.i86xpv # Define targets # ALL_TARGET = $(UNIX_BIN) -LINT_TARGET = $(LINT_LIB) $(DBOOT_LINT_LIB) INSTALL_TARGET = $(UNIX_BIN) $(ROOTMODULE) # @@ -114,31 +104,20 @@ CLEANFILES += \ $(OBJS_DIR)/fb_swtch_src \ $(OBJS_DIR)/fb_swtch.s -CLEANFILES += \ - $(ZLIB_OBJS:%.o=$(OBJS_DIR)/%.o) \ - $(ZLIB_OBJS:%.o=$(OBJS_DIR)/%.ln) +CLEANFILES += $(ZLIB_OBJS:%.o=$(OBJS_DIR)/%.o) CLOBBERFILES = $(CLEANFILES) $(UNIX_BIN) -CLEANLINTFILES += $(LINT_LIB) $(DBOOT_LINT_LIB) $(DBOOT_LINTS) # instr_size needs a special header $(OBJS_DIR)/instr_size.o := EXTRA_OPTIONS = -I$(SRC)/common/dis/i386 -$(OBJS_DIR)/instr_size.ln := EXTRA_OPTIONS = -I$(SRC)/common/dis/i386 CFLAGS += -DDIS_MEM # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-char-subscripts @@ -153,11 +132,6 @@ CERRWARN += -_gcc=-Wno-empty-body # needs work SMATCH=off -# Ensure that lint sees 'struct cpu' containing a fully declared -# embedded 'struct machcpu' -# -LINTFLAGS += -D_MACHDEP -I../../i86pc - # # Default build targets. # @@ -171,10 +145,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) MAPFILE_32 = $(UNIX_MAPFILE) @@ -214,30 +184,6 @@ $(DSF_DIR)/$(OBJS_DIR)/assym.h $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h: FRC @cd $(DSF_DIR); $(MAKE) all.targ # -# The global lint target builds the kernel lint library (llib-lunix.ln) -# which is equivalent to a lint of /unix.o. Then all kernel modules for -# this architecture are linted against the kernel lint library. -# -# Note: lint errors in the kernel lint library will be repeated for -# each module. It is important that the kernel lint library -# be clean to keep the textual output to a reasonable level. -# - -$(LINT_LIB): $(LINT_LIB_DIR) $(LINTS) - @pwd - @-$(ECHO) "\n$(UNIX): (library construction):" - @$(LINT) -o$(UNIX) $(LINTFLAGS) $(LINTS) - @$(MV) $(@F) $@ - -$(DBOOT_LINT_LIB): $(LINT_LIB_DIR) $(DBOOT_LINTS) - @pwd - @-$(ECHO) "\n$(DBOOT): (library construction):" - @$(LINT) -o$(DBOOT) $(DBOOT_LINTFLAGS) $(DBOOT_LINTS) - @$(MV) $(@F) $@ - -lintlib: $(LINT_DEPS) - -# # Include common targets. # include $(UTSBASE)/i86xpv/Makefile.targ |