usr/src/lib/install_boot/Makefile
author Niall Power <niall.power@oracle.com>
Thu, 28 Jul 2011 12:41:10 +0800
changeset 1338 092bf136b771
parent 1111 0c6c862af34f
permissions -rw-r--r--
7063508 Solaris 11 installers wipes out existing boot-device entries in eeprom
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1111
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
     1
#
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
     2
# CDDL HEADER START
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
     3
#
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
     7
#
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    11
# and limitations under the License.
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    12
#
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    18
#
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    19
# CDDL HEADER END
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    20
#
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    21
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    22
#
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    23
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    24
#
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    25
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    26
PYMODS		= __init__.py \
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    27
		boot.py \
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    28
		boot_spec.py
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    29
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    30
PYCMODS		= $(PYMODS:%.py=%.pyc)
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    31
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    32
ROOTPYMODS	= $(PYMODS:%=$(ROOTPYTHONVENDORSOLINSTALLBOOT)/%)
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    33
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    34
ROOTPYCMODS	= $(PYCMODS:%=$(ROOTPYTHONVENDORSOLINSTALLBOOT)/%)
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    35
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    36
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    37
CLOBBERFILES	= $(PYCMODS) 
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    38
CLEANFILES	= $(CLOBBERFILES)
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    39
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    40
include ../Makefile.lib
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    41
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    42
HDRS		= $(EXPHDRS) $(PRIVHDRS)
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    43
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    44
python:
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    45
	$(PYTHON) -m compileall -l $(@D)
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    46
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    47
all:		$(HDRS) python
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    48
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    49
install_h:
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    50
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    51
install:	all .WAIT \
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    52
		$(ROOTPYTHONVENDOR) \
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    53
		$(ROOTPYTHONVENDORSOLINSTALL) \
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    54
		$(ROOTPYTHONVENDORSOLINSTALLBOOT) \
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    55
		$(ROOTPYMODS) $(ROOTPYCMODS)
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    56
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    57
lint:		lint_SRCS
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    58
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    59
FRC:
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    60
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents:
diff changeset
    61
include ../Makefile.targ