Print this page
10077 usr/src/uts/ Makefile changes for smatch
   1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
  14 #

  15 
  16 #
  17 # This makefile drives the production of the iwn driver kernel module.
  18 #
  19 # intel architecture dependent
  20 #
  21 
  22 #
  23 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  24 #
  25 UTSBASE = ../..
  26 
  27 #
  28 #       Define firmware location & files
  29 #
  30 FWDIR   = $(UTSBASE)/common/io/iwn/fw-iw
  31 FWFILES = iwlwifi-100-5.ucode iwlwifi-1000-3.ucode iwlwifi-105-6.ucode \
  32         iwlwifi-135-6.ucode iwlwifi-2000-6.ucode iwlwifi-2030-6.ucode \
  33         iwlwifi-4965-2.ucode iwlwifi-5000-2.ucode iwlwifi-5150-2.ucode \
  34         iwlwifi-6000-4.ucode iwlwifi-6000g2a-6.ucode iwlwifi-6000g2b-6.ucode \


  38 #       Define the module and object file sets.
  39 #
  40 MODULE          = iwn
  41 OBJECTS         = $(IWN_OBJS:%=$(OBJS_DIR)/%)
  42 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  43 ROOTFIRMWARE    = $(FWFILES:%=$(ROOT_FIRMWARE_DIR)/$(MODULE)/%)
  44 
  45 #
  46 #       Include common rules.
  47 #
  48 include $(UTSBASE)/intel/Makefile.intel
  49 
  50 #
  51 #       Define targets
  52 #
  53 ALL_TARGET      = $(BINARY) $(CONFMOD) $(ITUMOD)
  54 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOTFIRMWARE)
  55 
  56 LDFLAGS         += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
  57 



  58 #
  59 #       Default build targets.
  60 #
  61 .KEEP_STATE:
  62 
  63 def:            $(DEF_DEPS)
  64 
  65 all:            $(ALL_DEPS)
  66 
  67 clean:          $(CLEAN_DEPS)
  68 
  69 clobber:        $(CLOBBER_DEPS)
  70 
  71 lint:
  72 modlintlib:
  73 clean.lint:
  74 
  75 install:        $(INSTALL_DEPS)
  76 
  77 #
   1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
  14 #
  15 # Copyright (c) 2018, Joyent, Inc.
  16 
  17 #
  18 # This makefile drives the production of the iwn driver kernel module.
  19 #
  20 # intel architecture dependent
  21 #
  22 
  23 #
  24 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  25 #
  26 UTSBASE = ../..
  27 
  28 #
  29 #       Define firmware location & files
  30 #
  31 FWDIR   = $(UTSBASE)/common/io/iwn/fw-iw
  32 FWFILES = iwlwifi-100-5.ucode iwlwifi-1000-3.ucode iwlwifi-105-6.ucode \
  33         iwlwifi-135-6.ucode iwlwifi-2000-6.ucode iwlwifi-2030-6.ucode \
  34         iwlwifi-4965-2.ucode iwlwifi-5000-2.ucode iwlwifi-5150-2.ucode \
  35         iwlwifi-6000-4.ucode iwlwifi-6000g2a-6.ucode iwlwifi-6000g2b-6.ucode \


  39 #       Define the module and object file sets.
  40 #
  41 MODULE          = iwn
  42 OBJECTS         = $(IWN_OBJS:%=$(OBJS_DIR)/%)
  43 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  44 ROOTFIRMWARE    = $(FWFILES:%=$(ROOT_FIRMWARE_DIR)/$(MODULE)/%)
  45 
  46 #
  47 #       Include common rules.
  48 #
  49 include $(UTSBASE)/intel/Makefile.intel
  50 
  51 #
  52 #       Define targets
  53 #
  54 ALL_TARGET      = $(BINARY) $(CONFMOD) $(ITUMOD)
  55 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOTFIRMWARE)
  56 
  57 LDFLAGS         += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
  58 
  59 # needs work
  60 SMOFF += all_func_returns
  61 
  62 #
  63 #       Default build targets.
  64 #
  65 .KEEP_STATE:
  66 
  67 def:            $(DEF_DEPS)
  68 
  69 all:            $(ALL_DEPS)
  70 
  71 clean:          $(CLEAN_DEPS)
  72 
  73 clobber:        $(CLOBBER_DEPS)
  74 
  75 lint:
  76 modlintlib:
  77 clean.lint:
  78 
  79 install:        $(INSTALL_DEPS)
  80 
  81 #