Makefile.hsfs revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# CDDL HEADER START
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# The contents of this file are subject to the terms of the
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Common Development and Distribution License (the "License").
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# You may not use this file except in compliance with the License.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# or http://www.opensolaris.org/os/licensing.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# See the License for the specific language governing permissions
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# and limitations under the License.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# When distributing Covered Code, include this CDDL HEADER in each
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If applicable, add the following below this CDDL HEADER, with the
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# fields enclosed by brackets "[]" replaced with your own identifying
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# information: Portions Copyright [yyyy] [name of copyright owner]
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# CDDL HEADER END
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Use is subject to license terms.
6f269e977ae7318d374676a38d516ed59c43135eMark J. Nelson#
1f2ca518aeecee8616fccc0c46a339773faea7d5Dan McDonald# psm/stand/bootblks/hsfs/Makefile.hsfs
7b07063d906859b2be1e88791f801b3c96e432f6Igor Kozhukhov#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazainclude $(BASEDIR)/Makefile.com
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Define FS dependent targets
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaHSFS_DIR = $(BASEDIR)/hsfs/common
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaFS_FCODE = boot-hsfs.fcode
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaFS_BB = hsfs.bb
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaHSFSBOOT_FTH = $(HSFS_DIR)/boot-hsfs.fth
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaHSFS_FTH = $(HSFS_DIR)/hsfs.fth
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ae39239e04452933e89d03a1fb502e3e2836a332Mark J. Nelson# This program is used to install the boot block
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaINSTALLBOOT = installboot
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Where and how stuff gets installed
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaROOT_PSM_BOOTBLOCK = $(ROOT_PSM_LIB_HSFS_DIR)/$(PROG)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaUSR_PSM_BOOTBLOCK = $(USR_PSM_LIB_HSFS_DIR)/$(PROG)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaBOOTBLK_LINK = $(BOOTBLK_LINK_PREFIX)/hsfs/$(PROG)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaUSR = $(ROOT)/usr
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaUSR_SBIN = $(USR)/sbin
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaUSR_SBIN_INSTALLBOOT = $(USR_SBIN)/$(INSTALLBOOT)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Overrides for installing installboot.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaINS.file.555 = $(RM) $@; $(INS) -s -m 555 -f $(@D) $<
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# dependencies
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza%.fcode: $(HSFS_DIR)/%.fth
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(TOKENIZE) $<
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza$(FS_FCODE): $(UTIL_FTH) $(HSFS_FTH) $(BOOT_FTH)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(TOKENIZE) $(HSFSBOOT_FTH)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
5084e753b79a753c8b532c06eb3ad1d025e8e472Mark J. Nelson#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# install rules
5084e753b79a753c8b532c06eb3ad1d025e8e472Mark J. Nelson#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza$(USR_SBIN)/%: % $(USR_SBIN)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(INS.file.555)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza