Print this page
10077 usr/src/uts/ Makefile changes for smatch


   6 # You may not use this file except in compliance with the License.
   7 #
   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.
  12 #
  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]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # uts/i86pc/isa/Makefile
  23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright 2016 Joyent, Inc.
  27 #
  28 #       This makefile drives the production of the ISA nexus driver
  29 #
  30 #       i86pc implementation architecture dependent
  31 #
  32 
  33 #
  34 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  35 #
  36 UTSBASE = ../..
  37 
  38 #
  39 #       Define the module and object file sets.
  40 #
  41 MODULE          = isa
  42 OBJECTS         = $(ISANEXUS_OBJS:%=$(OBJS_DIR)/%)
  43 LINTS           = $(ISANEXUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
  44 ROOTMODULE      = $(ROOT_PSM_DRV_DIR)/$(MODULE)
  45 INC_PATH        += -I$(UTSBASE)/i86pc/sys/acpi
  46 
  47 #
  48 #       Include common rules.
  49 #
  50 include $(UTSBASE)/i86pc/Makefile.i86pc
  51 
  52 #
  53 #       Define targets
  54 #
  55 ALL_TARGET      = $(BINARY)
  56 LINT_TARGET     = $(MODULE).lint
  57 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  58 
  59 $(OBJS_DIR)/isa.o :=    CERRWARN        += -_gcc=-Wno-unused-function
  60 



  61 #
  62 # lint pass one enforcement
  63 #
  64 CFLAGS += $(CCVERBOSE)
  65 
  66 #
  67 #       Dependency
  68 LDFLAGS         += -dy -Nmisc/acpica -Nmisc/busra -Nmisc/pci_autoconfig
  69 
  70 #
  71 # Define our version of dma_engine and i8237A interfaces
  72 #
  73 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_init=$(MODULE)_i_dmae_init
  74 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_acquire=$(MODULE)_i_dmae_acquire
  75 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_free=$(MODULE)_i_dmae_free
  76 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_get_best_mode=$(MODULE)_i_dmae_get_best_mode
  77 $(OBJECTS) $(LINTS)     := CPPFLAGS += -D_dmae_nxcookie=$(MODULE)__dmae_nxcookie
  78 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_prog=$(MODULE)_i_dmae_prog
  79 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_swsetup=$(MODULE)_i_dmae_swsetup
  80 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_swsetup=$(MODULE)_i_dmae_swsetup




   6 # You may not use this file except in compliance with the License.
   7 #
   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.
  12 #
  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]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # uts/i86pc/isa/Makefile
  23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 #
  28 #       This makefile drives the production of the ISA nexus driver
  29 #
  30 #       i86pc implementation architecture dependent
  31 #
  32 
  33 #
  34 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  35 #
  36 UTSBASE = ../..
  37 
  38 #
  39 #       Define the module and object file sets.
  40 #
  41 MODULE          = isa
  42 OBJECTS         = $(ISANEXUS_OBJS:%=$(OBJS_DIR)/%)
  43 LINTS           = $(ISANEXUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
  44 ROOTMODULE      = $(ROOT_PSM_DRV_DIR)/$(MODULE)
  45 INC_PATH        += -I$(UTSBASE)/i86pc/sys/acpi
  46 
  47 #
  48 #       Include common rules.
  49 #
  50 include $(UTSBASE)/i86pc/Makefile.i86pc
  51 
  52 #
  53 #       Define targets
  54 #
  55 ALL_TARGET      = $(BINARY)
  56 LINT_TARGET     = $(MODULE).lint
  57 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  58 
  59 $(OBJS_DIR)/isa.o :=    CERRWARN        += -_gcc=-Wno-unused-function
  60 
  61 # needs work
  62 $(OBJS_DIR)/i8237A.o := SMOFF += indenting
  63 
  64 #
  65 # lint pass one enforcement
  66 #
  67 CFLAGS += $(CCVERBOSE)
  68 
  69 #
  70 #       Dependency
  71 LDFLAGS         += -dy -Nmisc/acpica -Nmisc/busra -Nmisc/pci_autoconfig
  72 
  73 #
  74 # Define our version of dma_engine and i8237A interfaces
  75 #
  76 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_init=$(MODULE)_i_dmae_init
  77 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_acquire=$(MODULE)_i_dmae_acquire
  78 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_free=$(MODULE)_i_dmae_free
  79 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_get_best_mode=$(MODULE)_i_dmae_get_best_mode
  80 $(OBJECTS) $(LINTS)     := CPPFLAGS += -D_dmae_nxcookie=$(MODULE)__dmae_nxcookie
  81 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_prog=$(MODULE)_i_dmae_prog
  82 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_swsetup=$(MODULE)_i_dmae_swsetup
  83 $(OBJECTS) $(LINTS)     := CPPFLAGS += -Di_dmae_swsetup=$(MODULE)_i_dmae_swsetup