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