summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Ruei2019-02-22 11:42:58 -0600
committerAnand Balagopalakrishnan2019-02-28 07:24:06 -0600
commit5f8570e190b37e534c9195728812190ec999c9d5 (patch)
tree119dc030dc28fe61c66bac25710929db345278be
parent8c42d96328af45fd117b598738afa4d60d88a88f (diff)
downloadomap5-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.mk1
-rw-r--r--eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile114
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#
61ifneq ($(filter blaze blaze_tablet panda,$(TARGET_PRODUCT)),)
62 SGXCORE := 540
63 SGX_CORE_REV := 120
64endif
65ifneq ($(filter blaze.4470 blaze_tablet.4470,$(TARGET_PRODUCT)),)
66 SGXCORE := 544
67 SGX_CORE_REV := 112
68endif
69ifneq ($(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
83endif
84ifneq ($(filter omap5uevm jacinto6evm,$(TARGET_PRODUCT)),) 61ifneq ($(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
96endif 72endif
97 73
98ifneq ($(filter ti654x,$(TARGET_PRODUCT)),) 74ifneq ($(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
111endif 86endif
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
128endif 104endif
@@ -213,27 +189,15 @@ include ../common/xorg_test.mk
213ifneq ($(strip $(KERNELDIR)),) 189ifneq ($(strip $(KERNELDIR)),)
214include ../kernel_version.mk 190include ../kernel_version.mk
215 191
216ifeq ($(SYS_OMAP5_UEVM),1)
217XORG_EXPLICIT_PVR_SERVICES_LOAD := 1 192XORG_EXPLICIT_PVR_SERVICES_LOAD := 1
218ifeq ($(call kernel-version-at-least,3,8,13),true)
219SUPPORT_DRI_DRM := 1 193SUPPORT_DRI_DRM := 1
220LDM_PLATFORM := 1 194LDM_PLATFORM := 1
221PVR_LDM_DEVICE_TREE := 1 195PVR_LDM_DEVICE_TREE := 1
222PVR_DRI_DRM_PLATFORM_DEV := 1 196PVR_DRI_DRM_PLATFORM_DEV := 1
223SUPPORT_DMABUF := 1 197SUPPORT_DMABUF := 1
224ifeq ($(TARGET_PRODUCT),ti335x)
225PVR_DRM_MODESET_DRIVER_NAME := tilcdc
226else
227PVR_DRM_MODESET_DRIVER_NAME := omapdrm
228endif
229PVR_DRM_MODESET_MODULE_NAME := dumb
230# No display class driver. 198# No display class driver.
231DISPLAY_CONTROLLER_COMPONENT := 199DISPLAY_CONTROLLER_COMPONENT :=
232DISPLAY_CONTROLLER := 200DISPLAY_CONTROLLER :=
233else
234PVR_LDM_PLATFORM_PRE_REGISTERED := 1
235PVR_LDM_PLATFORM_PRE_REGISTERED_DEV := "\"omapdrm_pvr\""
236endif
237ifeq ($(PVR_LWS_NODC),1) 201ifeq ($(PVR_LWS_NODC),1)
238# No display class driver. 202# No display class driver.
239DISPLAY_CONTROLLER := 203DISPLAY_CONTROLLER :=
@@ -241,76 +205,16 @@ else
241PVR_OMAPLFB_DRM_FB := 0 205PVR_OMAPLFB_DRM_FB := 0
242PVR_OMAPLFB_DONT_USE_FB_PAN_DISPLAY := 1 206PVR_OMAPLFB_DONT_USE_FB_PAN_DISPLAY := 1
243endif 207endif
244else
245ifeq ($(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).
249PVR_OMAPLFB_DONT_USE_FB_PAN_DISPLAY := 1
250ifeq ($(LDM_PLATFORM),1)
251PVR_LDM_PLATFORM_PRE_REGISTERED := 1
252ifeq ($(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.
256PVR_OMAPLFB_DRM_FB ?= 1
257ifeq ($(PVR_OMAPLFB_DRM_FB),1)
258PVR_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.
261PVR_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.
265XORG_EXPLICIT_PVR_SERVICES_LOAD := 1
266else
267PVR_LDM_PLATFORM_PRE_REGISTERED_DEV := "\"pvrsrvkm\""
268endif
269endif
270endif
271endif
272endif
273 208
274ifeq ($(SUPPORT_DRI_DRM),1)
275ifeq ($(SYS_OMAP5_UEVM),1)
276PVR_DRI_DRM_PLATFORM_DEV := 1
277ifneq ($(call kernel-version-at-least,3,8,13),true)
278PVR_DRI_DRM_STATIC_BUS_ID := 1
279PVR_DRI_DRM_DEV_BUS_ID := "\"platform:omapdrm_pvr:00"\"
280endif
281ifeq ($(PVR_LWS_NODC),1)
282PVR_DRM_MODESET_DRIVER_NAME := omapdrm
283PVR_DRM_MODESET_MODULE_NAME := dumb
284endif
285else
286ifeq ($(call kernel-version-at-least,2,6,35),true)
287PVR_DRI_DRM_PLATFORM_DEV := 1 209PVR_DRI_DRM_PLATFORM_DEV := 1
288PVR_DRI_DRM_STATIC_BUS_ID := 1
289ifeq ($(call kernel-version-at-least,2,6,35,7),true)
290ifeq ($(PVR_OMAPLFB_DRM_FB),1)
291SUPPORT_DRI_DRM_PLUGIN := 1
292endif
293ifeq ($(call kernel-version-at-least,2,6,36),true)
294PVR_DRI_DRM_DEV_BUS_ID := "\"platform:pvrsrvkm"\"
295else
296PVR_DRI_DRM_DEV_BUS_ID := "\"platform:pvrsrvkm:00"\"
297endif # kernel-version-at-least,2,6,36
298endif # kernel-version-at-least,2,6,35,7
299else # kernel-version-at-least,2,6,35
300PVR_DRI_DRM_NOT_PCI := 1
301endif # kernel-version-at-least,2,6,35
302endif # ($(SYS_OMAP5_UEVM),1)
303endif # SUPPORT_DRI_DRM
304 210
305ifeq ($(PVR_LWS_NODC),) 211ifeq ($(PVR_LWS_NODC),)
306ifeq ($(SUPPORT_BUILD_XORG),1) 212ifeq ($(SUPPORT_BUILD_XORG),1)
307ifeq ($(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.
312PVR_XORG_DONT_DROP_MASTER_IN_LEAVE_VT := 1 217PVR_XORG_DONT_DROP_MASTER_IN_LEAVE_VT := 1
313endif
314XORG_PVR_VIDEO ?= omap4 218XORG_PVR_VIDEO ?= omap4
315 219
316ifneq ($(OMAP_NON_FLIP_DISPLAY),1) 220ifneq ($(OMAP_NON_FLIP_DISPLAY),1)
@@ -318,16 +222,12 @@ PVR_DISPLAY_CONTROLLER_DRM_IOCTL := 1
318endif 222endif
319endif # xorg isn't excluded 223endif # xorg isn't excluded
320 224
321ifeq ($(SUPPORT_DRI_DRM),1)
322ifeq ($(PVR_DRI_DRM_NOT_PCI),1) 225ifeq ($(PVR_DRI_DRM_NOT_PCI),1)
323KERNEL_COMPONENTS += linux_drm 226KERNEL_COMPONENTS += linux_drm
324EXTRA_KBUILD_SOURCE := $(KERNELDIR) 227EXTRA_KBUILD_SOURCE := $(KERNELDIR)
325endif 228endif
326KERNEL_COMPONENTS += $(DISPLAY_CONTROLLER) 229KERNEL_COMPONENTS += $(DISPLAY_CONTROLLER)
327else 230endif # PVR_LWS_NODC
328KERNEL_COMPONENTS += $(DISPLAY_CONTROLLER)
329endif
330endif
331endif # KERNELDIR 231endif # KERNELDIR
332 232
333include ../config/core.mk 233include ../config/core.mk