author | Randy Fishel <Randy.Fishel@Oracle.COM> |
Wed, 04 Mar 2015 12:34:52 -0800 | |
changeset 1512 | 4b04d1e46a1d |
parent 1500 | f21b42287315 |
child 1607 | 80f8cd5b6d90 |
permissions | -rw-r--r-- |
1494
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
2 |
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
4 |
# Permission is hereby granted, free of charge, to any person obtaining a |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
5 |
# copy of this software and associated documentation files (the "Software"), |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
6 |
# to deal in the Software without restriction, including without limitation |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
7 |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
8 |
# and/or sell copies of the Software, and to permit persons to whom the |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
9 |
# Software is furnished to do so, subject to the following conditions: |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
10 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
11 |
# The above copyright notice and this permission notice (including the next |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
12 |
# paragraph) shall be included in all copies or substantial portions of the |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
13 |
# Software. |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
14 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
15 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
16 |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
17 |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
18 |
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
19 |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
20 |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
21 |
# DEALINGS IN THE SOFTWARE. |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
23 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
24 |
############################################################################### |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
25 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
26 |
# Makefile.inc - rules common to the kernel directory |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
27 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
28 |
############################################################################### |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
29 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
30 |
PWD:sh=pwd |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
31 |
TOP:sh=hg root |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
32 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
33 |
MODTYPE=driver |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
34 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
35 |
# Hierarchical parent for pkg names in this area |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
36 |
# Note that each driver needs to set the MODULE_PKGTAIL |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
37 |
# value so that it can be appropriately installed in that package |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
38 |
# e.g. i915/drm define this as "MODULE_PKGTAIL = drm" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
39 |
MODTYPE_PKGHIER = driver/graphics |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
40 |
MODTYPE_PKGHIER_SET = yes |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
41 |
|
1500
f21b42287315
20484350 cleanup assorted build & check warnings
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1499
diff
changeset
|
42 |
# PKGCLASS - Drivers/Display for framebuffers. |
f21b42287315
20484350 cleanup assorted build & check warnings
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1499
diff
changeset
|
43 |
MODULE_PKGCLASS = Drivers/Display |
1494
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
44 |
MODULE_PKGCLASS_SET = yes |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
45 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
46 |
# The package that this belongs in - must match the name in pkg/manifests |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
47 |
# This is something that should be a bit more dynamic. |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
48 |
MODULE_PKG = driver-graphics-drm |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
49 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
50 |
# Default module description for packages in this area |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
51 |
MODTYPE_DESC = the $(MODULE_NAME) driver |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
52 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
53 |
### Include common definitions |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
54 |
include $(TOP)/open-src/common/Makefile.init |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
55 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
56 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
57 |
# Default build types, driver is only 64 bit, and this one is x86 only. |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
58 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
59 |
BUILD_TYPES_DEFAULT = $(BUILD_TYPES_SET:yes=$(POUND_SIGN)) |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
60 |
# debug isn't working quite right yet |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
61 |
# $(BUILD_TYPES_DEFAULT) BUILD_TYPES=64 debug |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
62 |
$(BUILD_TYPES_DEFAULT) BUILD_TYPES=64 |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
63 |
# $(BUILD_TYPES_DEFAULT) BUILD_TYPES=64 |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
64 |
$(BUILD_TYPES_DEFAULT) BUILD_TYPES_SET=yes |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
65 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
66 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
67 |
# Set comments in ELF binaries to help identify versions/builds |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
68 |
# XXXX - We probably need something here, but not sure what. |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
69 |
# MODTYPE_ADD_BUILD_TARGETS=set-elf-comments |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
70 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
71 |
# Define common LDFLAGS |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
72 |
MODTYPE_LDFLAGS = -zstrip-class=comment -zstrip-class=exclude |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
73 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
74 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
75 |
# Defines that are specific to kernel drivers |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
76 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
77 |
# Default build options |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
78 |
USE_DEFAULT_CONFIG_LDFLAGS = no |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
79 |
USE_DEFAULT_CONFIG_CPPFLAGS = no |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
80 |
USE_DEFAULT_CONFIG_ENV = no |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
81 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
82 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
83 |
# Much of the below is the redefinition of defines in the common |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
84 |
# Makefiles. It was changed here as the environment is sufficiently |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
85 |
# different for kernel modules that it introduced a fair amount of |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
86 |
# changed code. So it was initially decided to separate the work |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
87 |
# and figure later how to move this into common code (which can be |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
88 |
# accomplished in smaller increments). |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
89 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
90 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
91 |
# Due to the common Makefile's use of DEFAULT_LD_OPTIONS, we clear it here. |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
92 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
93 |
DEFAULT_LD_OPTIONS = |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
94 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
95 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
96 |
# Define CONFIG_ENV for kernel modules here. |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
97 |
# Note that _anything_ needed to build these modules must be listed here |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
98 |
# as they are not retained from the common Makefiles. |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
99 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
100 |
CONFIG_ENV = CC="$(CC)" CXX="$(CXX)" AR="$(AR)" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
101 |
CONFIG_ENV += LD="$(LD)" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
102 |
CONFIG_ENV += CFLAGS="$(MODTYPE_CFLAGS) $(MODULE_CFLAGS)" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
103 |
CONFIG_ENV += CXXFLAGS="$(MODTYPE_CXXFLAGS) $(MODULE_CXXFLAGS)" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
104 |
CONFIG_ENV += CPPFLAGS="$(DEFAULT_CONFIG_CPPFLAGS) $(MODTYPE_CPPFLAGS) $(MODULE_CPPFLAGS)" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
105 |
CONFIG_ENV += LDFLAGS="$(MODULE_LDFLAGS) $(MODTYPE_LDFLAGS)" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
106 |
CONFIG_ENV += PKG_CONFIG_PATH="$(DEFAULT_PKG_CONFIG_PATH)" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
107 |
CONFIG_ENV += INSTALL="$(INSTALL_SCRIPT)" CPPROG="cp -p" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
108 |
CONFIG_ENV += MAKE="$(MODULE_MAKE)" CONFIG_SHELL="$(CONFIG_SHELL)" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
109 |
CONFIG_ENV += NM="/usr/gnu/bin/nm" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
110 |
CONFIG_ENV += POUND_SIGN="$(POUND_SIGN)" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
111 |
CONFIG_ENV += PROTOMETA="$(PROTOMETA)/$(MODULE_PKG)" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
112 |
CONFIG_ENV += X11_MAN_DIR="$(X11_MAN_DIR)" |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
113 |
|
1512
4b04d1e46a1d
20395950 Move efb to the X consolidation
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
1500
diff
changeset
|
114 |
# Where to find the common include files |
4b04d1e46a1d
20395950 Move efb to the X consolidation
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
1500
diff
changeset
|
115 |
DRM_INCL = -I$(TOP)/open-src/kernel/sys/drm -I$(TOP)/open-src/kernel/sys |
1494
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
116 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
117 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
118 |
# CFLAGS for modules in open-src/kernel |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
119 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
120 |
# Compiler flags for kernel modules |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
121 |
KFLAGS = -m64 -U$(MACH) -U__$(MACH) -xmodel=kernel -xvector=none \ |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
122 |
-Wu,-save_args -v -xildoff -D_KERNEL -D_ELF64 -D_DDI_STRICT \ |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
123 |
-Dsun -D__sun -D__SVR4 -D_SYSCALL32 -D_SYSCALL32_IMPL \ |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
124 |
-D_ASM_INLINES -Xa -xspace -xdebugformat=stabs -errtags=yes \ |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
125 |
-errwarn=%all -W0,-xglobalstatic |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
126 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
127 |
# Architecture specific flags |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
128 |
# New flags for sunstudio12.4 |
1499
0246d6998615
20395984 Fix build failure when building X with Studio 12.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1494
diff
changeset
|
129 |
KFLAGS_i386 += -W2,-xregs=no%float |
0246d6998615
20395984 Fix build failure when building X with Studio 12.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1494
diff
changeset
|
130 |
KFLAGS_i386 += -Wu,-xregs=no%float |
0246d6998615
20395984 Fix build failure when building X with Studio 12.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1494
diff
changeset
|
131 |
KFLAGS_i386 += -W0,-y-xregs=no%float |
1494
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
132 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
133 |
# To make sure ctfconvert has CTF data |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
134 |
CTF_FLAGS = -g |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
135 |
|
1512
4b04d1e46a1d
20395950 Move efb to the X consolidation
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
1500
diff
changeset
|
136 |
INC_PATH = -I. $(DRM_INCL) -I/usr/include |
1494
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
137 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
138 |
# Debug cflags - added in the "debug" path of the target makefile. |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
139 |
MODTYPE_CFLAGS_DEBUG = -DDEBUG |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
140 |
|
1512
4b04d1e46a1d
20395950 Move efb to the X consolidation
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
1500
diff
changeset
|
141 |
MODTYPE_CPPFLAGS = $(INC_PATH) |
4b04d1e46a1d
20395950 Move efb to the X consolidation
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
1500
diff
changeset
|
142 |
MODTYPE_CFLAGS = $(INC_PATH) $(KFLAGS) $(KFLAGS_$(MACH)) $(CTF_FLAGS) $(PROG_FLAGS) |
1494
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
143 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
144 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
145 |
# Define the MODTYPE environment |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
146 |
# |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
147 |
MODTYPE_BUILD_ENV = CFLAGS='$(MODTYPE_CFLAGS)' |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
148 |
MODTYPE_BUILD_ENV += CC='$(CC)' LD='$(LD)' LINT='$(LINT)' |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
149 |
|
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
150 |
### Include common file |
a72f39592745
PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents:
diff
changeset
|
151 |
include $(TOP)/open-src/common/Makefile.inc |