Makefile revision 6852
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# CDDL HEADER START
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# The contents of this file are subject to the terms of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Common Development and Distribution License (the "License").
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# You may not use this file except in compliance with the License.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# or http://www.opensolaris.org/os/licensing.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# See the License for the specific language governing permissions
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# and limitations under the License.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# If applicable, add the following below this CDDL HEADER, with the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# CDDL HEADER END
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude ../../../make-rules/shared-macros.mk
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_NAME= nova
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_CODENAME= mitaka
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_VERSION= 13.1.0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_BE_VERSION= 2016.1
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_ARCHIVE_HASH= \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync sha256:2c44b0f015f48348d768abff0e0fc90c6f8faf46743cae94736d77704f249368
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_ARCHIVE_URL= \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync https://tarballs.openstack.org/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_PROJECT_URL= http://www.openstack.org/
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_BUGDB= service/nova
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncTPNO= 30363
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncPKG_VARS += COMPONENT_BE_VERSION
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude $(WS_MAKE_RULES)/prep.mk
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude $(WS_MAKE_RULES)/setup.py.mk
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude $(WS_MAKE_RULES)/ips.mk
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncASLR_MODE = $(ASLR_NOT_APPLICABLE)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Since this is an app, and doesn't provide any public library interfaces, we
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# only need to deliver one version. The manifest is parameterized, though.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncPYTHON_VERSIONS= 2.7
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncPKG_MACROS += PYVER=$(PYTHON_VERSIONS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncPKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Replace the standard nova/virt/libvirt/__init__.py with an empty file.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# All of the nova SMF manifests depend on nova-upgrade so copy it into
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# the proto directory for pkgdepend(1) to find.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCOMPONENT_POST_INSTALL_ACTION += \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync ($(CP) /dev/null $(PROTO_DIR)$(PYTHON_LIB)/nova/virt/libvirt/__init__.py; \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(CP) \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/nova-api-ec2.xml \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/nova-api-metadata.xml \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/nova-api-osapi-compute.xml \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/nova-cert.xml \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/nova-compute.xml \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/nova-conductor.xml \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/nova-consoleauth.xml \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/nova-novncproxy.xml \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/nova-objectstore.xml \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/nova-scheduler.xml \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/nova-upgrade.xml \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/zone-vnc-console.xml \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
849851bf2ca145028b5729e48076e5723140affdvboxsync $(CP) \
849851bf2ca145028b5729e48076e5723140affdvboxsync files/network/solaris_net.py \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PROTO_DIR)$(PYTHON_LIB)/nova/network; \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(MKDIR) $(PROTO_DIR)$(PYTHON_LIB)/nova/virt/solariszones; \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(CP) \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/solariszones/__init__.py \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/solariszones/driver.py \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync files/solariszones/sysconfig.py \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PROTO_DIR)$(PYTHON_LIB)/nova/virt/solariszones); \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# common targets
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncbuild: $(BUILD_NO_ARCH)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinstall: $(INSTALL_NO_ARCH)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynctest: $(NO_TESTS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncsystem-test: $(NO_TESTS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += cloud/openstack/openstack-common
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += install/archive
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += library/python/eventlet-27
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += library/python/iniparse-27
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += library/python/oslo.config-27
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += library/python/oslo.log-27
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += library/python/oslo.messaging-27
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += library/python/oslo.serialization-27
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += library/python/sqlalchemy-27
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += library/python/sqlalchemy-migrate-27
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += library/python/webob-27
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += system/core-os
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += system/file-system/zfs
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += system/library/storage/suri
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += system/storage/fc-utilities
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += system/storage/iscsi/iscsi-initiator
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += terminal/xterm
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += web/novnc
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += x11/diagnostic/x11-info-clients
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += x11/modeline-utilities
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += x11/server/xvnc
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncREQUIRED_PACKAGES += x11/x11-server-utilities
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync