Makefile revision fd43cf6ea90d0f421f98ca45675340de695681ac
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews# This file and its contents are supplied under the terms of the
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# Common Development and Distribution License ("CDDL"), version 1.0.
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews# You may only use this file in accordance with the terms of version
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# 1.0 of the CDDL.
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews#
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# A full copy of the text of the CDDL should have accompanied this
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# source. A copy of the CDDL is also available via the Internet at
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# http://www.illumos.org/license/CDDL.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
01bf5871f8861eb805dd8ca79bdb9b0b9e4e6a5eMark Andrews#
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews# Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f8f37672a57524560fbdde52484e6ae3de1c3354Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# This makefile drives the production of the iwn driver kernel module.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# intel architecture dependent
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Path to the base of the uts directory tree (usually /usr/src/uts).
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsUTSBASE = ../..
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# Define firmware location & files
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsFWDIR = $(UTSBASE)/common/io/iwn/fw-iw
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsFWFILES = iwlwifi-100-5.ucode iwlwifi-1000-3.ucode iwlwifi-105-6.ucode \
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark Andrews iwlwifi-135-6.ucode iwlwifi-2000-6.ucode iwlwifi-2030-6.ucode \
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews iwlwifi-4965-2.ucode iwlwifi-5000-2.ucode iwlwifi-5150-2.ucode \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews iwlwifi-6000-4.ucode iwlwifi-6000g2a-5.ucode iwlwifi-6000g2b-6.ucode \
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark Andrews iwlwifi-6050-5.ucode
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
4038ab55037184d76153afd3c469aa8c85adf85dMark Andrews#
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews# Define the module and object file sets.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark AndrewsMODULE = iwn
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsOBJECTS = $(IWN_OBJS:%=$(OBJS_DIR)/%)
ede29aeb412c5448ab9a2028763ae08e7887ca74Mark AndrewsLINTS = $(IWN_OBJS:%.o=$(LINTS_DIR)/%.ln)
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark AndrewsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsROOTFIRMWARE = $(FWFILES:%=$(ROOT_FIRMWARE_DIR)/$(MODULE)/%)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# Include common rules.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninclude $(UTSBASE)/intel/Makefile.intel
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Define targets
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark AndrewsLINT_TARGET = $(MODULE).lint
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTFIRMWARE)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Overrides
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
eaccf5e805405de257b5a4840256c580fefe00e3Mark AndrewsLINTTAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLINTTAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLINTTAGS += -erroff=E_INTEGER_OVERFLOW_DETECTED
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Default build targets.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson.KEEP_STATE:
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssondef: $(DEF_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonall: $(ALL_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonclean: $(CLEAN_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonclobber: $(CLOBBER_DEPS)
c25080dc50542213058c240226c9f342186e6285Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrewslint: $(LINT_DEPS)
413988c8166976498250c0ebb2e3a645d0366bd3Mark Andrews
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
642e0716c8b4ab82ebc8e60f94c9e897ee89f19aMark Andrews
c25080dc50542213058c240226c9f342186e6285Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
413988c8166976498250c0ebb2e3a645d0366bd3Mark Andrewsinstall: $(INSTALL_DEPS)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
c25080dc50542213058c240226c9f342186e6285Mark Andrews#
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# Include common targets.
413988c8166976498250c0ebb2e3a645d0366bd3Mark Andrews#
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrewsinclude $(UTSBASE)/intel/Makefile.targ
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews