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