Print this page
10077 usr/src/uts/ Makefile changes for smatch
   1 #
   2 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
   3 # Use is subject to license terms.
   4 #
   5 # uts/intel/agpgart/Makefile
   6 #
   7 
   8 #
   9 #       This makefile drives the framework of agp protocol
  10 #       (agpgart) kernel module.
  11 #
  12 #
  13 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  14 #
  15 UTSBASE = ../..
  16 
  17 #
  18 #       Define the module and object file sets.
  19 #
  20 MODULE          = agpgart
  21 OBJECTS         = $(AGPGART_OBJS:%=$(OBJS_DIR)/%)
  22 LINTS           = $(AGPGART_OBJS:%.o=$(LINTS_DIR)/%.ln)
  23 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  24 CONF_SRCDIR     = $(UTSBASE)/intel/io/agpgart
  25 
  26 #
  27 #       Include common rules.
  28 #
  29 include $(UTSBASE)/intel/Makefile.intel
  30 
  31 #
  32 #       Define targets
  33 #
  34 ALL_TARGET      = $(BINARY) $(SRC_CONFILE)
  35 LINT_TARGET     = $(MODULE).lint
  36 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  37 
  38 CERRWARN        += -_gcc=-Wno-switch
  39 CERRWARN        += -_gcc=-Wno-parentheses
  40 CERRWARN        += -_gcc=-Wno-uninitialized
  41 



  42 #
  43 # For now, disable these lint checks; maintainers should endeavor
  44 # to investigate and remove these for maximum lint coverage.
  45 # Please do not carry these forward to new Makefiles.
  46 #
  47 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  48 
  49 #
  50 #       Default build targets.
  51 #
  52 .KEEP_STATE:
  53 
  54 def:            $(DEF_DEPS)
  55 
  56 all:            $(ALL_DEPS)
  57 
  58 clean:          $(CLEAN_DEPS)
  59 
  60 clobber:        $(CLOBBER_DEPS)
  61 
   1 #
   2 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
   3 # Use is subject to license terms.
   4 #
   5 # Copyright (c) 2018, Joyent, Inc.

   6 
   7 #
   8 #       This makefile drives the framework of agp protocol
   9 #       (agpgart) kernel module.
  10 #
  11 #
  12 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  13 #
  14 UTSBASE = ../..
  15 
  16 #
  17 #       Define the module and object file sets.
  18 #
  19 MODULE          = agpgart
  20 OBJECTS         = $(AGPGART_OBJS:%=$(OBJS_DIR)/%)
  21 LINTS           = $(AGPGART_OBJS:%.o=$(LINTS_DIR)/%.ln)
  22 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  23 CONF_SRCDIR     = $(UTSBASE)/intel/io/agpgart
  24 
  25 #
  26 #       Include common rules.
  27 #
  28 include $(UTSBASE)/intel/Makefile.intel
  29 
  30 #
  31 #       Define targets
  32 #
  33 ALL_TARGET      = $(BINARY) $(SRC_CONFILE)
  34 LINT_TARGET     = $(MODULE).lint
  35 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  36 
  37 CERRWARN        += -_gcc=-Wno-switch
  38 CERRWARN        += -_gcc=-Wno-parentheses
  39 CERRWARN        += -_gcc=-Wno-uninitialized
  40 
  41 # needs work
  42 $(OBJS_DIR)/agpgart.o := SMOFF += deref_check
  43 
  44 #
  45 # For now, disable these lint checks; maintainers should endeavor
  46 # to investigate and remove these for maximum lint coverage.
  47 # Please do not carry these forward to new Makefiles.
  48 #
  49 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  50 
  51 #
  52 #       Default build targets.
  53 #
  54 .KEEP_STATE:
  55 
  56 def:            $(DEF_DEPS)
  57 
  58 all:            $(ALL_DEPS)
  59 
  60 clean:          $(CLEAN_DEPS)
  61 
  62 clobber:        $(CLOBBER_DEPS)
  63