]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/device-ti-proprietary-open.git/blob - jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap4430_android/Makefile
jacinto6: sgx: update DDK version to 1.12/2701748
[android-sdk/device-ti-proprietary-open.git] / jacinto6 / sgx_src / eurasia_km / eurasiacon / build / linux2 / omap4430_android / Makefile
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 ### ###########################################################################
42 ifeq ($(TARGET_SGX),544sc)
43  SGXCORE := 544
44  SGX_CORE_REV := 112
45 else ifeq ($(TARGET_SGX),540)
46  SGXCORE := 540
47  SGX_CORE_REV := 120
48 else ifeq ($(TARGET_SGX),544)
49  SGXCORE := 544
50  SGX_CORE_REV := 105
51  HAL_VARIANT := omap5
52  SGX_FEATURE_MP := 1
53  SGX_FEATURE_SYSTEM_CACHE := 1
54  SGX_FEATURE_MP_CORE_COUNT := 2
55 else ifeq ($(TARGET_SGX),544es2)
56  SGXCORE := 544
57  SGX_CORE_REV := 116
58  HAL_VARIANT := omap5
59  SGX_FEATURE_MP := 1
60  SGX_FEATURE_SYSTEM_CACHE := 1
61  SGX_FEATURE_MP_CORE_COUNT := 2
62 else
63  #default config
64  SGXCORE := 540
65  SGX_CORE_REV := 120
66 endif
67 export SGXCORE
68 export SGX_CORE_REV
70 SUPPORT_ACTIVE_POWER_MANAGEMENT := 0
72 SGX_DYNAMIC_TIMING_INFO := 1
74 SUPPORT_LINUX_USING_WORKQUEUES := 1
76 DISPLAY_CONTROLLER := omaplfb
78 PVR_SYSTEM := omap4
79 HAL_VARIANT := $(PVR_SYSTEM)
81 # We have more memory on OMAP platforms, so we can spare to make the
82 # pool larger, and have higher resolutions which benefit from it.
83 #
84 PVR_LINUX_MEM_AREA_POOL_MAX_PAGES ?= 10800
86 include ../common/android/paths.mk
87 include ../common/android/armv7-a.mk
88 include ../common/android/features.mk
90 ifneq ($(strip $(KERNELDIR)),)
91  include ../kernel_version.mk
92  ifeq ($(call kernel-version-at-least,2,6,35),true)
93   PVR_NO_OMAP_TIMER := 1
94  endif
95  ifeq ($(call kernel-version-at-least,2,6,39),true)
96   ifeq ($(LDM_PLATFORM),1)
97    PVR_LDM_PLATFORM_PRE_REGISTERED := 1
98    PVR_LDM_PLATFORM_PRE_REGISTERED_DEV := "\"pvrsrvkm\""
99   endif
100  endif
101  ifeq ($(is_at_least_icecream_sandwich),1)
102   ifeq ($(call kernel-version-at-least,3,0),true)
103    SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED := 1
104    PVR_ANDROID_NEEDS_ACCUM_SYNC_WORKAROUND := 1
105    SYS_OMAP4_HAS_DVFS_FRAMEWORK := 1
106   endif
107  endif
108 else
109  ifeq ($(is_at_least_icecream_sandwich),1)
110   $(warning "KERNELDIR is not set, so can't feature check DVFS or dsscomp.")
111   $(warning "Assuming we want DVFS and dsscomp support.")
112   SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED := 1
113   PVR_ANDROID_NEEDS_ACCUM_SYNC_WORKAROUND := 1
114   SYS_OMAP4_HAS_DVFS_FRAMEWORK := 1
115  endif
116 endif
118 ifneq ($(LDM_PLATFORM),1)
119 SUPPORT_LINUX_USING_WORKQUEUES := 0
120 SUPPORT_LINUX_USING_SHARED_WORKQUEUES := 1
121 SUPPORT_ACTIVE_POWER_MANAGEMENT := 0
122 DISPLAY_CONTROLLER := pvrlfb
123 DISPLAY_CONTROLLER_COMPONENT := linux_framebuffer
124 OMAP_NON_FLIP_DISPLAY := 1
126 # The code for the omaplfb component is now hosted on a
127 # different repository. No need to compile this now
129 # DISPLAY_CONTROLLER_COMPONENT := dc_omapfb3_linux
131 endif
133 ifeq ($(SUPPORT_DRI_DRM),1)
134 ifeq ($(PVR_LDM_PLATFORM_PRE_REGISTERED),1)
135 PVR_DRI_DRM_PLATFORM_DEV := 1
136 PVR_DRI_DRM_STATIC_BUS_ID := 1
137 PVR_DRI_DRM_DEV_BUS_ID := "\"platform:pvrsrvkm"\"
138 else
139 PVR_DRI_DRM_NOT_PCI := 1
140 KERNEL_COMPONENTS += linux_drm
141 endif
142 EXTRA_PVRSRVKM_COMPONENTS += $(DISPLAY_CONTROLLER_COMPONENT)
143 EXTRA_KBUILD_SOURCE := $(KERNELDIR)
144 # FIXME: Only required for comparison with X's KM
145 PVR_SECURE_DRM_AUTH_EXPORT := 1
146 ifneq ($(OMAP_NON_FLIP_DISPLAY),1)
147 PVR_DISPLAY_CONTROLLER_DRM_IOCTL := 1
148 endif
149 else
150 KERNEL_COMPONENTS += $(DISPLAY_CONTROLLER_COMPONENT)
151 endif
153 SUPPORT_ANDROID_OMAP_NV12 := 1
155 ifeq ($(is_at_least_icecream_sandwich),1)
156 ifeq ($(SUPPORT_ANDROID_COMPOSER_HAL),1)
157 PVR_ANDROID_USE_WINDOW_TRANSFORM_HINT := 1
158 endif
159 endif
161 PVR_ANDROID_PLATFORM_HAS_LINUX_FBDEV := 1
163 # FIXME: Remove this once vsync issues are resolved
164 PVR_ANDROID_COMPOSITOR_WAIT_FOR_RENDER := 1
166 ifeq ($(is_at_least_icecream_sandwich),1)
167 -include products.mk
168 endif
170 ifeq ($(NO_HARDWARE),1)
171 ifeq ($(SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED),1)
172 $(info WARNING: SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED=1 is incompatible with NO_HARDWARE=1)
173 $(info WARNING: Setting SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED=0 and switching to dc_nohw)
174 override SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED := 0
175 override DISPLAY_CONTROLLER := dcnohw
176 KERNEL_COMPONENTS += dc_nohw
177 endif
178 endif
180 include ../config/core.mk
181 include ../common/android/extra_config.mk
182 include ../common/dridrm.mk
183 include ../common/opencl.mk
184 include ../common/omap4.mk
186 # Not all OMAP4 kernels have a compatible DVFS framework
188 $(eval $(call TunableKernelConfigC,SYS_OMAP4_HAS_DVFS_FRAMEWORK,))
190 # If set, services allows two flips to enter the processing queue,
191 # and does not add read dependencies to the set of buffers last
192 # flipped to. This is necessary for DSS composition on OMAP4.
193
194 $(eval $(call TunableKernelConfigC,SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED,))