summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2014-02-05 09:33:26 -0600
committerVishal Mahaveer2014-02-06 11:50:10 -0600
commit0fa0e9c6c0b7225917d0766b1bb7e7f05f414f8c (patch)
treecfba2b7276fa8acd1c683024c008593878e65f2b /jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_android/Makefile
parentbd8746b7062c01b9fe47de5094cda2f865fe833c (diff)
downloaddevice-ti-proprietary-open-0fa0e9c6c0b7225917d0766b1bb7e7f05f414f8c.tar.gz
device-ti-proprietary-open-0fa0e9c6c0b7225917d0766b1bb7e7f05f414f8c.tar.xz
device-ti-proprietary-open-0fa0e9c6c0b7225917d0766b1bb7e7f05f414f8c.zip
jacinto6: sgx: update DDK version to 1.12/2701748
Initial DDK 1.12 content Change-Id: I7159467651bf4db8cc92563f7309e4191a448e48 Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com> Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Diffstat (limited to 'jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_android/Makefile')
-rw-r--r--jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_android/Makefile221
1 files changed, 221 insertions, 0 deletions
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_android/Makefile b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_android/Makefile
new file mode 100644
index 0000000..35d9fd1
--- /dev/null
+++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_android/Makefile
@@ -0,0 +1,221 @@
1########################################################################### ###
2#@Title Root makefile for omap4430 Android. Builds everything else.
3#@Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved
4#@License Dual MIT/GPLv2
5#
6# The contents of this file are subject to the MIT license as set out below.
7#
8# Permission is hereby granted, free of charge, to any person obtaining a copy
9# of this software and associated documentation files (the "Software"), to deal
10# in the Software without restriction, including without limitation the rights
11# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12# copies of the Software, and to permit persons to whom the Software is
13# furnished to do so, subject to the following conditions:
14#
15# The above copyright notice and this permission notice shall be included in
16# all copies or substantial portions of the Software.
17#
18# Alternatively, the contents of this file may be used under the terms of
19# the GNU General Public License Version 2 ("GPL") in which case the provisions
20# of GPL are applicable instead of those above.
21#
22# If you wish to allow use of your version of this file only under the terms of
23# GPL, and not to allow others to use your version of this file under the terms
24# of the MIT license, indicate your decision by deleting the provisions above
25# and replace them with the notice and other provisions required by GPL as set
26# out in the file called "GPL-COPYING" included in this distribution. If you do
27# not delete the provisions above, a recipient may use your version of this file
28# under the terms of either the MIT license or GPL.
29#
30# This License is also included in this distribution in the file called
31# "MIT-COPYING".
32#
33# EXCEPT AS OTHERWISE STATED IN A NEGOTIATED AGREEMENT: (A) THE SOFTWARE IS
34# PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
35# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
36# PURPOSE AND NONINFRINGEMENT; AND (B) IN NO EVENT SHALL THE AUTHORS OR
37# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
38# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
39# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
40### ###########################################################################
41
42# If a TARGET_PRODUCT is specified but not a TARGET_DEVICE, try to
43# derive the TARGET_DEVICE from TARGET_PRODUCT.
44#
45ifeq ($(TARGET_DEVICE),)
46override TARGET_DEVICE := \
47 $(patsubst mini_%,%,$(patsubst full_%,%,$(TARGET_PRODUCT)))
48endif
49
50ifeq ($(TARGET_DEVICE),)
51override TARGET_DEVICE := jacinto6evm
52endif
53
54# Customize this build as per the TARGET_DEVICE setting
55#
56ifneq ($(filter blaze blaze_tablet panda tuna maguro toro mysid yakju,$(TARGET_DEVICE)),)
57SGXCORE := 540
58SGX_CORE_REV := 120
59HAL_VARIANT := omap4
60endif
61ifneq ($(filter blaze.4470 blaze_tablet.4470,$(TARGET_DEVICE)),)
62SGXCORE := 544
63SGX_CORE_REV := 112
64HAL_VARIANT := omap4
65endif
66ifneq ($(filter jacinto6evm omap5sevm panda5,$(TARGET_DEVICE)),)
67SGXCORE := 544
68SGX_CORE_REV := 116
69SGX_FEATURE_MP := 1
70SGX_FEATURE_SYSTEM_CACHE := 1
71SGX_FEATURE_MP_CORE_COUNT := 2
72HAL_VARIANT := jacinto6
73
74# OMAP Product Version
75VS_PRODUCT_VERSION := 5
76
77# FIXME: Re-enable this ASAP
78SUPPORT_ACTIVE_POWER_MANAGEMENT := 0
79endif
80
81# Handle any TARGET_DEVICE remapping. Not all DDK TARGET_DEVICEs
82# require new Android TARGET_DEVICE builds.
83#
84ifeq ($(TARGET_DEVICE),blaze.4470)
85override TARGET_DEVICE := blaze
86endif
87ifeq ($(TARGET_DEVICE),blaze_tablet.4470)
88override TARGET_DEVICE := blaze_tablet
89endif
90
91SGX_DYNAMIC_TIMING_INFO := 1
92
93SUPPORT_LINUX_USING_WORKQUEUES := 1
94
95SUPPORT_PVRSRV_ANDROID_SYSTRACE := 0
96
97ifneq ($(SUPPORT_PVRSRV_DEVICE_CLASS),0)
98#DISPLAY_CONTROLLER := omaplfb
99endif
100
101PVR_SYSTEM := omap
102
103KERNEL_CROSS_COMPILE ?= arm-none-linux-gnueabi-
104
105# We have more memory on OMAP platforms, so we can spare to make the
106# pool larger, and have higher resolutions which benefit from it.
107#
108PVR_LINUX_MEM_AREA_POOL_MAX_PAGES ?= 10800
109
110include ../common/android/paths.mk
111include ../common/android/armv7-a.mk
112include ../common/android/features.mk
113
114ifneq ($(strip $(KERNELDIR)),)
115 include ../kernel_version.mk
116 ifeq ($(call kernel-version-at-least,2,6,35),true)
117 PVR_NO_OMAP_TIMER := 1
118 endif
119 ifeq ($(call kernel-version-at-least,2,6,39),true)
120 ifeq ($(LDM_PLATFORM),1)
121 PVR_LDM_PLATFORM_PRE_REGISTERED := 1
122 PVR_LDM_PLATFORM_PRE_REGISTERED_DEV := "\"pvrsrvkm\""
123 endif
124 endif
125 ifeq ($(call kernel-version-at-least,3,0),true)
126 SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED := 1
127 SYS_OMAP_HAS_DVFS_FRAMEWORK := 1
128 endif
129else
130 $(warning "KERNELDIR is not set, so can't feature check DVFS or dsscomp.")
131 $(warning "Assuming we want DVFS and dsscomp support.")
132 SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED := 1
133 SYS_OMAP_HAS_DVFS_FRAMEWORK := 1
134endif
135
136ifneq ($(LDM_PLATFORM),1)
137SUPPORT_LINUX_USING_WORKQUEUES := 0
138SUPPORT_LINUX_USING_SHARED_WORKQUEUES := 1
139SUPPORT_ACTIVE_POWER_MANAGEMENT := 0
140ifneq ($(SUPPORT_PVRSRV_DEVICE_CLASS),0)
141DISPLAY_CONTROLLER := pvrlfb
142DISPLAY_CONTROLLER_COMPONENT := linux_framebuffer
143OMAP_NON_FLIP_DISPLAY := 1
144endif
145else # LDM_PLATFORM != 1
146ifneq ($(SUPPORT_PVRSRV_DEVICE_CLASS),0)
147#DISPLAY_CONTROLLER_COMPONENT := dc_omapfb3_linux
148endif
149endif # LDM_PLATFORM != 1
150
151ifeq ($(SUPPORT_DRI_DRM),1)
152ifeq ($(PVR_LDM_PLATFORM_PRE_REGISTERED),1)
153PVR_DRI_DRM_PLATFORM_DEV := 1
154PVR_DRI_DRM_STATIC_BUS_ID := 1
155PVR_DRI_DRM_DEV_BUS_ID := "\"platform:pvrsrvkm"\"
156else
157PVR_DRI_DRM_NOT_PCI := 1
158KERNEL_COMPONENTS += linux_drm
159endif
160ifneq ($(SUPPORT_PVRSRV_DEVICE_CLASS),0)
161EXTRA_PVRSRVKM_COMPONENTS += $(DISPLAY_CONTROLLER_COMPONENT)
162endif
163EXTRA_KBUILD_SOURCE := $(KERNELDIR)
164# FIXME: Only required for comparison with X's KM
165PVR_SECURE_DRM_AUTH_EXPORT := 1
166ifneq ($(OMAP_NON_FLIP_DISPLAY),1)
167PVR_DISPLAY_CONTROLLER_DRM_IOCTL := 1
168endif
169else # SUPPORT_DRI_DRM == 1
170ifneq ($(SUPPORT_PVRSRV_DEVICE_CLASS),0)
171KERNEL_COMPONENTS += $(DISPLAY_CONTROLLER_COMPONENT)
172endif
173endif # SUPPORT_DRI_DRM == 1
174
175SUPPORT_ANDROID_OMAP_NV12 := 1
176
177PVR_ANDROID_USE_WINDOW_TRANSFORM_HINT := 1
178
179PVR_ANDROID_PLATFORM_HAS_LINUX_FBDEV := 1
180
181# Handle Google's OMAP-based products
182#
183ifneq ($(filter tuna maguro toro mysid yakju,$(TARGET_DEVICE)),)
184# These default on in tuna_defconfig
185PVRSRV_USSE_EDM_STATUS_DEBUG ?= 1
186PVRSRV_DUMP_MK_TRACE ?= 1
187# Go back to the old compiler for tuna kernel modules
188KERNEL_CROSS_COMPILE := arm-eabi-
189endif
190
191ifeq ($(NO_HARDWARE),1)
192ifeq ($(SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED),1)
193$(info WARNING: SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED=1 is incompatible with NO_HARDWARE=1)
194$(info WARNING: Setting SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED=0 and switching to dc_nohw)
195override SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED := 0
196ifneq ($(SUPPORT_PVRSRV_DEVICE_CLASS),0)
197override DISPLAY_CONTROLLER := dcnohw
198KERNEL_COMPONENTS += dc_nohw
199endif
200endif # SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED == 1
201endif # NO_HARDWARE == 1
202
203include ../config/core.mk
204include ../common/android/extra_config.mk
205include ../common/dridrm.mk
206include ../common/opencl.mk
207include ../common/omap4.mk
208
209# Not all OMAP kernels have a compatible DVFS framework
210#
211$(eval $(call TunableKernelConfigC,SYS_OMAP_HAS_DVFS_FRAMEWORK,))
212
213# If set, services allows two flips to enter the processing queue,
214# and does not add read dependencies to the set of buffers last
215# flipped to. This is necessary for DSS composition on OMAP.
216#
217$(eval $(call TunableKernelConfigC,SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED,))
218
219# On OMAP a TILER-specific NV12 format is supported.
220#
221$(eval $(call TunableUserConfigMake,SUPPORT_ANDROID_OMAP_NV12,))