Makefile revision 6847
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson#
7d32c065c7bb56f281651ae3dd2888f32ce4f1d9Bob Halley# CDDL HEADER START
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# The contents of this file are subject to the terms of the
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# Common Development and Distribution License (the "License").
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# You may not use this file except in compliance with the License.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15a44745412679c30a6d022733925af70a38b715David Lawrence# or http://www.opensolaris.org/os/licensing.
15a44745412679c30a6d022733925af70a38b715David Lawrence# See the License for the specific language governing permissions
15a44745412679c30a6d022733925af70a38b715David Lawrence# and limitations under the License.
15a44745412679c30a6d022733925af70a38b715David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence# When distributing Covered Code, include this CDDL HEADER in each
15a44745412679c30a6d022733925af70a38b715David Lawrence# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15a44745412679c30a6d022733925af70a38b715David Lawrence# If applicable, add the following below this CDDL HEADER, with the
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
593cb00bd17e5e2ab0dcb7c635a9a81082dc5d0eAndreas Gustafsson#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# CDDL HEADER END
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson#
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
593cb00bd17e5e2ab0dcb7c635a9a81082dc5d0eAndreas Gustafsson#
593cb00bd17e5e2ab0dcb7c635a9a81082dc5d0eAndreas Gustafsson# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
3e14b69d196a3ebeecc4662c426344dcfd7db678Andreas Gustafsson#
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrenceinclude ../../../make-rules/shared-macros.mk
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence
364a82f7c25b62967678027043425201a5e5171aBob HalleyCOMPONENT_NAME= cinder
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonCOMPONENT_CODENAME= mitaka
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid LawrenceCOMPONENT_VERSION= 8.0.0
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid LawrenceCOMPONENT_BE_VERSION= 2016.1
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
3e14b69d196a3ebeecc4662c426344dcfd7db678Andreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid LawrenceCOMPONENT_ARCHIVE_HASH= \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson sha256:bd05f3c0b7b2ae098284c062d20230aecdaa47ed623cb79907c39dd1e28f8a2e
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonCOMPONENT_ARCHIVE_URL= https://tarballs.openstack.org/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonCOMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid LawrenceCOMPONENT_PROJECT_URL= http://www.openstack.org/
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid LawrenceCOMPONENT_BUGDB= service/cinder
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonTPNO= 30298
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonPKG_VARS += COMPONENT_BE_VERSION
600cfa2ba4c50017581b6c14e3a688a82ecebbe0David Lawrence
600cfa2ba4c50017581b6c14e3a688a82ecebbe0David Lawrenceinclude $(WS_MAKE_RULES)/prep.mk
600cfa2ba4c50017581b6c14e3a688a82ecebbe0David Lawrenceinclude $(WS_MAKE_RULES)/setup.py.mk
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssoninclude $(WS_MAKE_RULES)/ips.mk
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonASLR_MODE = $(ASLR_NOT_APPLICABLE)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# Since this is an app, and doesn't provide any public library interfaces, we
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# only need to deliver one version. The manifest is parameterized, though.
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonPYTHON_VERSIONS= 2.7
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonPKG_MACROS += PYVER=$(PYTHON_VERSIONS)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonPKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson#
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# cinder-api, cinder-backup, cinder-scheduler, and cinder-volume depend
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# on cinder-db and cinder-upgrade, so copy all of the service manifests
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# into the proto directory for pkgdepend(1) to find.
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson#
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonCOMPONENT_POST_INSTALL_ACTION += \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson $(CP) \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson files/cinder-api.xml \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson files/cinder-backup.xml \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson files/cinder-db.xml \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence files/cinder-scheduler.xml \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson files/cinder-upgrade.xml \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson files/cinder-volume.xml \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson $(MKDIR) $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/solaris; \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson $(TOUCH) \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/solaris/__init__.py; \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson $(CP) \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence files/solaris/nfs.py \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson files/solaris/zfs.py \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/solaris; \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence $(CP) \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson files/zfssa/cinder.akwf \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/zfssa); \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# common targets
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssonbuild: $(BUILD_NO_ARCH)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssoninstall: $(INSTALL_NO_ARCH)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssontest: $(NO_TESTS)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssonsystem-test: $(NO_TESTS)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonREQUIRED_PACKAGES += cloud/openstack/openstack-common
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonREQUIRED_PACKAGES += file/gnu-coreutils
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonREQUIRED_PACKAGES += library/python/eventlet-27
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David LawrenceREQUIRED_PACKAGES += library/python/iniparse-27
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonREQUIRED_PACKAGES += library/python/ipython-27
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonREQUIRED_PACKAGES += library/python/oslo.config-27
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonREQUIRED_PACKAGES += library/python/oslo.utils-27
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonREQUIRED_PACKAGES += library/python/sqlalchemy-27
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonREQUIRED_PACKAGES += library/python/sqlalchemy-migrate-27
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonREQUIRED_PACKAGES += system/core-os
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David LawrenceREQUIRED_PACKAGES += system/file-system/zfs
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonREQUIRED_PACKAGES += system/storage/fc-utilities
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonREQUIRED_PACKAGES += system/storage/iscsi/iscsi-target
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonREQUIRED_PACKAGES += system/storage/scsi-target-mode-framework
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson