Makefile revision 1450
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#
2312a9d8e5342846988edcd629e1ac56a8b5d4a9Brendan Mmiller# Permission is hereby granted, free of charge, to any person obtaining a
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# copy of this software and associated documentation files (the "Software"),
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# to deal in the Software without restriction, including without limitation
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# the rights to use, copy, modify, merge, publish, distribute, sublicense,
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# and/or sell copies of the Software, and to permit persons to whom the
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# Software is furnished to do so, subject to the following conditions:
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# The above copyright notice and this permission notice (including the next
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# paragraph) shall be included in all copies or substantial portions of the
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# Software.
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# DEALINGS IN THE SOFTWARE.
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle###############################################################################
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# This Makefile drives the production of the DRM (Direct Rendering
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# Manager) common misc module.
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle#
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle###############################################################################
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle
49ca89f51e0242b83f998f16a269dc1982460f02Chad KienleTOP:sh = hg root
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# X-consolidation defines:
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# Module core info
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleMODULE = i915
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# MODULE_NAME - the package this module is installed in
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleMODULE_NAME = $(MODULE)
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# This is the package this module should be installed into
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleMODULE_PKGTAIL = drm
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleMODULE_PKGTAIL_SET = yes
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
ad0b283113c3f11ac1877df97d5d0fae899b56caBrendan Mmiller# Where are the local sources relative to the build dir
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleREL_SOURCE_DIR = ../src
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle# Where do we install the driver.
331c327f500d45223e8ad933fd4472740a75aeeachad.kienleMODULE_PREFIX = kernel/drv/$(MACH64_i386)
331c327f500d45223e8ad933fd4472740a75aeeachad.kienleMODULE_PREFIX_SET = yes
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# No upstream sources for these files, since they're Solaris-specific
331c327f500d45223e8ad933fd4472740a75aeeachad.kienleSOURCE_TARBALL_NAME = NONE
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleSOURCE_TARBALL_NAME_SET = yes
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleSOURCE_TARGETS =
ad0b283113c3f11ac1877df97d5d0fae899b56caBrendan MmillerSOURCE_TARGETS_SET = yes
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# No configure script, so pass usual environment to build/install instead
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleCONFIGURE_TARGETS = $(BUILD_DIR)
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleCONFIGURE_TARGETS_SET = yes
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleMODULE_MAKEFLAGS = VPATH=$(REL_SOURCE_DIR) -f $(REL_SOURCE_DIR)/Makefile
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleMODULE_BUILD_ENV = $(CONFIG_ENV) PREFIX=$(MODULE_PREFIX)
331c327f500d45223e8ad933fd4472740a75aeeachad.kienleMODULE_LDFLAGS = -r -dy -Nmisc/drm
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle#
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle# License info
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle#
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleMODULE_LICENSE = Intel license
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleMODULE_LICENSE_SET = yes
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleMODULE_DESC = the Intel i915 KMS driver
b1c33bb0456be2f3b9e866871ff404ae012978b9Chad KienleMODULE_VERSION = 2013Q3
331c327f500d45223e8ad933fd4472740a75aeeachad.kienleORACLE_TPNO = 5800
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleLICENSE_FILE = license_i915
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleLICENSE_FILE_SET = yes
49ca89f51e0242b83f998f16a269dc1982460f02Chad Kienle
49ca89f51e0242b83f998f16a269dc1982460f02Chad Kienle#
49ca89f51e0242b83f998f16a269dc1982460f02Chad Kienle# Include kernel rules.
49ca89f51e0242b83f998f16a269dc1982460f02Chad Kienle#
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienleinclude $(TOP)/open-src/kernel/Makefile.inc
2312a9d8e5342846988edcd629e1ac56a8b5d4a9Brendan Mmillerinclude $(TOP)/open-src/kernel/Makefile.rules
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle