diff options
Diffstat (limited to 'usr/src/cmd/fwflash/plugins')
| -rw-r--r-- | usr/src/cmd/fwflash/plugins/Makefile | 22 | ||||
| -rw-r--r-- | usr/src/cmd/fwflash/plugins/Makefile.targ | 75 | ||||
| -rw-r--r-- | usr/src/cmd/fwflash/plugins/i386/Makefile | 72 | ||||
| -rw-r--r-- | usr/src/cmd/fwflash/plugins/sparc/Makefile | 72 | ||||
| -rw-r--r-- | usr/src/cmd/fwflash/plugins/transport/Makefile | 21 | ||||
| -rw-r--r-- | usr/src/cmd/fwflash/plugins/transport/Makefile.targ | 91 | ||||
| -rw-r--r-- | usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers | 57 | ||||
| -rw-r--r-- | usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-hermon | 46 | ||||
| -rw-r--r-- | usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-plus | 44 | ||||
| -rw-r--r-- | usr/src/cmd/fwflash/plugins/transport/i386/Makefile | 74 | ||||
| -rw-r--r-- | usr/src/cmd/fwflash/plugins/transport/sparc/Makefile | 74 | ||||
| -rw-r--r-- | usr/src/cmd/fwflash/plugins/vendor/mapfile-vers | 54 |
12 files changed, 379 insertions, 323 deletions
diff --git a/usr/src/cmd/fwflash/plugins/Makefile b/usr/src/cmd/fwflash/plugins/Makefile index 3a28e5a923..01ffa9f559 100644 --- a/usr/src/cmd/fwflash/plugins/Makefile +++ b/usr/src/cmd/fwflash/plugins/Makefile @@ -24,15 +24,12 @@ # # cmd/fwflash/plugins # +include $(SRC)/Makefile.master -include $(SRC)/cmd/Makefile.cmd +COMMON_SUBDIRS= $(MACH) +$(CLOSED_BUILD)COMMON_SUBDIRS += $(CLOSED)/cmd/fwflash/plugins -COMMON_SUBDIRS= $(MACH) transport -CLOSED_SUBDIRS= $(CLOSED)/cmd/fwflash/plugins - -SUBDIRS= $(COMMON_SUBDIRS) $(CLOSED_SUBDIRS) - -MSGSUBDIRS= $(COMMON_SUBDIRS) $(CLOSED_SUBDIRS) +SUBDIRS= $(COMMON_SUBDIRS) all := TARGET= all install := TARGET= install @@ -42,19 +39,10 @@ lint := TARGET= lint _msg := TARGET= _msg msg := TARGET= msg -include $(SRC)/cmd/fwflash/Makefile.com - .KEEP_STATE: -all: $(SUBDIRS) -lint: $(SUBDIRS) -install: $(SUBDIRS) -clean: $(SUBDIRS) -clobber: $(SUBDIRS) - - -msg _msg: $(MSGSUBDIRS) +all clean clobber install lint msg _msg: $(SUBDIRS) $(SUBDIRS): FRC diff --git a/usr/src/cmd/fwflash/plugins/Makefile.targ b/usr/src/cmd/fwflash/plugins/Makefile.targ new file mode 100644 index 0000000000..8650ee545b --- /dev/null +++ b/usr/src/cmd/fwflash/plugins/Makefile.targ @@ -0,0 +1,75 @@ +# +# 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 + +HERMON-MELLANOX_LIB= hermon-MELLANOX.so +TAVOR-MELLANOX_LIB= tavor-MELLANOX.so +SD-GENERIC_LIB= sd-GENERIC.so + +PLUGINS= $(HERMON-MELLANOX_LIB) $(TAVOR-MELLANOX_LIB) $(SD-GENERIC_LIB) + +OBJECTS= $(PLUGINS:%.so=%.o) +DYNLIB= $(PLUGINS:%=%) +POFILES= $(PLUGINS:%.so=%.po) +LINTFILE= $(PLUGINS:%.so=%.ln) + +POFILE= fwflash_verify_msg.po +SRCDIR= ../vendor + +include $(SRC)/cmd/fwflash/Makefile.com + +CLEANFILES= $(PLUGINS) $(POFILE) $(POFILES) $(LINTFILE) + +LIBS= $(DYNLIB) +CFLAGS += $(C_PICFLAGS) +ROOTLIBDIR= $(ROOTUSRLIBFWFLASHVRF) +MAPFILES= ../vendor/mapfile-vers +LDLIBS += -lc +FILEMODE = 0755 + +$(HERMON-MELLANOX_LIB):= PICS= pics/$(HERMON-MELLANOX_LIB:%.so=%.o) +$(TAVOR-MELLANOX_LIB):= PICS = pics/$(TAVOR-MELLANOX_LIB:%.so=%.o) +$(SD-GENERIC_LIB):= PICS= pics/$(SD-GENERIC_LIB:%.so=%.o) + +$(HERMON-MELLANOX_LIB):= SONAME = $(HERMON-MELLANOX_LIB) +$(TAVOR-MELLANOX_LIB):= SONAME = $(TAVOR-MELLANOX_LIB) +$(SD-GENERIC_LIB):= SONAME = $(SD-GENERIC_LIB) + +$(HERMON-MELLANOX_LIB):= DYNFLAGS += -R/usr/lib/fwflash/identify +$(HERMON-MELLANOX_LIB):= LDLIBS += -L. $(ROOT)/usr/lib/fwflash/identify/hermon.so + + +.KEEP STATE: + +all: $(LIBS) + +install: all $(ROOTLIBS) + +lint: $(LINTFILE) + +_msg msg: $(POFILE) + +include $(SRC)/lib/Makefile.targ diff --git a/usr/src/cmd/fwflash/plugins/i386/Makefile b/usr/src/cmd/fwflash/plugins/i386/Makefile index d359c556e6..b32da48a17 100644 --- a/usr/src/cmd/fwflash/plugins/i386/Makefile +++ b/usr/src/cmd/fwflash/plugins/i386/Makefile @@ -24,74 +24,4 @@ # cmd/fwflash/plugins/i386 # -SRCS= tavor-MELLANOX.c hermon-MELLANOX.c sd-GENERIC.c -OBJECTS= $(SRCS:%.c=%.o) -PLUGINS= $(SRCS:%.c=%.so) -POFILES= $(SRCS:%.c=%.po) -LINTFILE= $(SRCS:%.c=%.ln) - -VERIFYPOFILE= fwflash_verify_msg.po - -CLOBBERFILES= $(PLUGINS) $(OBJECTS) $(LINTFILE) \ - $(POFILES) $(VERIFYPOFILE) -TEXT_DOMAIN= SUNW_OST_OSCMD - -all: $(PLUGINS) - - -include $(SRC)/Makefile.master -include $(SRC)/cmd/fwflash/Makefile.com - - -CFLAGS += -g -D_POSIX_PTHREAD_SEMANTICS -I$(ROOT)/usr/include -MANUFACTURING_MODE=0 -CFLAGS += -DMANUFACTURING_MODE=$(MANUFACTURING_MODE) -LDLIBS += -ldevinfo -lumem -lc -DYNFLAGS += -Bdynamic -LIBS= $(DYNLIB) - -BUILD.SO= $(LD) -o $@ $(HERMON_LDFLAGS) -G $(DYNFLAGS) - -hermon-MELLANOX.so := HERMON_LDFLAGS += -N/usr/lib/fwflash/identify/hermon.so - -%.o: ../vendor/%.c - $(COMPILE.c) $< - $(POST_PROCESS_O) - -%.so: %.o - $(BUILD.SO) $< - $(POST_PROCESS) - -%.ln: ../vendor/%.c - $(LINT.c) $(LINTFLAGS) -c $< - -%.po: ../vendor/%.c - $(RM) messages.po - $(XGETTEXT) $(XGETFLAGS) \ - `($(GREP) -l gettext $< || echo /dev/null)` - $(SED) "/^domain/d" messages.po > $@ - $(RM) messages.po - -# -# Message catalog -# - -$(VERIFYPOFILE): $(POFILES) - $(RM) $@ - cat $(POFILES) > $@ - -install: $(ROOTLIBFWFLASHVERIFY) \ - $(ROOTLIBFWFLASHVERIFY)/tavor-MELLANOX.so \ - $(ROOTLIBFWFLASHVERIFY)/hermon-MELLANOX.so \ - $(ROOTLIBFWFLASHVERIFY)/sd-GENERIC.so - -clean: - $(RM) $(OBJECTS) - -clobber: clean - $(RM) $(CLOBBERFILES) - -lint: lint_SRCS -lint_SRCS: $(LINTFILE) - -_msg msg: $(VERIFYPOFILE) +include ../Makefile.targ diff --git a/usr/src/cmd/fwflash/plugins/sparc/Makefile b/usr/src/cmd/fwflash/plugins/sparc/Makefile index fedee291ee..7381ebb77a 100644 --- a/usr/src/cmd/fwflash/plugins/sparc/Makefile +++ b/usr/src/cmd/fwflash/plugins/sparc/Makefile @@ -24,74 +24,4 @@ # cmd/fwflash/plugins/sparc # -SRCS= tavor-MELLANOX.c hermon-MELLANOX.c sd-GENERIC.c -OBJECTS= $(SRCS:%.c=%.o) -PLUGINS= $(SRCS:%.c=%.so) -POFILES= $(SRCS:%.c=%.po) -LINTFILE= $(SRCS:%.c=%.ln) - -VERIFYPOFILE= fwflash_verify_msg.po - -CLOBBERFILES= $(PLUGINS) $(OBJECTS) $(LINTFILE) \ - $(POFILES) $(VERIFYPOFILE) -TEXT_DOMAIN= SUNW_OST_OSCMD - -all: $(PLUGINS) - - -include $(SRC)/Makefile.master -include $(SRC)/cmd/fwflash/Makefile.com - - -CFLAGS += -g -D_POSIX_PTHREAD_SEMANTICS -I$(ROOT)/usr/include -MANUFACTURING_MODE=0 -CFLAGS += -DMANUFACTURING_MODE=$(MANUFACTURING_MODE) -LDLIBS += -ldevinfo -lumem -lc -DYNFLAGS += -Bdynamic -LIBS= $(DYNLIB) - -BUILD.SO= $(LD) -o $@ $(HERMON_LDFLAGS) -G $(DYNFLAGS) - -hermon-MELLANOX.so := HERMON_LDFLAGS += -N/usr/lib/fwflash/identify/hermon.so - -%.o: ../vendor/%.c - $(COMPILE.c) $< - $(POST_PROCESS_O) - -%.so: %.o - $(BUILD.SO) $< - $(POST_PROCESS) - -%.ln: ../vendor/%.c - $(LINT.c) $(LINTFLAGS) -c $< - -%.po: ../vendor/%.c - $(RM) messages.po - $(XGETTEXT) $(XGETFLAGS) \ - `($(GREP) -l gettext $< || echo /dev/null)` - $(SED) "/^domain/d" messages.po > $@ - $(RM) messages.po - -# -# Message catalog -# - -$(VERIFYPOFILE): $(POFILES) - $(RM) $@ - cat $(POFILES) > $@ - -install: $(ROOTLIBFWFLASHVERIFY) \ - $(ROOTLIBFWFLASHVERIFY)/tavor-MELLANOX.so \ - $(ROOTLIBFWFLASHVERIFY)/hermon-MELLANOX.so \ - $(ROOTLIBFWFLASHVERIFY)/sd-GENERIC.so - -clean: - $(RM) $(OBJECTS) - -clobber: clean - $(RM) $(CLOBBERFILES) - -lint: lint_SRCS -lint_SRCS: $(LINTFILE) - -_msg msg: $(VERIFYPOFILE) +include ../Makefile.targ diff --git a/usr/src/cmd/fwflash/plugins/transport/Makefile b/usr/src/cmd/fwflash/plugins/transport/Makefile index d70dedc310..c594def918 100644 --- a/usr/src/cmd/fwflash/plugins/transport/Makefile +++ b/usr/src/cmd/fwflash/plugins/transport/Makefile @@ -18,23 +18,17 @@ # # CDDL HEADER END # -# -#ident "%Z%%M% %I% %E% SMI" -# -# Copyright 2008 Sun Microsystems, Inc. All rights reserved. +# Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # cmd/fwflash/plugins/transport # - -include $(SRC)/cmd/Makefile.cmd +include $(SRC)/Makefile.master COMMON_SUBDIRS= $(MACH) SUBDIRS= $(COMMON_SUBDIRS) -MSGSUBDIRS= $(COMMON_SUBDIRS) - all := TARGET= all install := TARGET= install clean := TARGET= clean @@ -43,20 +37,11 @@ lint := TARGET= lint _msg := TARGET= _msg msg := TARGET= msg -include $(SRC)/cmd/fwflash/Makefile.com - .KEEP_STATE: -all: $(SUBDIRS) -lint: $(SUBDIRS) - -msg _msg: $(MSGSUBDIRS) - +all clean clobber install lint msg _msg: $(SUBDIRS) -install: $(SUBDIRS) -clean: $(SUBDIRS) -clobber: $(SUBDIRS) $(SUBDIRS): FRC diff --git a/usr/src/cmd/fwflash/plugins/transport/Makefile.targ b/usr/src/cmd/fwflash/plugins/transport/Makefile.targ new file mode 100644 index 0000000000..fa2b078452 --- /dev/null +++ b/usr/src/cmd/fwflash/plugins/transport/Makefile.targ @@ -0,0 +1,91 @@ +# +# 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/transport +# +include $(SRC)/lib/Makefile.lib + +SES_LIB= ses.so +TAVOR_LIB= tavor.so +HERMON_LIB= hermon.so +SD_LIB= sd.so + +PLUGINS= $(SES_LIB) $(TAVOR_LIB) $(HERMON_LIB) $(SD_LIB) + +OBJECTS= $(PLUGINS:%.so=%.o) +DYNLIB= $(PLUGINS:%=%) +POFILES= $(PLUGINS:%.so=%.po) +LINTFILE= $(PLUGINS:%.so=%.ln) + +SLINKS= sgen.so +POFILE= fwflash_transport_identify_ses.po +SRCDIR= ../common + +include $(SRC)/cmd/fwflash/Makefile.com + +CLEANFILES= $(PLUGINS) $(POFILES) $(POFILE) $(LINTFILE) $(SLINKS) + +LIBS= $(DYNLIB) +CFLAGS += $(C_PICFLAGS) +ROOTLIBDIR= $(ROOTUSRLIBFWFLASHIDF) +LDLIBS += -ldevinfo -lc +MAPFILES= ../common/mapfile-vers +FILEMODE= 0755 + +$(SES_LIB):= PICS= pics/$(SES_LIB:%.so=%.o) +$(TAVOR_LIB):= PICS= pics/$(TAVOR_LIB:%.so=%.o) +$(HERMON_LIB):= PICS= pics/$(HERMON_LIB:%.so=%.o) +$(SD_LIB):= PICS= pics/$(SD_LIB:%.so=%.o) + +$(SES_LIB):= SONAME = $(SES_LIB) +$(TAVOR_LIB):= SONAME = $(TAVOR_LIB) +$(HERMON_LIB):= SONAME = $(HERMON_LIB) +$(SD_LIB):= SONAME = $(SD_LIB) + +$(HERMON_LIB):= MAPFILES += ../common/mapfile-vers-hermon +$(SD_LIB):= MAPFILES += ../common/mapfile-vers-plus + +$(SES_LIB):= LDLIBS += -L$(ROOT)/usr/lib/scsi -lscsi -lses -lnvpair +$(SD_LIB):= LDLIBS += -L$(ROOT)/usr/lib/scsi -lscsi -lumem + +$(SES_LIB):= DYNFLAGS += -R/usr/lib/scsi +$(SD_LIB):= DYNFLAGS += -R/usr/lib/scsi + +.KEEP STATE: + +$(ROOTUSRLIBFWFLASHIDF)/$(SLINKS) : $(ROOTUSRLIBFWFLASHIDF)/$(SES_LIB) + @$(RM) $@ + $(SYMLINK) $(SES_LIB) $@ + +all: $(LIBS) + +install: all $(ROOTLIBS) \ + $(ROOTUSRLIBFWFLASHIDF)/$(SLINKS) + +lint: $(LINTFILE) + +_msg msg: $(POFILE) + +include $(SRC)/lib/Makefile.targ + + diff --git a/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers b/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers new file mode 100644 index 0000000000..4944d228e7 --- /dev/null +++ b/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers @@ -0,0 +1,57 @@ +# +# 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. +# + +# +# MAPFILE HEADER START +# +# WARNING: STOP NOW. DO NOT MODIFY THIS FILE. +# Object versioning must comply with the rules detailed in +# +# usr/src/lib/README.mapfiles +# +# You should not be making modifications here until you've read the most current +# copy of that file. If you need help, contact a gatekeeper for guidance. +# +# MAPFILE HEADER END +# + +SUNWprivate { + global: + fw_devices = PARENT; + fw_pluginlist = PARENT; + fwflash_debug = PARENT; + rootnode = PARENT; + self = PARENT; + verifier = PARENT; + logmsg = PARENT; + drivername; + fw_devinfo; + fw_identify; + fw_readfw; + fw_writefw; + local: + *; +}; + diff --git a/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-hermon b/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-hermon new file mode 100644 index 0000000000..d5415013d8 --- /dev/null +++ b/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-hermon @@ -0,0 +1,46 @@ +# +# 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. +# + +# +# MAPFILE HEADER START +# +# WARNING: STOP NOW. DO NOT MODIFY THIS FILE. +# Object versioning must comply with the rules detailed in +# +# usr/src/lib/README.mapfiles +# +# You should not be making modifications here until you've read the most current +# copy of that file. If you need help, contact a gatekeeper for guidance. +# +# MAPFILE HEADER END +# + +SUNWprivate { + global: + cnx_crc16; + cnx_is_magic_pattern_present; + cnx_parse_img_info; +}; + diff --git a/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-plus b/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-plus new file mode 100644 index 0000000000..a5018ff9af --- /dev/null +++ b/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-plus @@ -0,0 +1,44 @@ +# +# 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. +# + +# +# MAPFILE HEADER START +# +# WARNING: STOP NOW. DO NOT MODIFY THIS FILE. +# Object versioning must comply with the rules detailed in +# +# usr/src/lib/README.mapfiles +# +# You should not be making modifications here until you've read the most current +# copy of that file. If you need help, contact a gatekeeper for guidance. +# +# MAPFILE HEADER END +# + +SUNWprivate { + global: + fw_cleanup; +}; + diff --git a/usr/src/cmd/fwflash/plugins/transport/i386/Makefile b/usr/src/cmd/fwflash/plugins/transport/i386/Makefile index 25737381d7..60c1ee45cb 100644 --- a/usr/src/cmd/fwflash/plugins/transport/i386/Makefile +++ b/usr/src/cmd/fwflash/plugins/transport/i386/Makefile @@ -24,76 +24,4 @@ # cmd/fwflash/plugins/transport/i386 # -SRCS= ses.c tavor.c hermon.c sd.c - -OBJECTS= $(SRCS:%.c=%.o) -PLUGINS= $(SRCS:%.c=%.so) -POFILES= $(SRCS:%.c=%.po) -IDENTPOFILE= fwflash_transport_identify_ses.po -LINTFILE= $(SRCS:%.c=%.ln) -SLINKS= sgen.so - -CLEANFILES= $(OBJECTS) -CLOBBERFILES= $(PLUGINS) $(POFILES) $(IDENTPOFILE) $(LINTFILE) $(SLINKS) - - - -all: $(PLUGINS) -_msg msg: $(IDENTPOFILE) - - -include $(SRC)/Makefile.master -include $(SRC)/cmd/fwflash/Makefile.com - -CFLAGS += -g -D_POSIX_PTHREAD_SEMANTICS -DYNFLAGS += -Bdynamic -LDLIBS += -L$(ROOT)/usr/lib/scsi -ldevinfo -lumem -lc -lscsi -lses -LDFLAGS += -R/usr/lib/scsi - -BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(LDFLAGS) $(LDLIBS) - -$(PLUGINS) := FILEMODE = 0555 - - -$(ROOTLIBFWFLASHPLUGINS)/$(SLINKS) : $(ROOTLIBFWFLASHPLUGINS)/ses.so - @$(RM) $@ - $(SYMLINK) ses.so $@ - -install: all $(ROOTLIBFWFLASHPLUGINS) \ - $(ROOTLIBFWFLASHPLUGINS)/ses.so \ - $(ROOTLIBFWFLASHPLUGINS)/tavor.so \ - $(ROOTLIBFWFLASHPLUGINS)/hermon.so \ - $(ROOTLIBFWFLASHPLUGINS)/sd.so \ - $(ROOTLIBFWFLASHPLUGINS)/$(SLINKS) - -clobber clean: - $(RM) $(CLEANFILES) $(CLOBBERFILES) - -lint_SRCS: $(LINTFILE) -lint: lint_SRCS - -%.o: ../common/%.c - $(COMPILE.c) $< - $(POST_PROCESS_O) - -%.so: %.o - $(BUILD.SO) $< - -%.ln: ../common/%.c - $(LINT.c) $(LINTFLAGS) -c $< - - -# -# Message catalog -# -%.po: ../common/%.c - $(RM) messages.po - $(XGETTEXT) $(XGETFLAGS) \ - `($(GREP) -l gettext $< || echo /dev/null)` - $(SED) "/^domain/d" messages.po > $@ - $(RM) messages.po - -$(IDENTPOFILE): $(POFILES) - $(RM) $@ - cat $(POFILES) > $@ - +include ../Makefile.targ diff --git a/usr/src/cmd/fwflash/plugins/transport/sparc/Makefile b/usr/src/cmd/fwflash/plugins/transport/sparc/Makefile index 3e413393e4..9778a13984 100644 --- a/usr/src/cmd/fwflash/plugins/transport/sparc/Makefile +++ b/usr/src/cmd/fwflash/plugins/transport/sparc/Makefile @@ -24,76 +24,4 @@ # cmd/fwflash/plugins/transport/sparc # -SRCS= ses.c tavor.c hermon.c sd.c - -OBJECTS= $(SRCS:%.c=%.o) -PLUGINS= $(SRCS:%.c=%.so) -POFILES= $(SRCS:%.c=%.po) -IDENTPOFILE= fwflash_transport_identify_ses.po -LINTFILE= $(SRCS:%.c=%.ln) -SLINKS= sgen.so - -CLEANFILES= $(OBJECTS) -CLOBBERFILES= $(PLUGINS) $(POFILES) $(IDENTPOFILE) $(LINTFILE) $(SLINKS) - - - -all: $(PLUGINS) -_msg msg: $(IDENTPOFILE) - - -include $(SRC)/Makefile.master -include $(SRC)/cmd/fwflash/Makefile.com - -CFLAGS += -g -D_POSIX_PTHREAD_SEMANTICS -DYNFLAGS += -Bdynamic -LDLIBS += -L$(ROOT)/usr/lib/scsi -ldevinfo -lumem -lc -lscsi -lses -LDFLAGS += -R/usr/lib/scsi - -BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(LDFLAGS) $(LDLIBS) - -$(PLUGINS) := FILEMODE = 0555 - - -$(ROOTLIBFWFLASHPLUGINS)/$(SLINKS) : $(ROOTLIBFWFLASHPLUGINS)/ses.so - @$(RM) $@ - $(SYMLINK) ses.so $@ - -install: all $(ROOTLIBFWFLASHPLUGINS) \ - $(ROOTLIBFWFLASHPLUGINS)/ses.so \ - $(ROOTLIBFWFLASHPLUGINS)/tavor.so \ - $(ROOTLIBFWFLASHPLUGINS)/hermon.so \ - $(ROOTLIBFWFLASHPLUGINS)/sd.so \ - $(ROOTLIBFWFLASHPLUGINS)/$(SLINKS) - -clobber clean: - $(RM) $(CLEANFILES) $(CLOBBERFILES) - -lint_SRCS: $(LINTFILE) -lint: lint_SRCS - -%.o: ../common/%.c - $(COMPILE.c) $< - $(POST_PROCESS_O) - -%.so: %.o - $(BUILD.SO) $< - -%.ln: ../common/%.c - $(LINT.c) $(LINTFLAGS) -c $< - - -# -# Message catalog -# -%.po: ../common/%.c - $(RM) messages.po - $(XGETTEXT) $(XGETFLAGS) \ - `($(GREP) -l gettext $< || echo /dev/null)` - $(SED) "/^domain/d" messages.po > $@ - $(RM) messages.po - -$(IDENTPOFILE): $(POFILES) - $(RM) $@ - cat $(POFILES) > $@ - +include ../Makefile.targ diff --git a/usr/src/cmd/fwflash/plugins/vendor/mapfile-vers b/usr/src/cmd/fwflash/plugins/vendor/mapfile-vers new file mode 100644 index 0000000000..0592197c9c --- /dev/null +++ b/usr/src/cmd/fwflash/plugins/vendor/mapfile-vers @@ -0,0 +1,54 @@ +# +# 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. +# + +# +# MAPFILE HEADER START +# +# WARNING: STOP NOW. DO NOT MODIFY THIS FILE. +# Object versioning must comply with the rules detailed in +# +# usr/src/lib/README.mapfiles +# +# You should not be making modifications here until you've read the most current +# copy of that file. If you need help, contact a gatekeeper for guidance. +# +# MAPFILE HEADER END +# + +SUNWprivate { + global: + fw_devices = PARENT; + fw_pluginlist = PARENT; + fwflash_debug = PARENT; + rootnode = PARENT; + self = PARENT; + verifier = PARENT; + logmsg = PARENT; + vendorvrfy; + vendor; + local: + *; +}; + |
