]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/device-ti-proprietary-open.git/blob - omap5/sgx_src/eurasia_km/eurasiacon/build/linux2/omap4430_android/Makefile
SGX-BIN: DDK update for OMAP5 1.9IMG2166536_TI.0003
[android-sdk/device-ti-proprietary-open.git] / omap5 / 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
56  #default config
57  SGXCORE := 540
58  SGX_CORE_REV := 120
59 endif
60 export SGXCORE
61 export SGX_CORE_REV
63 SGX_DYNAMIC_TIMING_INFO := 1
65 SUPPORT_LINUX_USING_WORKQUEUES := 1
67 DISPLAY_CONTROLLER := omaplfb
69 PVR_SYSTEM := omap4
70 HAL_VARIANT := $(PVR_SYSTEM)
72 # We have more memory on OMAP platforms, so we can spare to make the
73 # pool larger, and have higher resolutions which benefit from it.
74 #
75 PVR_LINUX_MEM_AREA_POOL_MAX_PAGES ?= 10800
77 include ../common/android/paths.mk
78 include ../common/android/armv7-a.mk
79 include ../common/android/features.mk
81 ifneq ($(strip $(KERNELDIR)),)
82  include ../kernel_version.mk
83  ifeq ($(call kernel-version-at-least,2,6,35),true)
84   PVR_NO_OMAP_TIMER := 1
85  endif
86  ifeq ($(call kernel-version-at-least,2,6,39),true)
87   ifeq ($(LDM_PLATFORM),1)
88    PVR_LDM_PLATFORM_PRE_REGISTERED := 1
89    PVR_LDM_PLATFORM_PRE_REGISTERED_DEV := "\"pvrsrvkm\""
90   endif
91  endif
92  ifeq ($(is_at_least_icecream_sandwich),1)
93   ifeq ($(call kernel-version-at-least,3,0),true)
94    SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED := 1
95    PVR_ANDROID_NEEDS_ACCUM_SYNC_WORKAROUND := 1
96    SYS_OMAP4_HAS_DVFS_FRAMEWORK := 1
97   endif
98  endif
99 else
100  ifeq ($(is_at_least_icecream_sandwich),1)
101   $(warning "KERNELDIR is not set, so can't feature check DVFS or dsscomp.")
102   $(warning "Assuming we want DVFS and dsscomp support.")
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
109 ifneq ($(LDM_PLATFORM),1)
110 SUPPORT_LINUX_USING_WORKQUEUES := 0
111 SUPPORT_LINUX_USING_SHARED_WORKQUEUES := 1
112 SUPPORT_ACTIVE_POWER_MANAGEMENT := 0
113 DISPLAY_CONTROLLER := pvrlfb
114 DISPLAY_CONTROLLER_COMPONENT := linux_framebuffer
115 OMAP_NON_FLIP_DISPLAY := 1
117 # The code for the omaplfb component is now hosted on a
118 # different repository. No need to compile this now
120 # DISPLAY_CONTROLLER_COMPONENT := dc_omapfb3_linux
122 endif
124 ifeq ($(SUPPORT_DRI_DRM),1)
125 ifeq ($(PVR_LDM_PLATFORM_PRE_REGISTERED),1)
126 PVR_DRI_DRM_PLATFORM_DEV := 1
127 PVR_DRI_DRM_STATIC_BUS_ID := 1
128 PVR_DRI_DRM_DEV_BUS_ID := "\"platform:pvrsrvkm"\"
129 else
130 PVR_DRI_DRM_NOT_PCI := 1
131 KERNEL_COMPONENTS += linux_drm
132 endif
133 EXTRA_PVRSRVKM_COMPONENTS += $(DISPLAY_CONTROLLER_COMPONENT)
134 EXTRA_KBUILD_SOURCE := $(KERNELDIR)
135 # FIXME: Only required for comparison with X's KM
136 PVR_SECURE_DRM_AUTH_EXPORT := 1
137 ifneq ($(OMAP_NON_FLIP_DISPLAY),1)
138 PVR_DISPLAY_CONTROLLER_DRM_IOCTL := 1
139 endif
140 else
141 KERNEL_COMPONENTS += $(DISPLAY_CONTROLLER_COMPONENT)
142 endif
144 SUPPORT_ANDROID_OMAP_NV12 := 1
146 ifeq ($(is_at_least_icecream_sandwich),1)
147 ifeq ($(SUPPORT_ANDROID_COMPOSER_HAL),1)
148 PVR_ANDROID_USE_WINDOW_TRANSFORM_HINT := 1
149 endif
150 endif
152 PVR_ANDROID_PLATFORM_HAS_LINUX_FBDEV := 1
154 # FIXME: Remove this once vsync issues are resolved
155 PVR_ANDROID_COMPOSITOR_WAIT_FOR_RENDER := 1
157 ifeq ($(is_at_least_icecream_sandwich),1)
158 -include products.mk
159 endif
161 ifeq ($(NO_HARDWARE),1)
162 ifeq ($(SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED),1)
163 $(info WARNING: SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED=1 is incompatible with NO_HARDWARE=1)
164 $(info WARNING: Setting SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED=0 and switching to dc_nohw)
165 override SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED := 0
166 override DISPLAY_CONTROLLER := dcnohw
167 KERNEL_COMPONENTS += dc_nohw
168 endif
169 endif
171 include ../config/core.mk
172 include ../common/android/extra_config.mk
173 include ../common/dridrm.mk
174 include ../common/opencl.mk
175 include ../common/omap4.mk
177 # Not all OMAP4 kernels have a compatible DVFS framework
179 $(eval $(call TunableKernelConfigC,SYS_OMAP4_HAS_DVFS_FRAMEWORK,))
181 # If set, services allows two flips to enter the processing queue,
182 # and does not add read dependencies to the set of buffers last
183 # flipped to. This is necessary for DSS composition on OMAP4.
184
185 $(eval $(call TunableKernelConfigC,SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED,))