1*d14abf15SRobert Mustacchi# 2*d14abf15SRobert Mustacchi# This file and its contents are supplied under the terms of the 3*d14abf15SRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0. 4*d14abf15SRobert Mustacchi# You may only use this file in accordance with the terms of version 5*d14abf15SRobert Mustacchi# 1.0 of the CDDL. 6*d14abf15SRobert Mustacchi# 7*d14abf15SRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this 8*d14abf15SRobert Mustacchi# source. A copy of the CDDL is also available via the Internet at 9*d14abf15SRobert Mustacchi# http://www.illumos.org/license/CDDL. 10*d14abf15SRobert Mustacchi# 11*d14abf15SRobert Mustacchi 12*d14abf15SRobert Mustacchi# 13*d14abf15SRobert Mustacchi# Copyright (c) 2014, Joyent, Inc. All rights reserved. 14*d14abf15SRobert Mustacchi# 15*d14abf15SRobert Mustacchi 16*d14abf15SRobert Mustacchi# 17*d14abf15SRobert Mustacchi# uts/intel/bnxe/Makefile 18*d14abf15SRobert Mustacchi# 19*d14abf15SRobert Mustacchi# This makefile drives the production of the bnxe 20*d14abf15SRobert Mustacchi# driver kernel module. 21*d14abf15SRobert Mustacchi# 22*d14abf15SRobert Mustacchi# intel architecture dependent 23*d14abf15SRobert Mustacchi# 24*d14abf15SRobert Mustacchi 25*d14abf15SRobert Mustacchi# 26*d14abf15SRobert Mustacchi# Paths to the base of the uts directory trees 27*d14abf15SRobert Mustacchi# 28*d14abf15SRobert MustacchiUTSBASE = ../.. 29*d14abf15SRobert Mustacchi 30*d14abf15SRobert Mustacchi# 31*d14abf15SRobert Mustacchi# Define the module and object file sets. 32*d14abf15SRobert Mustacchi# 33*d14abf15SRobert MustacchiMODULE = bnxe 34*d14abf15SRobert MustacchiOBJECTS = $(BNXE_OBJS:%=$(OBJS_DIR)/%) 35*d14abf15SRobert MustacchiLINTS = $(LINTS_DIR)/bnxe_lint.ln 36*d14abf15SRobert MustacchiROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 37*d14abf15SRobert MustacchiSRCDIR = $(UTSBASE)/common/io/bnxe 38*d14abf15SRobert MustacchiCONF_SRCDIR = $(SRCDIR) 39*d14abf15SRobert Mustacchi 40*d14abf15SRobert Mustacchi# 41*d14abf15SRobert Mustacchi# Include common rules. 42*d14abf15SRobert Mustacchi# 43*d14abf15SRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.intel 44*d14abf15SRobert Mustacchi 45*d14abf15SRobert Mustacchi# 46*d14abf15SRobert Mustacchi# Define targets 47*d14abf15SRobert Mustacchi# 48*d14abf15SRobert MustacchiALL_TARGET = $(BINARY) $(CONFMOD) 49*d14abf15SRobert MustacchiLINT_TARGET = $(MODULE).lint 50*d14abf15SRobert MustacchiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 51*d14abf15SRobert Mustacchi 52*d14abf15SRobert MustacchiC99MODE= -xc99=%all 53*d14abf15SRobert MustacchiC99LMODE= -Xc99=%all 54*d14abf15SRobert Mustacchi 55*d14abf15SRobert Mustacchi# 56*d14abf15SRobert Mustacchi# Driver-specific flags 57*d14abf15SRobert Mustacchi# XXX inline bits were originally set to inline 58*d14abf15SRobert Mustacchi# 59*d14abf15SRobert MustacchiCPPFLAGS += -DLM_RXPKT_NON_CONTIGUOUS \ 60*d14abf15SRobert Mustacchi -DELINK_ENHANCEMENTS \ 61*d14abf15SRobert Mustacchi -DELINK_57711E_SUPPORT \ 62*d14abf15SRobert Mustacchi -DELINK_DEBUG \ 63*d14abf15SRobert Mustacchi -D__inline= \ 64*d14abf15SRobert Mustacchi -D_inline= \ 65*d14abf15SRobert Mustacchi -D__BASENAME__=\"bnxe\" \ 66*d14abf15SRobert Mustacchi -D__SunOS \ 67*d14abf15SRobert Mustacchi -D__S11 \ 68*d14abf15SRobert Mustacchi -DILLUMOS \ 69*d14abf15SRobert Mustacchi -DLITTLE_ENDIAN \ 70*d14abf15SRobert Mustacchi -DLITTLE_ENDIAN_HOST \ 71*d14abf15SRobert Mustacchi -D__LITTLE_ENDIAN \ 72*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/include \ 73*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/drivers/common/ecore \ 74*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/drivers/common/include \ 75*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/drivers/common/include/l4 \ 76*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/drivers/common/include/l5 \ 77*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/drivers/common/lm/device \ 78*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/drivers/common/lm/fw \ 79*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/drivers/common/lm/include \ 80*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/drivers/common/lm/l4 \ 81*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/drivers/common/lm/l4/include \ 82*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/drivers/common/lm/l5 \ 83*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/drivers/common/lm/l5/include \ 84*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/hsi/hw/include \ 85*d14abf15SRobert Mustacchi -I$(SRCDIR)/577xx/hsi/mcp \ 86*d14abf15SRobert Mustacchi -I$(SRCDIR) 87*d14abf15SRobert Mustacchi 88*d14abf15SRobert MustacchiLDFLAGS += -dy -r -Ndrv/ip -Nmisc/mac 89*d14abf15SRobert Mustacchi#CERRWARN += -_gcc=-Wno-old-style-declaration 90*d14abf15SRobert MustacchiCERRWARN += -_gcc=-Wno-switch 91*d14abf15SRobert MustacchiCERRWARN += -_gcc=-Wno-uninitialized 92*d14abf15SRobert MustacchiCERRWARN += -_gcc=-Wno-parentheses 93*d14abf15SRobert MustacchiCERRWARN += -_gcc=-Wno-unused-function 94*d14abf15SRobert MustacchiCERRWARN += -_gcc=-Wno-unused-value 95*d14abf15SRobert MustacchiCERRWARN += -_gcc=-Wno-unused-variable 96*d14abf15SRobert MustacchiCERRWARN += -_cc=-erroff=E_STATEMENT_NOT_REACHED 97*d14abf15SRobert MustacchiCERRWARN += -_cc=-erroff=E_ARGUEMENT_MISMATCH 98*d14abf15SRobert MustacchiCERRWARN += -_cc=-erroff=E_INTEGER_OVERFLOW_DETECTED 99*d14abf15SRobert MustacchiCERRWARN += -_cc=-erroff=E_CONST_PROMOTED_UNSIGNED_LL 100*d14abf15SRobert MustacchiCERRWARN += -_cc=-erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX 101*d14abf15SRobert Mustacchi 102*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2 103*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2 104*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_STATIC_UNUSED 105*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_FUNC_SET_NOT_USED 106*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 107*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_CONSTANT_CONDITION 108*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_NOP_ELSE_STMT 109*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_NOP_IF_STMT 110*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_FUNC_ARG_UNUSED 111*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_FUNC_VAR_UNUSED 112*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_EXPR_NULL_EFFECT 113*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_STMT_NOT_REACHED 114*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 115*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 116*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_CASE_FALLTHRU 117*d14abf15SRobert MustacchiLINTTAGS += -erroff=E_CONST_EXPR 118*d14abf15SRobert Mustacchi 119*d14abf15SRobert Mustacchi# 120*d14abf15SRobert Mustacchi# Default build targets. 121*d14abf15SRobert Mustacchi# 122*d14abf15SRobert Mustacchi.KEEP_STATE: 123*d14abf15SRobert Mustacchi 124*d14abf15SRobert Mustacchidef: $(DEF_DEPS) 125*d14abf15SRobert Mustacchi 126*d14abf15SRobert Mustacchiall: $(ALL_DEPS) 127*d14abf15SRobert Mustacchi 128*d14abf15SRobert Mustacchiclean: $(CLEAN_DEPS) 129*d14abf15SRobert Mustacchi 130*d14abf15SRobert Mustacchiclobber: $(CLOBBER_DEPS) 131*d14abf15SRobert Mustacchi 132*d14abf15SRobert Mustacchilint: $(LINT_DEPS) 133*d14abf15SRobert Mustacchi 134*d14abf15SRobert Mustacchimodlintlib: $(MODLINTLIB_DEPS) 135*d14abf15SRobert Mustacchi 136*d14abf15SRobert Mustacchiclean.lint: $(CLEAN_LINT_DEPS) 137*d14abf15SRobert Mustacchi 138*d14abf15SRobert Mustacchiinstall: $(INSTALL_DEPS) 139*d14abf15SRobert Mustacchi 140*d14abf15SRobert Mustacchi# 141*d14abf15SRobert Mustacchi# Include common targets. 142*d14abf15SRobert Mustacchi# 143*d14abf15SRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.targ 144