Makefile revision 5403
157N/A#
157N/A# CDDL HEADER START
157N/A#
157N/A# The contents of this file are subject to the terms of the
157N/A# Common Development and Distribution License (the "License").
157N/A# You may not use this file except in compliance with the License.
157N/A#
157N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
157N/A# or http://www.opensolaris.org/os/licensing.
157N/A# See the License for the specific language governing permissions
157N/A# and limitations under the License.
157N/A#
157N/A# When distributing Covered Code, include this CDDL HEADER in each
157N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157N/A# If applicable, add the following below this CDDL HEADER, with the
157N/A# fields enclosed by brackets "[]" replaced with your own identifying
157N/A# information: Portions Copyright [yyyy] [name of copyright owner]
157N/A#
157N/A# CDDL HEADER END
157N/A#
157N/A
157N/A#
157N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
157N/A#
157N/A
157N/Ainclude ../../../make-rules/shared-macros.mk
157N/A
157N/ACOMPONENT_NAME= ironic
157N/ACOMPONENT_CODENAME= kilo
157N/ACOMPONENT_VERSION= 2015.1.2
157N/ACOMPONENT_BE_VERSION= 2015.1
157N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
157N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
157N/ACOMPONENT_ARCHIVE_HASH= \
157N/A sha256:fd85246f7c9b0976a27b863de328f1240d43d4633511cd832e8d6904f6f4b06c
157N/ACOMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
157N/ACOMPONENT_PROJECT_URL= http://www.openstack.org/
157N/ACOMPONENT_BUGDB= service/ironic
157N/AIPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION)
157N/A
157N/ATPNO= 25789
157N/A
157N/Ainclude $(WS_MAKE_RULES)/prep.mk
157N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
166N/Ainclude $(WS_MAKE_RULES)/ips.mk
157N/A
157N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
157N/A
157N/A# Since this is an app, and doesn't provide any public library interfaces, we
157N/A# only need to deliver one version. The manifest is parameterized, though.
157N/APYTHON_VERSIONS= 2.7
157N/A
163N/APKG_MACROS += COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION)
157N/APKG_MACROS += PYVER=$(PYTHON_VERSIONS)
157N/APKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
157N/A
157N/A#
157N/A# ironic-api and ironic-conductor depend on ironic-db and ironic-upgrade so
157N/A# copy all of the service manifests into the proto directory for
157N/A# pkgdepend(1) to find.
157N/A#
157N/ACOMPONENT_POST_INSTALL_ACTION += \
157N/A ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
157N/A $(CP) \
157N/A files/ironic-api.xml \
157N/A files/ironic-conductor.xml \
157N/A files/ironic-db.xml \
157N/A files/ironic-upgrade.xml \
157N/A $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \
157N/A $(MKDIR) $(PROTO_DIR)$(PYTHON_LIB)/ironic/drivers/modules; \
157N/A $(CP) \
157N/A files/drivers/solaris.py \
157N/A $(PROTO_DIR)$(PYTHON_LIB)/ironic/drivers/; \
157N/A $(CP) \
157N/A files/drivers/modules/solaris_ipmitool.py \
157N/A $(PROTO_DIR)$(PYTHON_LIB)/ironic/drivers/modules/; \
157N/A $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES))
163N/A
157N/A# common targets
157N/Abuild: $(BUILD_NO_ARCH)
157N/A
157N/Ainstall: $(INSTALL_NO_ARCH)
157N/A
157N/A#
157N/A# Tests require:
157N/A# hacking, coverage>=3.6, disvover, fixtures, oslo.test, psycopg2,
157N/A# python-ironicclient, python-subunit, testrepository, testtools,
157N/A# sphinx, sphinxcontrib, oslo.sphinx
157N/A# Which haven't been integrated yet
157N/A#
test: $(NO_TESTS)
REQUIRED_PACKAGES += cloud/openstack/openstack-common
REQUIRED_PACKAGES += library/python/sqlalchemy-27
REQUIRED_PACKAGES += install/installadm
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/file-system/uafs
REQUIRED_PACKAGES += system/file-system/uvfs
REQUIRED_PACKAGES += system/management/ipmitool
REQUIRED_PACKAGES += web/curl