diff options
author | Eric Ruei | 2019-02-22 11:42:58 -0600 |
---|---|---|
committer | Anand Balagopalakrishnan | 2019-02-28 07:24:06 -0600 |
commit | 5f8570e190b37e534c9195728812190ec999c9d5 (patch) | |
tree | 119dc030dc28fe61c66bac25710929db345278be | |
parent | 8c42d96328af45fd117b598738afa4d60d88a88f (diff) | |
download | omap5-sgx-ddk-linux-5f8570e190b37e534c9195728812190ec999c9d5.tar.gz omap5-sgx-ddk-linux-5f8570e190b37e534c9195728812190ec999c9d5.tar.xz omap5-sgx-ddk-linux-5f8570e190b37e534c9195728812190ec999c9d5.zip |
km: Makefile cleanup
This patch simplifies the omap makefile to improve readability.
The makefile is used to build DRM-based SGX user modules for K4.x and
AM3/4/5/6 SoC only and therefore there is no need to keep the unused
environment variables and conditions in history.
- Remove unsupported targets
- Remove unused environment variables
- Remove unused and/or dead conditions
Signed-off-by: Eric Ruei <e-ruei1@ti.com>
-rw-r--r-- | eurasia_km/eurasiacon/build/linux2/common/omap4.mk | 1 | ||||
-rw-r--r-- | eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile | 114 |
2 files changed, 7 insertions, 108 deletions
diff --git a/eurasia_km/eurasiacon/build/linux2/common/omap4.mk b/eurasia_km/eurasiacon/build/linux2/common/omap4.mk index 352dd0c..b873554 100644 --- a/eurasia_km/eurasiacon/build/linux2/common/omap4.mk +++ b/eurasia_km/eurasiacon/build/linux2/common/omap4.mk | |||
@@ -41,5 +41,4 @@ | |||
41 | $(eval $(call TunableKernelConfigC,PVR_NO_OMAP_TIMER,)) | 41 | $(eval $(call TunableKernelConfigC,PVR_NO_OMAP_TIMER,)) |
42 | $(eval $(call TunableKernelConfigC,PVR_OMAPLFB_DONT_USE_FB_PAN_DISPLAY,)) | 42 | $(eval $(call TunableKernelConfigC,PVR_OMAPLFB_DONT_USE_FB_PAN_DISPLAY,)) |
43 | $(eval $(call TunableKernelConfigC,PVR_OMAPLFB_DRM_FB,)) | 43 | $(eval $(call TunableKernelConfigC,PVR_OMAPLFB_DRM_FB,)) |
44 | $(eval $(call TunableKernelConfigC,VS_PRODUCT_VERSION,)) | ||
45 | $(eval $(call TunableKernelConfigC,AM_VERSION,)) | 44 | $(eval $(call TunableKernelConfigC,AM_VERSION,)) |
diff --git a/eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile b/eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile index 3dffdf1..6537ee1 100644 --- a/eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile +++ b/eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile | |||
@@ -58,29 +58,6 @@ SUPPORT_PVRSRV_DEVICE_CLASS := 0 | |||
58 | 58 | ||
59 | # Customize this build as per the TARGET_PRODUCT setting | 59 | # Customize this build as per the TARGET_PRODUCT setting |
60 | # | 60 | # |
61 | ifneq ($(filter blaze blaze_tablet panda,$(TARGET_PRODUCT)),) | ||
62 | SGXCORE := 540 | ||
63 | SGX_CORE_REV := 120 | ||
64 | endif | ||
65 | ifneq ($(filter blaze.4470 blaze_tablet.4470,$(TARGET_PRODUCT)),) | ||
66 | SGXCORE := 544 | ||
67 | SGX_CORE_REV := 112 | ||
68 | endif | ||
69 | ifneq ($(filter omap5sevm panda5,$(TARGET_PRODUCT)),) | ||
70 | SGXCORE := 544 | ||
71 | SGX_CORE_REV := 105 | ||
72 | SGX_FEATURE_MP := 1 | ||
73 | SGX_FEATURE_SYSTEM_CACHE := 1 | ||
74 | SGX_FEATURE_MP_CORE_COUNT := 2 | ||
75 | PVR_OMAPLFB_DRM_FB := 0 | ||
76 | SYS_OMAP_HAS_DVFS_FRAMEWORK := 1 | ||
77 | |||
78 | # OMAP Product Version | ||
79 | VS_PRODUCT_VERSION := 5 | ||
80 | |||
81 | # FIXME: Re-enable this ASAP | ||
82 | SUPPORT_ACTIVE_POWER_MANAGEMENT := 0 | ||
83 | endif | ||
84 | ifneq ($(filter omap5uevm jacinto6evm,$(TARGET_PRODUCT)),) | 61 | ifneq ($(filter omap5uevm jacinto6evm,$(TARGET_PRODUCT)),) |
85 | SGXCORE := 544 | 62 | SGXCORE := 544 |
86 | SGX_CORE_REV := 116 | 63 | SGX_CORE_REV := 116 |
@@ -90,9 +67,8 @@ ifneq ($(filter omap5uevm jacinto6evm,$(TARGET_PRODUCT)),) | |||
90 | 67 | ||
91 | SYS_OMAP5_UEVM := 1 | 68 | SYS_OMAP5_UEVM := 1 |
92 | 69 | ||
93 | # OMAP Product Version | 70 | # SoC Version |
94 | VS_PRODUCT_VERSION := 5 | 71 | AM_VERSION := 5 |
95 | AM_VERSION := 5 | ||
96 | endif | 72 | endif |
97 | 73 | ||
98 | ifneq ($(filter ti654x,$(TARGET_PRODUCT)),) | 74 | ifneq ($(filter ti654x,$(TARGET_PRODUCT)),) |
@@ -105,8 +81,7 @@ ifneq ($(filter ti654x,$(TARGET_PRODUCT)),) | |||
105 | 81 | ||
106 | SYS_OMAP5_UEVM := 1 | 82 | SYS_OMAP5_UEVM := 1 |
107 | 83 | ||
108 | # OMAP Product Version | 84 | # SoC Version |
109 | VS_PRODUCT_VERSION := 5 | ||
110 | AM_VERSION := 6 | 85 | AM_VERSION := 6 |
111 | endif | 86 | endif |
112 | 87 | ||
@@ -119,10 +94,11 @@ ifneq ($(filter ti335x ti437x,$(TARGET_PRODUCT)),) | |||
119 | # is misleading. | 94 | # is misleading. |
120 | SYS_OMAP5_UEVM := 1 | 95 | SYS_OMAP5_UEVM := 1 |
121 | 96 | ||
97 | # SoC Version | ||
122 | ifeq ($(TARGET_PRODUCT), ti437x) | 98 | ifeq ($(TARGET_PRODUCT), ti437x) |
123 | AM_VERSION := 4 | 99 | AM_VERSION := 4 |
124 | else | 100 | else |
125 | AM_VERSION := 3 | 101 | AM_VERSION := 3 |
126 | endif | 102 | endif |
127 | 103 | ||
128 | endif | 104 | endif |
@@ -213,27 +189,15 @@ include ../common/xorg_test.mk | |||
213 | ifneq ($(strip $(KERNELDIR)),) | 189 | ifneq ($(strip $(KERNELDIR)),) |
214 | include ../kernel_version.mk | 190 | include ../kernel_version.mk |
215 | 191 | ||
216 | ifeq ($(SYS_OMAP5_UEVM),1) | ||
217 | XORG_EXPLICIT_PVR_SERVICES_LOAD := 1 | 192 | XORG_EXPLICIT_PVR_SERVICES_LOAD := 1 |
218 | ifeq ($(call kernel-version-at-least,3,8,13),true) | ||
219 | SUPPORT_DRI_DRM := 1 | 193 | SUPPORT_DRI_DRM := 1 |
220 | LDM_PLATFORM := 1 | 194 | LDM_PLATFORM := 1 |
221 | PVR_LDM_DEVICE_TREE := 1 | 195 | PVR_LDM_DEVICE_TREE := 1 |
222 | PVR_DRI_DRM_PLATFORM_DEV := 1 | 196 | PVR_DRI_DRM_PLATFORM_DEV := 1 |
223 | SUPPORT_DMABUF := 1 | 197 | SUPPORT_DMABUF := 1 |
224 | ifeq ($(TARGET_PRODUCT),ti335x) | ||
225 | PVR_DRM_MODESET_DRIVER_NAME := tilcdc | ||
226 | else | ||
227 | PVR_DRM_MODESET_DRIVER_NAME := omapdrm | ||
228 | endif | ||
229 | PVR_DRM_MODESET_MODULE_NAME := dumb | ||
230 | # No display class driver. | 198 | # No display class driver. |
231 | DISPLAY_CONTROLLER_COMPONENT := | 199 | DISPLAY_CONTROLLER_COMPONENT := |
232 | DISPLAY_CONTROLLER := | 200 | DISPLAY_CONTROLLER := |
233 | else | ||
234 | PVR_LDM_PLATFORM_PRE_REGISTERED := 1 | ||
235 | PVR_LDM_PLATFORM_PRE_REGISTERED_DEV := "\"omapdrm_pvr\"" | ||
236 | endif | ||
237 | ifeq ($(PVR_LWS_NODC),1) | 201 | ifeq ($(PVR_LWS_NODC),1) |
238 | # No display class driver. | 202 | # No display class driver. |
239 | DISPLAY_CONTROLLER := | 203 | DISPLAY_CONTROLLER := |
@@ -241,76 +205,16 @@ else | |||
241 | PVR_OMAPLFB_DRM_FB := 0 | 205 | PVR_OMAPLFB_DRM_FB := 0 |
242 | PVR_OMAPLFB_DONT_USE_FB_PAN_DISPLAY := 1 | 206 | PVR_OMAPLFB_DONT_USE_FB_PAN_DISPLAY := 1 |
243 | endif | 207 | endif |
244 | else | ||
245 | ifeq ($(call kernel-version-at-least,2,6,35),true) | ||
246 | # Work around flipping problems seen with the Taal LCDs on Blaze. | ||
247 | # The work around is safe to use with other types of screen on Blaze | ||
248 | # (e.g. HDMI) and on other platforms (e.g. Panda board). | ||
249 | PVR_OMAPLFB_DONT_USE_FB_PAN_DISPLAY := 1 | ||
250 | ifeq ($(LDM_PLATFORM),1) | ||
251 | PVR_LDM_PLATFORM_PRE_REGISTERED := 1 | ||
252 | ifeq ($(call kernel-version-at-least,2,6,35,7),true) | ||
253 | # Not all variants of the OMAP4 kernel have a DRM based framebuffer. | ||
254 | # Note that a non-X.Org version of the driver does not have to be built | ||
255 | # with DRM support if the kernel has a DRM based framebuffer. | ||
256 | PVR_OMAPLFB_DRM_FB ?= 1 | ||
257 | ifeq ($(PVR_OMAPLFB_DRM_FB),1) | ||
258 | PVR_LDM_PLATFORM_PRE_REGISTERED_DEV := "\"pvrsrvkm_pvr\"" | ||
259 | # There is already a "pvrsrvkm" driver (part of the DRM framebuffer code), | ||
260 | # so use the pre-registered device name instead. | ||
261 | PVR_LDM_DRIVER_REGISTRATION_NAME := "\"pvrsrvkm_pvr"\" | ||
262 | # The DRM library will not load the Services module on behalf of the X Server, | ||
263 | # as a DRM module has already been loaded (the DRM based framebuffer), so | ||
264 | # load the Services module before starting the X Server. | ||
265 | XORG_EXPLICIT_PVR_SERVICES_LOAD := 1 | ||
266 | else | ||
267 | PVR_LDM_PLATFORM_PRE_REGISTERED_DEV := "\"pvrsrvkm\"" | ||
268 | endif | ||
269 | endif | ||
270 | endif | ||
271 | endif | ||
272 | endif | ||
273 | 208 | ||
274 | ifeq ($(SUPPORT_DRI_DRM),1) | ||
275 | ifeq ($(SYS_OMAP5_UEVM),1) | ||
276 | PVR_DRI_DRM_PLATFORM_DEV := 1 | ||
277 | ifneq ($(call kernel-version-at-least,3,8,13),true) | ||
278 | PVR_DRI_DRM_STATIC_BUS_ID := 1 | ||
279 | PVR_DRI_DRM_DEV_BUS_ID := "\"platform:omapdrm_pvr:00"\" | ||
280 | endif | ||
281 | ifeq ($(PVR_LWS_NODC),1) | ||
282 | PVR_DRM_MODESET_DRIVER_NAME := omapdrm | ||
283 | PVR_DRM_MODESET_MODULE_NAME := dumb | ||
284 | endif | ||
285 | else | ||
286 | ifeq ($(call kernel-version-at-least,2,6,35),true) | ||
287 | PVR_DRI_DRM_PLATFORM_DEV := 1 | 209 | PVR_DRI_DRM_PLATFORM_DEV := 1 |
288 | PVR_DRI_DRM_STATIC_BUS_ID := 1 | ||
289 | ifeq ($(call kernel-version-at-least,2,6,35,7),true) | ||
290 | ifeq ($(PVR_OMAPLFB_DRM_FB),1) | ||
291 | SUPPORT_DRI_DRM_PLUGIN := 1 | ||
292 | endif | ||
293 | ifeq ($(call kernel-version-at-least,2,6,36),true) | ||
294 | PVR_DRI_DRM_DEV_BUS_ID := "\"platform:pvrsrvkm"\" | ||
295 | else | ||
296 | PVR_DRI_DRM_DEV_BUS_ID := "\"platform:pvrsrvkm:00"\" | ||
297 | endif # kernel-version-at-least,2,6,36 | ||
298 | endif # kernel-version-at-least,2,6,35,7 | ||
299 | else # kernel-version-at-least,2,6,35 | ||
300 | PVR_DRI_DRM_NOT_PCI := 1 | ||
301 | endif # kernel-version-at-least,2,6,35 | ||
302 | endif # ($(SYS_OMAP5_UEVM),1) | ||
303 | endif # SUPPORT_DRI_DRM | ||
304 | 210 | ||
305 | ifeq ($(PVR_LWS_NODC),) | 211 | ifeq ($(PVR_LWS_NODC),) |
306 | ifeq ($(SUPPORT_BUILD_XORG),1) | 212 | ifeq ($(SUPPORT_BUILD_XORG),1) |
307 | ifeq ($(call kernel-version-at-least,2,6,35,7),true) | ||
308 | # A client DRI authorisation failure, whilst switched away from the X Server | 213 | # A client DRI authorisation failure, whilst switched away from the X Server |
309 | # VT, prevents all other attempts at DRI authorisation, even after | 214 | # VT, prevents all other attempts at DRI authorisation, even after |
310 | # switching back to the X server VT, so don't perform a DRM drop master | 215 | # switching back to the X server VT, so don't perform a DRM drop master |
311 | # call. | 216 | # call. |
312 | PVR_XORG_DONT_DROP_MASTER_IN_LEAVE_VT := 1 | 217 | PVR_XORG_DONT_DROP_MASTER_IN_LEAVE_VT := 1 |
313 | endif | ||
314 | XORG_PVR_VIDEO ?= omap4 | 218 | XORG_PVR_VIDEO ?= omap4 |
315 | 219 | ||
316 | ifneq ($(OMAP_NON_FLIP_DISPLAY),1) | 220 | ifneq ($(OMAP_NON_FLIP_DISPLAY),1) |
@@ -318,16 +222,12 @@ PVR_DISPLAY_CONTROLLER_DRM_IOCTL := 1 | |||
318 | endif | 222 | endif |
319 | endif # xorg isn't excluded | 223 | endif # xorg isn't excluded |
320 | 224 | ||
321 | ifeq ($(SUPPORT_DRI_DRM),1) | ||
322 | ifeq ($(PVR_DRI_DRM_NOT_PCI),1) | 225 | ifeq ($(PVR_DRI_DRM_NOT_PCI),1) |
323 | KERNEL_COMPONENTS += linux_drm | 226 | KERNEL_COMPONENTS += linux_drm |
324 | EXTRA_KBUILD_SOURCE := $(KERNELDIR) | 227 | EXTRA_KBUILD_SOURCE := $(KERNELDIR) |
325 | endif | 228 | endif |
326 | KERNEL_COMPONENTS += $(DISPLAY_CONTROLLER) | 229 | KERNEL_COMPONENTS += $(DISPLAY_CONTROLLER) |
327 | else | 230 | endif # PVR_LWS_NODC |
328 | KERNEL_COMPONENTS += $(DISPLAY_CONTROLLER) | ||
329 | endif | ||
330 | endif | ||
331 | endif # KERNELDIR | 231 | endif # KERNELDIR |
332 | 232 | ||
333 | include ../config/core.mk | 233 | include ../config/core.mk |