# # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # cmd/fwflash/plugins # include $(SRC)/lib/Makefile.lib # Hammerhead: hermon/tavor IB vendor plugins removed — IB drivers not in base OS # HERMON-MELLANOX_LIB= hermon-MELLANOX.so # TAVOR-MELLANOX_LIB= tavor-MELLANOX.so SD-GENERIC_LIB= sd-GENERIC.so PLUGINS= $(SD-GENERIC_LIB) OBJECTS= $(PLUGINS:%.so=%.o) DYNLIB= $(PLUGINS:%=%) POFILES= $(PLUGINS:%.so=%.po) POFILE= fwflash_verify_msg.po SRCDIR= ../vendor include $(SRC)/cmd/fwflash/Makefile.com CLEANFILES= $(PLUGINS) $(POFILE) $(POFILES) LIBS= $(DYNLIB) CFLAGS += $(C_PICFLAGS) ROOTLIBDIR= $(ROOTUSRLIBFWFLASHVRF) # Hammerhead: ROOTLIBS is empty when BUILD32 is disabled; redefine for 64-bit only ROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%) MAPFILES= ../vendor/mapfile-vers LDLIBS += -lc FILEMODE = 0755 $(SD-GENERIC_LIB): PICS= pics/$(SD-GENERIC_LIB:%.so=%.o) $(SD-GENERIC_LIB): SONAME = $(SD-GENERIC_LIB) $(SD-GENERIC_LIB): LDLIBS += -L$(ROOT)/usr/lib/scsi -lscsi $(SD-GENERIC_LIB): DYNFLAGS += -R/usr/lib/scsi # Hammerhead: fwflash verify plugins get verifier/logmsg symbols from the # fwflash daemon at load time via dlopen. Suppress -zdefs for GNU ld. ZDEFS = # Size assertions are non-constant and not useful here ZGUIDANCE=-Wl,-zguidance=noasserts .KEEP_STATE: all: $(LIBS) install: all $(ROOTLIBS) _msg: $(POFILE) include $(SRC)/lib/Makefile.targ