xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/boston/frudr/Makefile (revision 241c90a06e8d1708235651863df515a2d522a03a)
106e46062Sjbeloro#
206e46062Sjbeloro# CDDL HEADER START
306e46062Sjbeloro#
406e46062Sjbeloro# The contents of this file are subject to the terms of the
506e46062Sjbeloro# Common Development and Distribution License (the "License").
606e46062Sjbeloro# You may not use this file except in compliance with the License.
706e46062Sjbeloro#
806e46062Sjbeloro# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
906e46062Sjbeloro# or http://www.opensolaris.org/os/licensing.
1006e46062Sjbeloro# See the License for the specific language governing permissions
1106e46062Sjbeloro# and limitations under the License.
1206e46062Sjbeloro#
1306e46062Sjbeloro# When distributing Covered Code, include this CDDL HEADER in each
1406e46062Sjbeloro# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1506e46062Sjbeloro# If applicable, add the following below this CDDL HEADER, with the
1606e46062Sjbeloro# fields enclosed by brackets "[]" replaced with your own identifying
1706e46062Sjbeloro# information: Portions Copyright [yyyy] [name of copyright owner]
1806e46062Sjbeloro#
1906e46062Sjbeloro# CDDL HEADER END
2006e46062Sjbeloro#
2106e46062Sjbeloro
2206e46062Sjbeloro#
23*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2406e46062Sjbeloro# Use is subject to license terms.
2506e46062Sjbeloro#
2606e46062Sjbeloro# cmd/picl/plugins/sun4u/boston/frudr/Makefile
2706e46062Sjbeloro#
2806e46062Sjbeloroinclude	$(SRC)/Makefile.psm
2906e46062Sjbeloro
3006e46062Sjbeloro# include library definitions
3106e46062Sjbeloroinclude $(SRC)/lib/Makefile.lib
3206e46062Sjbeloro
3306e46062SjbeloroROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-V445
3406e46062SjbeloroFRUDR_LINKTO_PLATFORM = SUNW,Sun-Fire-V240
3506e46062Sjbeloro
3606e46062Sjbeloroinclude	$(SRC)/cmd/picl/plugins/Makefile.com
3706e46062Sjbeloro
3806e46062SjbeloroROOTLIBDIR	= $(ROOT_PLAT_PLUGINDIR)
3906e46062Sjbeloro
40035c74aaSvenkiCONFS		= fru_PS0.conf fru_PS1.conf fru_PS2.conf fru_PS3.conf
4106e46062SjbeloroCONFS		+= fru_HDD0.conf fru_HDD1.conf fru_HDD2.conf
4206e46062SjbeloroCONFS		+= fru_HDD3.conf fru_HDD4.conf fru_HDD5.conf
4306e46062SjbeloroCONFS		+= fru_HDD6.conf fru_HDD7.conf
4406e46062SjbeloroCONFS		+= fru_SC.conf
4506e46062SjbeloroCONFS		+= fru_usb-a-1.conf fru_usb-a-2.conf
4606e46062SjbeloroCONFS		+= fru_usb-a-3.conf fru_usb-a-4.conf
478326d453SvenkiCONFS		+= fru_FT0.conf fru_FT1.conf fru_FT2.conf
488326d453SvenkiCONFS		+= fru_FT3.conf fru_FT4.conf fru_FT5.conf
4906e46062SjbeloroROOTCONF=	$(CONFS:%=$(ROOTLIBDIR)/%)
5006e46062Sjbeloro$(ROOTCONF)	:= FILEMODE = 0644
5106e46062SjbeloroMAININFO=	$(CONFS:%.conf=%.info)
52035c74aaSvenkiOTHERINFOS	= fru_PS0_data.info fru_PS1_data.info fru_PS2_data.info fru_PS3_data.info
5306e46062SjbeloroOTHERINFOS	+= fru_HDD0_data.info fru_HDD1_data.info
5406e46062SjbeloroOTHERINFOS	+= fru_HDD2_data.info fru_HDD3_data.info
5506e46062SjbeloroOTHERINFOS	+= fru_HDD3_data.info fru_HDD4_data.info
5606e46062SjbeloroOTHERINFOS	+= fru_HDD6_data.info fru_HDD7_data.info
5706e46062SjbeloroOTHERINFOS	+= fru_SC_data.info SB-tables.info
5806e46062SjbeloroOTHERINFOS	+= fru_usb-a-1_data.info fru_usb-a-2_data.info
5906e46062SjbeloroOTHERINFOS	+= fru_usb-a-3_data.info fru_usb-a-4_data.info
608326d453SvenkiOTHERINFOS	+= fru_FT0_data.info fru_FT1_data.info fru_FT2_data.info
618326d453SvenkiOTHERINFOS	+= fru_FT3_data.info fru_FT4_data.info fru_FT5_data.info
6206e46062Sjbeloro
6306e46062Sjbeloro.KEEP_STATE:
6406e46062Sjbeloro
6506e46062SjbeloroSUBDIRS =
6606e46062Sjbeloro
6706e46062Sjbeloroall :=		TARGET= all
6806e46062Sjbeloroinstall :=	TARGET= install
6906e46062Sjbeloroclean :=	TARGET= clean
7006e46062Sjbeloroclobber :=	TARGET= clobber
7106e46062Sjbeloro
7206e46062Sjbeloroall: $(LIBS) $(LIBLINKS) $(CONFS)
7306e46062Sjbeloro
7406e46062Sjbeloroinstall:	$(ROOTLIBDIR) $(ROOTCONF) $(FRUDR_LINK)
7506e46062Sjbeloro	$(MAKE) $(FRUDR_LINK)
7606e46062Sjbeloro
7706e46062Sjbeloro$(CONFS): $(MAININFO) $(OTHERINFOS)
7806e46062Sjbeloro	@$(RM) -f $@
79035c74aaSvenki	@echo "# Copyright 2006 Sun Microsystems, Inc.  All rights reserved." \
8006e46062Sjbeloro	> $@
8106e46062Sjbeloro	@echo "# Use is subject to license terms." >> $@
8206e46062Sjbeloro	@echo "# This is a generated file. #ident lines identify sources" >> $@
8306e46062Sjbeloro	$(CPP) -P $(@:%.conf=%.info) | \
8406e46062Sjbeloro	$(SED) -e '/^[  ]*$$/d' >> $@
8506e46062Sjbeloro	@$(CHMOD) 644 $@
8606e46062Sjbeloro
8706e46062Sjbeloro# include library targets
8806e46062Sjbeloroinclude $(SRC)/lib/Makefile.targ
8906e46062Sjbeloroinclude	$(SRC)/cmd/picl/plugins/Makefile.targ
9006e46062Sjbeloro
9106e46062Sjbelorolint:
9206e46062Sjbeloro
9306e46062Sjbeloro$(SUBDIRS): FRC
9406e46062Sjbeloro	@cd $@; pwd; $(MAKE) $(TARGET)
9506e46062Sjbeloro
9606e46062SjbeloroFRC:
9706e46062Sjbeloro
9806e46062SjbeloroFRUDR_LINK=`cd $(ROOT_PLATFORM)/lib/picl/plugins/; \
9906e46062Sjbelororm -f libpiclfrudr.so.1; \
10006e46062Sjbelororm -f libpiclfrudr.so; \
10106e46062Sjbeloroln -s ../../../../$(FRUDR_LINKTO_PLATFORM)/lib/picl/plugins/libpiclfrudr.so.1   libpiclfrudr.so.1; \
10206e46062Sjbeloroln -s ../../../../$(FRUDR_LINKTO_PLATFORM)/lib/picl/plugins/libpiclfrudr.so     libpiclfrudr.so;`
103