diff options
author | Gowtham Tammana | 2016-06-20 18:08:36 -0500 |
---|---|---|
committer | Gowtham Tammana | 2016-06-21 10:08:34 -0500 |
commit | 34ed80f505fea5d81a895c554312f9918de82ec9 (patch) | |
tree | 373271c66a211e336bad3546ddd4042553bd3689 /jacinto6/sgx_src/eurasia_km/eurasiacon | |
parent | a963c5d6bd49269a81d83ce1122a507f3768beaf (diff) | |
download | device-ti-proprietary-open-34ed80f505fea5d81a895c554312f9918de82ec9.tar.gz device-ti-proprietary-open-34ed80f505fea5d81a895c554312f9918de82ec9.tar.xz device-ti-proprietary-open-34ed80f505fea5d81a895c554312f9918de82ec9.zip |
jacinto6: sgx-bin: bins and src update for ddk1.14
Updating SGX binaries and KM source update for DDK1.14 on k4.4
Change-Id: Ie51645aa42e31c620f2e50cdb1efd570a1ef7227
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
Diffstat (limited to 'jacinto6/sgx_src/eurasia_km/eurasiacon')
18 files changed, 404 insertions, 243 deletions
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/buildvars.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/buildvars.mk index ce0608c..b93243b 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/buildvars.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/buildvars.mk | |||
@@ -76,7 +76,7 @@ COMMON_USER_FLAGS += -fno-strict-aliasing | |||
76 | # We always enable debugging. Either the release binaries are stripped | 76 | # We always enable debugging. Either the release binaries are stripped |
77 | # and the symbols put in the symbolpackage, or we're building debug. | 77 | # and the symbols put in the symbolpackage, or we're building debug. |
78 | # | 78 | # |
79 | COMMON_USER_FLAGS += -g | 79 | COMMON_USER_FLAGS += -g $(ANDROID_FPGA_FORCE_32BIT) |
80 | 80 | ||
81 | # User C and User C++ warning flags | 81 | # User C and User C++ warning flags |
82 | # | 82 | # |
@@ -167,6 +167,7 @@ TESTED_KBUILD_FLAGS := \ | |||
167 | $(call kernel-cc-option,-Wno-pointer-arith) \ | 167 | $(call kernel-cc-option,-Wno-pointer-arith) \ |
168 | $(call kernel-cc-option,-Wno-aggregate-return) \ | 168 | $(call kernel-cc-option,-Wno-aggregate-return) \ |
169 | $(call kernel-cc-option,-Wno-unused-but-set-variable) \ | 169 | $(call kernel-cc-option,-Wno-unused-but-set-variable) \ |
170 | $(call kernel-cc-option,-Wno-old-style-declaration) \ | ||
170 | $(call kernel-cc-optional-warning,-Wbad-function-cast) \ | 171 | $(call kernel-cc-optional-warning,-Wbad-function-cast) \ |
171 | $(call kernel-cc-optional-warning,-Wcast-qual) \ | 172 | $(call kernel-cc-optional-warning,-Wcast-qual) \ |
172 | $(call kernel-cc-optional-warning,-Wcast-align) \ | 173 | $(call kernel-cc-optional-warning,-Wcast-align) \ |
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/commands.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/commands.mk index 093bb1c..ab7a0e9 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/commands.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/commands.mk | |||
@@ -88,7 +88,7 @@ endef | |||
88 | define target-executable-from-o | 88 | define target-executable-from-o |
89 | $(if $(V),,@echo " LD " $(call relative-to-top,$@)) | 89 | $(if $(V),,@echo " LD " $(call relative-to-top,$@)) |
90 | $(CC) \ | 90 | $(CC) \ |
91 | $(SYS_EXE_LDFLAGS) $(MODULE_LDFLAGS) -o $@ \ | 91 | $(SYS_EXE_LDFLAGS) $(SYS_COMMON_LDFLAGS) $(MODULE_LDFLAGS) -o $@ \ |
92 | $(SYS_EXE_CRTBEGIN) $(sort $(MODULE_ALL_OBJECTS)) $(SYS_EXE_CRTEND) \ | 92 | $(SYS_EXE_CRTBEGIN) $(sort $(MODULE_ALL_OBJECTS)) $(SYS_EXE_CRTEND) \ |
93 | $(MODULE_LIBRARY_DIR_FLAGS) $(MODULE_LIBRARY_FLAGS) $(LIBGCC) | 93 | $(MODULE_LIBRARY_DIR_FLAGS) $(MODULE_LIBRARY_FLAGS) $(LIBGCC) |
94 | endef | 94 | endef |
@@ -96,7 +96,7 @@ endef | |||
96 | define target-executable-cxx-from-o | 96 | define target-executable-cxx-from-o |
97 | $(if $(V),,@echo " LD " $(call relative-to-top,$@)) | 97 | $(if $(V),,@echo " LD " $(call relative-to-top,$@)) |
98 | $(CXX) \ | 98 | $(CXX) \ |
99 | $(SYS_EXE_LDFLAGS_CXX) $(SYS_EXE_LDFLAGS) $(MODULE_LDFLAGS) -o $@ \ | 99 | $(SYS_EXE_LDFLAGS_CXX) $(SYS_EXE_LDFLAGS) $(SYS_COMMON_LDFLAGS) $(MODULE_LDFLAGS) -o $@ \ |
100 | $(SYS_EXE_CRTBEGIN) $(sort $(MODULE_ALL_OBJECTS)) $(SYS_EXE_CRTEND) \ | 100 | $(SYS_EXE_CRTBEGIN) $(sort $(MODULE_ALL_OBJECTS)) $(SYS_EXE_CRTEND) \ |
101 | $(MODULE_LIBRARY_DIR_FLAGS) $(MODULE_LIBRARY_FLAGS) $(LIBGCC) | 101 | $(MODULE_LIBRARY_DIR_FLAGS) $(MODULE_LIBRARY_FLAGS) $(LIBGCC) |
102 | endef | 102 | endef |
@@ -104,7 +104,7 @@ endef | |||
104 | define target-shared-library-from-o | 104 | define target-shared-library-from-o |
105 | $(if $(V),,@echo " LD " $(call relative-to-top,$@)) | 105 | $(if $(V),,@echo " LD " $(call relative-to-top,$@)) |
106 | $(CC) -shared -Wl,-Bsymbolic \ | 106 | $(CC) -shared -Wl,-Bsymbolic \ |
107 | $(SYS_LIB_LDFLAGS) $(MODULE_LDFLAGS) -o $@ \ | 107 | $(SYS_LIB_LDFLAGS) $(SYS_COMMON_LDFLAGS) $(MODULE_LDFLAGS) -o $@ \ |
108 | $(SYS_LIB_CRTBEGIN) $(sort $(MODULE_ALL_OBJECTS)) $(SYS_LIB_CRTEND) \ | 108 | $(SYS_LIB_CRTBEGIN) $(sort $(MODULE_ALL_OBJECTS)) $(SYS_LIB_CRTEND) \ |
109 | $(MODULE_LIBRARY_DIR_FLAGS) $(MODULE_LIBRARY_FLAGS) $(LIBGCC) | 109 | $(MODULE_LIBRARY_DIR_FLAGS) $(MODULE_LIBRARY_FLAGS) $(LIBGCC) |
110 | endef | 110 | endef |
@@ -114,7 +114,7 @@ endef | |||
114 | define target-shared-library-cxx-from-o | 114 | define target-shared-library-cxx-from-o |
115 | $(if $(V),,@echo " LD " $(call relative-to-top,$@)) | 115 | $(if $(V),,@echo " LD " $(call relative-to-top,$@)) |
116 | $(CXX) -shared -Wl,-Bsymbolic \ | 116 | $(CXX) -shared -Wl,-Bsymbolic \ |
117 | $(SYS_LIB_LDFLAGS_CXX) $(SYS_LIB_LDFLAGS) $(MODULE_LDFLAGS) -o $@ \ | 117 | $(SYS_LIB_LDFLAGS_CXX) $(SYS_LIB_LDFLAGS) $(SYS_COMMON_LDFLAGS) $(MODULE_LDFLAGS) -o $@ \ |
118 | $(SYS_LIB_CRTBEGIN) $(sort $(MODULE_ALL_OBJECTS)) $(SYS_LIB_CRTEND) \ | 118 | $(SYS_LIB_CRTBEGIN) $(sort $(MODULE_ALL_OBJECTS)) $(SYS_LIB_CRTEND) \ |
119 | $(MODULE_LIBRARY_DIR_FLAGS) $(MODULE_LIBRARY_FLAGS) $(LIBGCC) | 119 | $(MODULE_LIBRARY_DIR_FLAGS) $(MODULE_LIBRARY_FLAGS) $(LIBGCC) |
120 | endef | 120 | endef |
@@ -183,7 +183,11 @@ define make-directory | |||
183 | $(MKDIR) -p $@ | 183 | $(MKDIR) -p $@ |
184 | endef | 184 | endef |
185 | 185 | ||
186 | define check-exports-from-file | ||
187 | endef | ||
188 | |||
186 | define check-exports | 189 | define check-exports |
190 | $(call check-exports-from-file,$(if $1,$1,$(notdir $@).txt)) | ||
187 | endef | 191 | endef |
188 | 192 | ||
189 | # Programs used in recipes | 193 | # Programs used in recipes |
@@ -197,6 +201,7 @@ JAR ?= jar | |||
197 | JAVA ?= java | 201 | JAVA ?= java |
198 | JAVAC ?= javac | 202 | JAVAC ?= javac |
199 | ZIP ?= zip | 203 | ZIP ?= zip |
204 | PKG_CONFIG ?= pkg-config | ||
200 | 205 | ||
201 | ifeq ($(USE_CCACHE),1) | 206 | ifeq ($(USE_CCACHE),1) |
202 | CCACHE ?= ccache | 207 | CCACHE ?= ccache |
@@ -228,10 +233,10 @@ override CC := $(if $(V),,@)$(CCACHE) $(CC) | |||
228 | override CXX := $(if $(V),,@)$(CCACHE) $(CXX) | 233 | override CXX := $(if $(V),,@)$(CCACHE) $(CXX) |
229 | endif | 234 | endif |
230 | 235 | ||
231 | override AR := $(if $(V),,@)$(CROSS_COMPILE)ar | 236 | override AR := $(if $(V),,@)$(CROSS_COMPILE)ar |
232 | override BISON := $(if $(V),,@)$(BISON) | 237 | override BISON := $(if $(V),,@)$(BISON) |
233 | override BZIP2 := $(if $(V),,@)bzip2 -9 | 238 | override BZIP2 := $(if $(V),,@)bzip2 -9 |
234 | override CP := $(if $(V),,@)cp | 239 | override CP := $(if $(V),,@)cp |
235 | override ECHO := $(if $(V),,@)echo | 240 | override ECHO := $(if $(V),,@)echo |
236 | override FLEX := $(if $(V),,@)flex | 241 | override FLEX := $(if $(V),,@)flex |
237 | override GAWK := $(if $(V),,@)gawk | 242 | override GAWK := $(if $(V),,@)gawk |
@@ -244,13 +249,14 @@ override INSTALL := $(if $(V),,@)install | |||
244 | override JAR := $(if $(V),,@)$(JAR) | 249 | override JAR := $(if $(V),,@)$(JAR) |
245 | override JAVA := $(if $(V),,@)$(JAVA) | 250 | override JAVA := $(if $(V),,@)$(JAVA) |
246 | override JAVAC := $(if $(V),,@)$(JAVAC) | 251 | override JAVAC := $(if $(V),,@)$(JAVAC) |
247 | override M4 := $(if $(V),,@)m4 | 252 | override LN := $(if $(V),,@)ln -f |
253 | override M4 := $(if $(V),,@)m4 | ||
248 | override MKDIR := $(if $(V),,@)mkdir | 254 | override MKDIR := $(if $(V),,@)mkdir |
249 | override MV := $(if $(V),,@)mv | 255 | override MV := $(if $(V),,@)mv |
250 | override OBJCOPY := $(if $(V),,@)$(CROSS_COMPILE)objcopy | 256 | override OBJCOPY := $(if $(V),,@)$(CROSS_COMPILE)objcopy |
251 | override PDSASM := $(if $(V),,@)$(HOST_OUT)/pdsasm | 257 | override PDSASM := $(if $(V),,@)$(HOST_OUT)/pdsasm |
252 | override RANLIB := $(if $(V),,@)$(CROSS_COMPILE)ranlib | 258 | override RANLIB := $(if $(V),,@)$(CROSS_COMPILE)ranlib |
253 | override RM := $(if $(V),,@)rm -f | 259 | override RM := $(if $(V),,@)rm -f |
254 | override SED := $(if $(V),,@)sed | 260 | override SED := $(if $(V),,@)sed |
255 | override STRIP := $(if $(V),,@)$(CROSS_COMPILE)strip | 261 | override STRIP := $(if $(V),,@)$(CROSS_COMPILE)strip |
256 | override TAR := $(if $(V),,@)tar | 262 | override TAR := $(if $(V),,@)tar |
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/arch_common.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/arch_common.mk index d658679..bf3fe11 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/arch_common.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/arch_common.mk | |||
@@ -56,23 +56,40 @@ SYS_CFLAGS := \ | |||
56 | SYS_INCLUDES := \ | 56 | SYS_INCLUDES := \ |
57 | -isystem $(ANDROID_ROOT)/bionic/libc/arch-$(ANDROID_ARCH)/include \ | 57 | -isystem $(ANDROID_ROOT)/bionic/libc/arch-$(ANDROID_ARCH)/include \ |
58 | -isystem $(ANDROID_ROOT)/bionic/libc/include \ | 58 | -isystem $(ANDROID_ROOT)/bionic/libc/include \ |
59 | -isystem $(ANDROID_ROOT)/bionic/libc/kernel/common \ | 59 | -isystem $(ANDROID_ROOT)/bionic/libc/kernel/uapi \ |
60 | -isystem $(ANDROID_ROOT)/bionic/libc/kernel/arch-$(ANDROID_ARCH) \ | 60 | -isystem $(ANDROID_ROOT)/bionic/libc/kernel/uapi/asm-$(ANDROID_ARCH) \ |
61 | -isystem $(ANDROID_ROOT)/bionic/libm/include \ | 61 | -isystem $(ANDROID_ROOT)/bionic/libm/include \ |
62 | -isystem $(ANDROID_ROOT)/bionic/libm/include/$(ANDROID_ARCH) \ | 62 | -isystem $(ANDROID_ROOT)/bionic/libm/include/$(ANDROID_ARCH) \ |
63 | -isystem $(ANDROID_ROOT)/bionic/libthread_db/include \ | 63 | -isystem $(ANDROID_ROOT)/bionic/libthread_db/include \ |
64 | -isystem $(ANDROID_ROOT)/external/libunwind/include \ | ||
64 | -isystem $(ANDROID_ROOT)/frameworks/base/include \ | 65 | -isystem $(ANDROID_ROOT)/frameworks/base/include \ |
65 | -isystem $(ANDROID_ROOT)/system/core/include \ | ||
66 | -isystem $(ANDROID_ROOT)/hardware/libhardware/include \ | 66 | -isystem $(ANDROID_ROOT)/hardware/libhardware/include \ |
67 | -isystem $(ANDROID_ROOT)/external/openssl/include \ | 67 | -isystem $(ANDROID_ROOT)/hardware/libhardware_legacy/include \ |
68 | -isystem $(ANDROID_ROOT)/system/core/include \ | ||
69 | -isystem $(ANDROID_ROOT)/system/core/libsync/include \ | ||
68 | -isystem $(ANDROID_ROOT)/system/media/camera/include \ | 70 | -isystem $(ANDROID_ROOT)/system/media/camera/include \ |
69 | -isystem $(ANDROID_ROOT)/hardware/libhardware_legacy/include | 71 | -isystem $(ANDROID_ROOT)/external/libdrm \ |
72 | -isystem $(ANDROID_ROOT)/external/libdrm/include/drm | ||
73 | |||
74 | ifneq ($(wildcard $(ANDROID_ROOT)/external/boringssl/src/include),) | ||
75 | SYS_INCLUDES += \ | ||
76 | -isystem $(ANDROID_ROOT)/external/boringssl/src/include | ||
77 | else | ||
78 | SYS_INCLUDES += \ | ||
79 | -isystem $(ANDROID_ROOT)/external/openssl/include | ||
80 | endif | ||
81 | |||
82 | # Obsolete libc includes | ||
83 | SYS_INCLUDES += \ | ||
84 | -isystem $(ANDROID_ROOT)/bionic/libc/kernel/common \ | ||
85 | -isystem $(ANDROID_ROOT)/bionic/libc/kernel/arch-$(ANDROID_ARCH) | ||
70 | 86 | ||
71 | # This is comparing PVR_BUILD_DIR to see if it is omap and adding | 87 | # This is comparing PVR_BUILD_DIR to see if it is omap and adding |
72 | # includes required for it's HWC | 88 | # includes required for it's HWC |
73 | ifeq ($(notdir $(abspath .)),omap_android) | 89 | ifeq ($(notdir $(abspath .)),omap_android) |
74 | SYS_INCLUDES += \ | 90 | SYS_INCLUDES += \ |
75 | -isystem $(ANDROID_ROOT)/hardware/ti/omap4xxx/kernel-headers | 91 | -isystem $(ANDROID_ROOT)/hardware/ti/omap4xxx/kernel-headers \ |
92 | -isystem $(ANDROID_ROOT)/hardware/ti/omap4xxx/ion | ||
76 | endif | 93 | endif |
77 | 94 | ||
78 | ifeq ($(_CLANG),true) | 95 | ifeq ($(_CLANG),true) |
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/extra_config.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/extra_config.mk index bb47c8d..b8b97e2 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/extra_config.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/extra_config.mk | |||
@@ -39,8 +39,14 @@ | |||
39 | ### ########################################################################### | 39 | ### ########################################################################### |
40 | 40 | ||
41 | 41 | ||
42 | $(eval $(call BothConfigC,ANDROID,)) | 42 | # On versions of Android prior to L, remap the use of libc++ to a combination |
43 | # of stlport and libstdc++. Not every module written in C++ in the DDK needs | ||
44 | # the STL, but linking it should be harmless (and most modules do need it). | ||
45 | ifneq ($(is_at_least_lollipop),1) | ||
46 | endif | ||
47 | |||
43 | 48 | ||
49 | $(eval $(call BothConfigC,ANDROID,)) | ||
44 | 50 | ||
45 | 51 | ||
46 | 52 | ||
@@ -51,4 +57,15 @@ $(eval $(call TunableBothConfigMake,SUPPORT_PVRSRV_ANDROID_SYSTRACE,)) | |||
51 | $(eval $(call TunableBothConfigMake,PVR_ANDROID_NATIVE_WINDOW_HAS_SYNC,)) | 57 | $(eval $(call TunableBothConfigMake,PVR_ANDROID_NATIVE_WINDOW_HAS_SYNC,)) |
52 | $(eval $(call TunableBothConfigC,PVR_ANDROID_NATIVE_WINDOW_HAS_SYNC,)) | 58 | $(eval $(call TunableBothConfigC,PVR_ANDROID_NATIVE_WINDOW_HAS_SYNC,)) |
53 | 59 | ||
60 | ifeq ($(NO_HARDWARE),1) | ||
61 | override PVR_ANDROID_COMPOSERHAL := null | ||
62 | endif | ||
63 | |||
64 | ifneq ($(PVR_ANDROID_COMPOSERHAL),drm) | ||
65 | ifneq ($(SUPPORT_PVRSRV_DEVICE_CLASS),1) | ||
66 | override PVR_ANDROID_COMPOSERHAL := null | ||
67 | endif | ||
68 | endif | ||
69 | |||
70 | |||
54 | include ../common/ion.mk | 71 | include ../common/ion.mk |
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/features.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/features.mk index 7697f13..68e8132 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/features.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/features.mk | |||
@@ -44,6 +44,7 @@ include ../common/android/platform_version.mk | |||
44 | # | 44 | # |
45 | SUPPORT_ANDROID_PLATFORM := 1 | 45 | SUPPORT_ANDROID_PLATFORM := 1 |
46 | SUPPORT_OPENGLES1_V1_ONLY := 1 | 46 | SUPPORT_OPENGLES1_V1_ONLY := 1 |
47 | DONT_USE_SONAMES := 1 | ||
47 | 48 | ||
48 | # Meminfo IDs are required for buffer stamps | 49 | # Meminfo IDs are required for buffer stamps |
49 | # | 50 | # |
@@ -51,8 +52,8 @@ SUPPORT_MEMINFO_IDS := 1 | |||
51 | 52 | ||
52 | # Enable services ion support by default | 53 | # Enable services ion support by default |
53 | # | 54 | # |
54 | SUPPORT_ION := 0 | 55 | SUPPORT_ION ?= 0 |
55 | SUPPORT_DRM_GEM := 1 | 56 | SUPPORT_DMABUF := 1 |
56 | 57 | ||
57 | # Need multi-process support in PDUMP | 58 | # Need multi-process support in PDUMP |
58 | # | 59 | # |
@@ -101,6 +102,14 @@ SUPPORT_LARGE_GENERAL_HEAP := 1 | |||
101 | # | 102 | # |
102 | PVR_LINUX_MEM_AREA_POOL_MAX_PAGES ?= 5400 | 103 | PVR_LINUX_MEM_AREA_POOL_MAX_PAGES ?= 5400 |
103 | 104 | ||
105 | # Unless overridden by the user, assume the RenderScript Compute API level | ||
106 | # matches that of the SDK API_LEVEL. | ||
107 | # | ||
108 | RSC_API_LEVEL ?= $(API_LEVEL) | ||
109 | ifneq ($(findstring $(RSC_API_LEVEL),21 22),) | ||
110 | RSC_API_LEVEL := 20 | ||
111 | endif | ||
112 | |||
104 | ############################################################################## | 113 | ############################################################################## |
105 | # Framebuffer target extension is used to find configs compatible with | 114 | # Framebuffer target extension is used to find configs compatible with |
106 | # the framebuffer (added in JB MR1). | 115 | # the framebuffer (added in JB MR1). |
@@ -112,18 +121,10 @@ EGL_EXTENSION_ANDROID_FRAMEBUFFER_TARGET := 1 | |||
112 | # | 121 | # |
113 | UNITTEST_INCLUDES := \ | 122 | UNITTEST_INCLUDES := \ |
114 | eurasiacon/android \ | 123 | eurasiacon/android \ |
115 | $(ANDROID_ROOT)/frameworks/base/native/include | 124 | $(ANDROID_ROOT)/frameworks/base/native/include \ |
116 | |||
117 | ifeq ($(is_at_least_jellybean),1) | ||
118 | UNITTEST_INCLUDES += \ | ||
119 | $(ANDROID_ROOT)/frameworks/native/include \ | 125 | $(ANDROID_ROOT)/frameworks/native/include \ |
120 | $(ANDROID_ROOT)/frameworks/native/opengl/include \ | 126 | $(ANDROID_ROOT)/frameworks/native/opengl/include \ |
121 | $(ANDROID_ROOT)/libnativehelper/include/nativehelper | 127 | $(ANDROID_ROOT)/libnativehelper/include/nativehelper |
122 | else | ||
123 | UNITTEST_INCLUDES += \ | ||
124 | $(ANDROID_ROOT)/frameworks/base/opengl/include \ | ||
125 | $(ANDROID_ROOT)/dalvik/libnativehelper/include/nativehelper | ||
126 | endif | ||
127 | 128 | ||
128 | # But it doesn't have OpenVG headers | 129 | # But it doesn't have OpenVG headers |
129 | # | 130 | # |
@@ -140,12 +141,21 @@ DEMO_DESTDIR := /system/vendor/bin | |||
140 | EGL_DESTDIR := $(SHLIB_DESTDIR)/egl | 141 | EGL_DESTDIR := $(SHLIB_DESTDIR)/egl |
141 | 142 | ||
142 | ############################################################################## | 143 | ############################################################################## |
143 | # We can support OpenCL in the build since Froyo (stlport was added in 2.2) | 144 | # In K and older, augment the libstdc++ includes with stlport includes. Any |
145 | # part of the C++ library not implemented by stlport will be handled by | ||
146 | # linking in libstdc++ too (see extra_config.mk). | ||
147 | # | ||
148 | # On L and newer, don't use stlport OR libstdc++ at all; just use libc++. | ||
144 | # | 149 | # |
145 | SYS_CXXFLAGS := -fuse-cxa-atexit $(SYS_CFLAGS) | 150 | SYS_CXXFLAGS := -fuse-cxa-atexit $(SYS_CFLAGS) |
151 | ifeq ($(is_at_least_lollipop),1) | ||
152 | SYS_INCLUDES += \ | ||
153 | -isystem $(ANDROID_ROOT)/external/libcxx/include | ||
154 | else | ||
146 | SYS_INCLUDES += \ | 155 | SYS_INCLUDES += \ |
147 | -isystem $(ANDROID_ROOT)/bionic \ | 156 | -isystem $(ANDROID_ROOT)/bionic \ |
148 | -isystem $(ANDROID_ROOT)/external/stlport/stlport | 157 | -isystem $(ANDROID_ROOT)/external/stlport/stlport |
158 | endif | ||
149 | 159 | ||
150 | ############################################################################## | 160 | ############################################################################## |
151 | # Support the OES_EGL_image_external extensions in the client drivers. | 161 | # Support the OES_EGL_image_external extensions in the client drivers. |
@@ -167,122 +177,79 @@ EGL_EXTENSION_ANDROID_RECORDABLE := 1 | |||
167 | EGL_EXTENSION_ANDROID_BLOB_CACHE := 1 | 177 | EGL_EXTENSION_ANDROID_BLOB_CACHE := 1 |
168 | 178 | ||
169 | ############################################################################## | 179 | ############################################################################## |
170 | # ICS and earlier should rate-limit composition by waiting for 3D renders | ||
171 | # to complete in the compositor's eglSwapBuffers(). | ||
172 | # | ||
173 | ifeq ($(is_at_least_jellybean),0) | ||
174 | PVR_ANDROID_COMPOSITOR_WAIT_FOR_RENDER := 1 | ||
175 | endif | ||
176 | |||
177 | ############################################################################## | ||
178 | # JB added a new corkscrew API for userland backtracing. | 180 | # JB added a new corkscrew API for userland backtracing. |
179 | # | 181 | # |
180 | ifeq ($(is_at_least_jellybean),1) | 182 | ifeq ($(is_at_least_lollipop),0) |
181 | PVR_ANDROID_HAS_CORKSCREW_API := 1 | 183 | PVR_ANDROID_HAS_CORKSCREW_API := 1 |
182 | endif | 184 | endif |
183 | 185 | ||
184 | ############################################################################## | 186 | ############################################################################## |
185 | # JB MR1 makes the framebuffer HAL obsolete. | ||
186 | # | ||
187 | # We also need to support IMPLEMENTATION_DEFINED so gralloc allocates | ||
188 | # framebuffers and GPU buffers in a 'preferred' format. | ||
189 | # | ||
190 | ifeq ($(is_at_least_jellybean_mr1),0) | ||
191 | SUPPORT_ANDROID_FRAMEBUFFER_HAL := 1 | ||
192 | else | ||
193 | PVR_ANDROID_HAS_HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED := 1 | ||
194 | endif | ||
195 | |||
196 | ############################################################################## | ||
197 | # JB MR1 introduces cross-process syncs associated with a fd. | 187 | # JB MR1 introduces cross-process syncs associated with a fd. |
198 | # This requires a new enough kernel version to have the base/sync driver. | 188 | # This requires a new enough kernel version to have the base/sync driver. |
199 | # | 189 | # |
200 | ifeq ($(is_at_least_jellybean_mr1),1) | 190 | EGL_EXTENSION_ANDROID_NATIVE_FENCE_SYNC ?= 1 |
201 | EGL_EXTENSION_ANDROID_NATIVE_FENCE_SYNC := 0 | 191 | PVR_ANDROID_NATIVE_WINDOW_HAS_SYNC ?= 1 |
202 | PVR_ANDROID_NATIVE_WINDOW_HAS_SYNC := 0 | ||
203 | endif | ||
204 | 192 | ||
205 | ############################################################################## | 193 | ############################################################################## |
206 | # JB MR1 introduces new usage bits for the camera HAL and some new formats. | 194 | # Versions of Android between Cupcake and KitKat MR1 required Java 6. |
207 | # | 195 | # |
208 | ifeq ($(is_at_least_jellybean_mr1),1) | 196 | ifeq ($(is_at_least_lollipop),0) |
209 | PVR_ANDROID_HAS_GRALLOC_USAGE_HW_CAMERA := 1 | 197 | LEGACY_USE_JAVA6 ?= 1 |
210 | PVR_ANDROID_HAS_HAL_PIXEL_FORMAT_RAW_SENSOR := 1 | ||
211 | PVR_ANDROID_HAS_HAL_PIXEL_FORMAT_BLOB := 1 | ||
212 | endif | 198 | endif |
213 | 199 | ||
214 | ############################################################################## | 200 | ############################################################################## |
215 | # JB MR2 adds a new graphics HAL (gralloc) API function, lock_ycbcr(), and | 201 | # Versions of Android between ICS and KitKat MR1 used ion .heap_mask instead |
216 | # a so-called "flexible" YUV format enum. | 202 | # of .heap_id_mask. |
217 | # | 203 | # |
218 | ifeq ($(is_at_least_jellybean_mr2),1) | 204 | ifeq ($(is_at_least_lollipop),0) |
219 | PVR_ANDROID_HAS_HAL_PIXEL_FORMAT_YCbCr_420_888 := 1 | 205 | PVR_ANDROID_HAS_ION_FIELD_HEAP_MASK := 1 |
220 | PVR_ANDROID_GRALLOC_HAS_0_2_FEATURES := 1 | ||
221 | endif | 206 | endif |
222 | 207 | ||
223 | ############################################################################## | 208 | ############################################################################## |
224 | # In JB MR2 we can use a native helper library for the unittest wrapper. | 209 | # Lollipop supports 64-bit. Configure BCC to emit both 32-bit and 64-bit LLVM |
225 | # In earlier versions, we must use a less ideal approach. | 210 | # bitcode in the renderscript driver. |
226 | # | ||
227 | ifeq ($(is_at_least_jellybean_mr2),0) | ||
228 | PVR_ANDROID_SURFACE_FIELD_NAME := \"mNativeSurface\" | ||
229 | endif | ||
230 | |||
231 | ############################################################################## | ||
232 | # JB MR2 introduces two new camera HAL formats (Y8, Y16) | ||
233 | # | ||
234 | ifeq ($(is_at_least_jellybean_mr2),1) | ||
235 | PVR_ANDROID_HAS_HAL_PIXEL_FORMAT_Y8 := 1 | ||
236 | PVR_ANDROID_HAS_HAL_PIXEL_FORMAT_Y16 := 1 | ||
237 | endif | ||
238 | |||
239 | ############################################################################## | ||
240 | # KK's EGL wrapper remaps EGLConfigs in the BGRA and BGRX formats to RGBA and | ||
241 | # RGBX respectively, for CpuConsumer compatibility. It does this because the | ||
242 | # usage bits for the gralloc allocation are not available to EGL. | ||
243 | # | ||
244 | # In this newer platform version, gralloc has been redefined to allow the | ||
245 | # 'format' parameter to gralloc->alloc() to be ignored for non-USAGE_SW | ||
246 | # allocations, so long as the bits per channel and sRGB-ness are preserved. | ||
247 | # | 211 | # |
248 | ifeq ($(is_at_least_kitkat),1) | 212 | ifeq ($(is_at_least_lollipop),1) |
249 | PVR_ANDROID_REMAP_HW_ONLY_PIXEL_FORMATS := 1 | 213 | PVR_ANDROID_BCC_MULTIARCH_SUPPORT := 1 |
250 | endif | 214 | endif |
251 | 215 | ||
252 | ############################################################################## | 216 | ############################################################################## |
253 | # Support newer HWC features in KK | 217 | # Lollipop annotates the cursor allocation with USAGE_CURSOR to enable it to |
218 | # be accelerated with special cursor hardware (rather than wasting an | ||
219 | # overlay). This flag stops the DDK from blocking the allocation. | ||
254 | # | 220 | # |
255 | ifeq ($(is_at_least_kitkat),1) | 221 | ifeq ($(is_at_least_lollipop),1) |
256 | PVR_ANDROID_HWC_HAS_1_3_FEATURES := 1 | 222 | PVR_ANDROID_HAS_GRALLOC_USAGE_CURSOR := 1 |
257 | endif | 223 | endif |
258 | 224 | ||
259 | ############################################################################## | 225 | ############################################################################## |
260 | # KK eliminated egl.cfg. Only create for older versions. | 226 | # Lollipop changed the camera HAL metadata specification to require that |
227 | # CONTROL_MAX_REGIONS specifies 3 integers (instead of 1). | ||
261 | # | 228 | # |
262 | ifeq ($(is_at_least_kitkat),0) | 229 | ifeq ($(is_at_least_lollipop),1) |
263 | PVR_ANDROID_HAS_EGL_CFG := 1 | 230 | PVR_ANDROID_CAMERA_CONTROL_MAX_REGIONS_HAS_THREE := 1 |
264 | endif | 231 | endif |
265 | 232 | ||
266 | ############################################################################## | 233 | ############################################################################## |
267 | # KK has a bug in its browser that we need to work around. | 234 | # Marshmallow needs --soname turned on |
268 | # | 235 | # |
269 | ifeq ($(is_at_least_kitkat),1) | 236 | ifeq ($(is_at_least_marshmallow),1) |
270 | PVR_ANDROID_RELAX_GRALLOC_MODULE_MAP_CHECKS := 1 | 237 | PVR_ANDROID_NEEDS_SONAME ?= 1 |
271 | endif | 238 | endif |
272 | 239 | ||
273 | ############################################################################## | 240 | ############################################################################## |
274 | # KK's Camera HAL requires that ACTIVE_ARRAY_SIZE specify xmin/ymin first | 241 | # Marshmallow replaces RAW_SENSOR with RAW10, RAW12 and RAW16 |
275 | # | 242 | # |
276 | ifeq ($(is_at_least_kitkat),1) | 243 | ifeq ($(is_at_least_marshmallow),1) |
277 | PVR_ANDROID_CAMERA_ACTIVE_ARRAY_SIZE_HAS_XMIN_YMIN := 1 | 244 | PVR_ANDROID_HAS_HAL_PIXEL_FORMAT_RAWxx := 1 |
278 | endif | 245 | endif |
279 | 246 | ||
280 | ############################################################################## | 247 | ############################################################################## |
281 | # KitKat added a new memory tracking HAL. This enables gralloc support for | 248 | # Marshmallow onwards DDK stopped render script accleration using GPU. |
282 | # the GRAPHICS/GL memtrack types. | 249 | # This flag stops device alloction. |
283 | # | 250 | # |
284 | ifeq ($(is_at_least_kitkat),1) | 251 | ifeq ($(is_at_least_marshmallow),1) |
285 | SUPPORT_ANDROID_MEMTRACK_HAL := 1 | 252 | PVR_ANDROID_HAS_GRALLOC_USAGE_RENDERSCRIPT := 1 |
286 | endif | 253 | endif |
287 | 254 | ||
288 | # Placeholder for future version handling | 255 | # Placeholder for future version handling |
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/paths.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/paths.mk index 9717ca9..4309c72 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/paths.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/paths.mk | |||
@@ -54,4 +54,4 @@ endif | |||
54 | TOOLCHAIN ?= $(TARGET_ROOT)/product/$(TARGET_DEVICE)/obj | 54 | TOOLCHAIN ?= $(TARGET_ROOT)/product/$(TARGET_DEVICE)/obj |
55 | TOOLCHAIN2 ?= $(TARGET_ROOT)/product/$(TARGET_DEVICE)/system | 55 | TOOLCHAIN2 ?= $(TARGET_ROOT)/product/$(TARGET_DEVICE)/system |
56 | 56 | ||
57 | LIBGCC := $(shell $(CROSS_COMPILE)gcc -print-libgcc-file-name) | 57 | LIBGCC := $(shell $(CROSS_COMPILE)gcc -m32 -print-libgcc-file-name 2>/dev/null) |
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/platform_version.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/platform_version.mk index bf43dda..f2a5600 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/platform_version.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/platform_version.mk | |||
@@ -38,95 +38,117 @@ | |||
38 | # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 38 | # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
39 | ### ########################################################################### | 39 | ### ########################################################################### |
40 | 40 | ||
41 | # Figure out the version of Android we're building against. | 41 | # If there's no build.prop file in the expected location, bail out. Tell the |
42 | # user which file we were trying to read in case TARGET_DEVICE was not set. | ||
42 | # | 43 | # |
43 | PLATFORM_VERSION := $(shell \ | 44 | BUILD_PROP := $(TARGET_ROOT)/product/$(TARGET_DEVICE)/system/build.prop |
44 | if [ -f $(TARGET_ROOT)/product/$(TARGET_DEVICE)/system/build.prop ]; then \ | 45 | ifeq ($(wildcard $(BUILD_PROP)),) |
45 | cat $(TARGET_ROOT)/product/$(TARGET_DEVICE)/system/build.prop | \ | 46 | $(warning *** Could not determine Android version. Did you set ANDROID_ROOT,\ |
46 | grep ^ro.build.version.release | cut -f2 -d'=' | cut -f1 -d'-'; \ | 47 | OUT_DIR and TARGET_DEVICE in your environment correctly?) |
47 | else \ | 48 | $(error Error reading $(BUILD_PROP)) |
48 | echo 5.0; \ | 49 | endif |
49 | fi) | 50 | |
51 | # Extract version.release and version.codename from the build.prop file. | ||
52 | # If either of the values aren't in the build.prop, the Make variables won't | ||
53 | # be defined, and fallback handling will take place. | ||
54 | # | ||
55 | define newline | ||
56 | |||
57 | |||
58 | endef | ||
59 | $(eval $(subst #,$(newline),$(shell cat $(BUILD_PROP) | \ | ||
60 | grep '^ro.build.version.release=\|^ro.build.version.codename=' | \ | ||
61 | sed -e 's,ro.build.version.release=,PLATFORM_RELEASE=,' \ | ||
62 | -e 's,ro.build.version.codename=,PLATFORM_CODENAME=,' | tr '\n' '#'))) | ||
50 | 63 | ||
51 | define version-starts-with | 64 | define release-starts-with |
52 | $(shell echo $(PLATFORM_VERSION) | grep -q ^$(1); \ | 65 | $(shell echo $(PLATFORM_RELEASE) | grep -q ^$(1); \ |
53 | [ "$$?" = "0" ] && echo 1 || echo 0) | 66 | [ "$$?" = "0" ] && echo 1 || echo 0) |
54 | endef | 67 | endef |
55 | 68 | ||
56 | # ro.build.version.release contains the version number for release builds, or | 69 | # ro.build.version.release contains the version number for release builds, or |
57 | # the version codename otherwise. In this case we need to assume that the | 70 | # the version codename otherwise. In this case we need to assume that the |
58 | # version of Android we're building against has the features that are in the | 71 | # version of Android we're building against has the features that are in the |
59 | # final release of that version, so we set PLATFORM_VERSION to the | 72 | # final release of that version, so we set PLATFORM_RELEASE to the |
60 | # corresponding release number. | 73 | # corresponding release number. |
61 | # | 74 | # |
62 | # NOTE: It's the _string_ ordering that matters here, not the version number | 75 | # NOTE: It's the _string_ ordering that matters here, not the version number |
63 | # ordering. You need to make sure that strings that are sub-strings of other | 76 | # ordering. You need to make sure that strings that are sub-strings of other |
64 | # checked strings appear _later_ in this list. | 77 | # checked strings appear _later_ in this list. |
65 | # | 78 | # |
66 | # e.g. 'JellyBeanMR' starts with 'JellyBean', but it is not JellyBean. | 79 | # e.g. 'KitKatMR' starts with 'KitKat', but it is not KitKat. |
80 | # | ||
81 | # NOTE: The version codenames for Android stopped after KitKat, don't read | ||
82 | # too much into the below names. They are mostly placeholders/reminders. | ||
83 | # | ||
84 | ifeq ($(call release-starts-with,KitKatMR),1) | ||
85 | PLATFORM_RELEASE := 4.4.1 | ||
86 | else ifeq ($(call release-starts-with,KitKat),1) | ||
87 | PLATFORM_RELEASE := 4.4 | ||
88 | else ifeq ($(call release-starts-with,LollipopMR1),1) | ||
89 | PLATFORM_RELEASE := 5.1 | ||
90 | else ifeq ($(call release-starts-with,Lollipop),1) | ||
91 | PLATFORM_RELEASE := 5.0 | ||
92 | else ifeq ($(call release-starts-with,Marshmallow),1) | ||
93 | PLATFORM_RELEASE := 6.0 | ||
94 | else ifeq ($(PLATFORM_CODENAME),AOSP) | ||
95 | # AOSP (master) will normally have PLATFORM_CODENAME set to AOSP | ||
96 | PLATFORM_RELEASE := 6.0.60 | ||
97 | else ifeq ($(shell echo $(PLATFORM_RELEASE) | grep -qE "[A-Za-z]+"; echo $$?),0) | ||
98 | PLATFORM_RELEASE := 6.1 | ||
99 | endif | ||
100 | |||
101 | # Workaround for master. Sometimes there is an AOSP version ahead of | ||
102 | # the current master version number, but master still has more features. | ||
67 | # | 103 | # |
68 | ifeq ($(call version-starts-with,JellyBeanMR1),1) | 104 | ifeq ($(PLATFORM_RELEASE),6.0.60) |
69 | PLATFORM_VERSION := 4.2 | 105 | PLATFORM_RELEASE := 6.1 |
70 | else ifeq ($(call version-starts-with,JellyBeanMR),1) | 106 | is_aosp_master := 1 |
71 | PLATFORM_VERSION := 4.3 | ||
72 | else ifeq ($(call version-starts-with,JellyBean),1) | ||
73 | PLATFORM_VERSION := 4.1 | ||
74 | else ifeq ($(call version-starts-with,KeyLimePie),1) | ||
75 | PLATFORM_VERSION := 4.4 | ||
76 | else ifeq ($(call version-starts-with,KitKat),1) | ||
77 | PLATFORM_VERSION := 4.4 | ||
78 | else ifeq ($(shell echo $(PLATFORM_VERSION) | grep -qE "[A-Za-z]+"; echo $$?),0) | ||
79 | PLATFORM_VERSION := 5.0 | ||
80 | endif | 107 | endif |
81 | 108 | ||
82 | PLATFORM_VERSION_MAJ := $(shell echo $(PLATFORM_VERSION) | cut -f1 -d'.') | 109 | PLATFORM_RELEASE_MAJ := $(shell echo $(PLATFORM_RELEASE) | cut -f1 -d'.') |
83 | PLATFORM_VERSION_MIN := $(shell echo $(PLATFORM_VERSION) | cut -f2 -d'.') | 110 | PLATFORM_RELEASE_MIN := $(shell echo $(PLATFORM_RELEASE) | cut -f2 -d'.') |
84 | PLATFORM_VERSION_PATCH := $(shell echo $(PLATFORM_VERSION) | cut -f3 -d'.') | 111 | PLATFORM_RELEASE_PATCH := $(shell echo $(PLATFORM_RELEASE) | cut -f3 -d'.') |
85 | 112 | ||
86 | # Not all versions have a patchlevel; fix that up here | 113 | # Not all versions have a patchlevel; fix that up here |
87 | # | 114 | # |
88 | ifeq ($(PLATFORM_VERSION_PATCH),) | 115 | ifeq ($(PLATFORM_RELEASE_PATCH),) |
89 | PLATFORM_VERSION_PATCH := 0 | 116 | PLATFORM_RELEASE_PATCH := 0 |
90 | endif | 117 | endif |
91 | 118 | ||
92 | # Macros to help categorize support for features and API_LEVEL for tests. | 119 | # Macros to help categorize support for features and API_LEVEL for tests. |
93 | # | 120 | # |
94 | is_at_least_jellybean := \ | 121 | is_at_least_lollipop := \ |
95 | $(shell ( test $(PLATFORM_VERSION_MAJ) -gt 4 || \ | 122 | $(shell ( test $(PLATFORM_RELEASE_MAJ) -ge 5 ) && echo 1 || echo 0) |
96 | ( test $(PLATFORM_VERSION_MAJ) -eq 4 && \ | 123 | is_at_least_lollipop_mr1 := \ |
97 | test $(PLATFORM_VERSION_MIN) -ge 1 ) ) && echo 1 || echo 0) | 124 | $(shell ( test $(PLATFORM_RELEASE_MAJ) -gt 5 || \ |
98 | is_at_least_jellybean_mr1 := \ | 125 | ( test $(PLATFORM_RELEASE_MAJ) -eq 5 && \ |
99 | $(shell ( test $(PLATFORM_VERSION_MAJ) -gt 4 || \ | 126 | test $(PLATFORM_RELEASE_MIN) -gt 0 ) ) && echo 1 || echo 0) |
100 | ( test $(PLATFORM_VERSION_MAJ) -eq 4 && \ | 127 | is_at_least_marshmallow := \ |
101 | test $(PLATFORM_VERSION_MIN) -ge 2 ) ) && echo 1 || echo 0) | 128 | $(shell ( test $(PLATFORM_RELEASE_MAJ) -ge 6 ) && echo 1 || echo 0) |
102 | is_at_least_jellybean_mr2 := \ | ||
103 | $(shell ( test $(PLATFORM_VERSION_MAJ) -gt 4 || \ | ||
104 | ( test $(PLATFORM_VERSION_MAJ) -eq 4 && \ | ||
105 | test $(PLATFORM_VERSION_MIN) -ge 3 ) ) && echo 1 || echo 0) | ||
106 | is_at_least_kitkat := \ | ||
107 | $(shell ( test $(PLATFORM_VERSION_MAJ) -gt 4 || \ | ||
108 | ( test $(PLATFORM_VERSION_MAJ) -eq 4 && \ | ||
109 | test $(PLATFORM_VERSION_MIN) -ge 4 ) ) && echo 1 || echo 0) | ||
110 | 129 | ||
111 | # FIXME: Assume "future versions" are >=5.0, but we don't really know | 130 | # Assume "future versions" are >6.0, but we don't really know |
112 | is_future_version := \ | 131 | is_future_version := \ |
113 | $(shell ( test $(PLATFORM_VERSION_MAJ) -ge 5 ) && echo 1 || echo 0) | 132 | $(shell ( test $(PLATFORM_RELEASE_MAJ) -gt 6 || \ |
133 | ( test $(PLATFORM_RELEASE_MAJ) -eq 6 && \ | ||
134 | test $(PLATFORM_RELEASE_MIN) -gt 0 ) ) && echo 1 || echo 0) | ||
114 | 135 | ||
115 | # Picking an exact match of API_LEVEL for the platform we're building | 136 | # Picking an exact match of API_LEVEL for the platform we're building |
116 | # against can avoid compatibility theming and affords better integration. | 137 | # against can avoid compatibility theming and affords better integration. |
117 | # | 138 | # |
118 | ifeq ($(is_future_version),1) | 139 | ifeq ($(is_future_version),1) |
119 | API_LEVEL := 20 | 140 | API_LEVEL := 23 |
141 | else ifeq ($(is_at_least_marshmallow),1) | ||
142 | API_LEVEL := 23 | ||
143 | else ifeq ($(is_at_least_lollipop_mr1),1) | ||
144 | API_LEVEL := 22 | ||
145 | else ifeq ($(is_at_least_lollipop),1) | ||
146 | API_LEVEL := 21 | ||
147 | #API_LEVEL := 20 was l-preview | ||
120 | else ifeq ($(is_at_least_kitkat),1) | 148 | else ifeq ($(is_at_least_kitkat),1) |
121 | API_LEVEL := 19 | 149 | API_LEVEL := 19 |
122 | else ifeq ($(is_at_least_jellybean_mr2),1) | ||
123 | API_LEVEL := 18 | ||
124 | else ifeq ($(is_at_least_jellybean_mr1),1) | ||
125 | API_LEVEL := 17 | ||
126 | else ifeq ($(is_at_least_jellybean),1) | ||
127 | API_LEVEL := 16 | ||
128 | else | 150 | else |
129 | $(error Must build against Android >= 4.1) | 151 | $(error Must build against Android >= 4.4) |
130 | endif | 152 | endif |
131 | 153 | ||
132 | # Each DDK is tested against only a single version of the platform. | 154 | # Each DDK is tested against only a single version of the platform. |
@@ -134,6 +156,6 @@ endif | |||
134 | # | 156 | # |
135 | ifeq ($(is_future_version),1) | 157 | ifeq ($(is_future_version),1) |
136 | $(info WARNING: Android version is newer than this DDK supports) | 158 | $(info WARNING: Android version is newer than this DDK supports) |
137 | else ifneq ($(is_at_least_jellybean_mr2),1) | 159 | else ifneq ($(is_at_least_lollipop_mr1),1) |
138 | $(info WARNING: Android version is older than this DDK supports) | 160 | $(info WARNING: Android version is older than this DDK supports) |
139 | endif | 161 | endif |
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/apis/xorg.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/apis/xorg.mk index c779e9d..cdcabd9 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/apis/xorg.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/apis/xorg.mk | |||
@@ -39,9 +39,17 @@ | |||
39 | # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 39 | # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
40 | ### ########################################################################### | 40 | ### ########################################################################### |
41 | 41 | ||
42 | ifeq ($(filter xorg,$(EXCLUDED_APIS)),) | 42 | ifeq ($(WINDOW_SYSTEM),xorg) |
43 | COMPONENTS += xorg pvr_conf pvr_video wsegl_dri2_linux | 43 | SUPPORT_BUILD_LWS := 1 |
44 | -include ../common/apis/xorg_opengl.mk | 44 | COMPONENTS += libudev_stubs |
45 | ifeq ($(PVR_LWS_NODC),1) | ||
46 | COMPONENTS += xorg pvr_conf pvr_video lws_pkgconfig pvr_dri | ||
47 | else | ||
48 | COMPONENTS += xorg pvr_conf pvr_video wsegl_dri2_linux | ||
49 | ifeq ($(filter opengl,$(EXCLUDED_APIS)),) | ||
50 | COMPONENTS += pvr_dri | ||
51 | endif | ||
52 | endif | ||
45 | ifeq ($(SUPPORT_PVR_REMOTE),1) | 53 | ifeq ($(SUPPORT_PVR_REMOTE),1) |
46 | COMPONENTS += pvr_input | 54 | COMPONENTS += pvr_input |
47 | endif | 55 | endif |
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/dridrm.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/dridrm.mk index 4097e7a..b6f945f 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/dridrm.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/dridrm.mk | |||
@@ -59,3 +59,20 @@ $(eval $(call TunableBothConfigMake,PVR_DRI_DRM_NOT_PCI)) | |||
59 | 59 | ||
60 | $(eval $(call TunableKernelConfigC,PVR_DRI_DRM_PLATFORM_DEV,)) | 60 | $(eval $(call TunableKernelConfigC,PVR_DRI_DRM_PLATFORM_DEV,)) |
61 | 61 | ||
62 | |||
63 | |||
64 | ifeq ($(SUPPORT_DRI_DRM_PLUGIN),1) | ||
65 | PVR_DRI_CLIENT_DRIVER := pvrsrvkm | ||
66 | else | ||
67 | # The X and Wayland window systems derive the client driver name from a | ||
68 | # display driver DRM device node. The Surfaceless window system derives it | ||
69 | # from a render node. | ||
70 | ifeq ($(WINDOW_SYSTEM),surfaceless) | ||
71 | PVR_DRI_CLIENT_DRIVER := pvr | ||
72 | else | ||
73 | PVR_DRI_CLIENT_DRIVER := $(if $(PVR_DRM_MODESET_DRIVER_NAME),$(PVR_DRM_MODESET_DRIVER_NAME),pvr) | ||
74 | endif | ||
75 | endif | ||
76 | |||
77 | PVR_DRI_GET_EXTENSIONS_ENTRY_POINT := __driDriverGetExtensions_$(PVR_DRI_CLIENT_DRIVER) | ||
78 | |||
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/xorg.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/xorg.mk index 27c77a3..6867263 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/xorg.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/xorg.mk | |||
@@ -38,11 +38,17 @@ | |||
38 | # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 38 | # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
39 | ### ########################################################################### | 39 | ### ########################################################################### |
40 | 40 | ||
41 | PVR_SECURE_DRM_AUTH_EXPORT := 1 | 41 | ifeq ($(PVR_DRM_MODESET_DRIVER_NAME),) |
42 | PVR_SECURE_DRM_AUTH_EXPORT := 1 | ||
43 | endif | ||
42 | 44 | ||
43 | $(eval $(call TunableKernelConfigC,XPROC_WORKAROUND_NUM_SHAREABLES,4095)) | 45 | $(eval $(call TunableKernelConfigC,XPROC_WORKAROUND_NUM_SHAREABLES,4095)) |
44 | 46 | ||
45 | ifeq ($(SUPPORT_PVR_REMOTE),1) | 47 | ifeq ($(SUPPORT_PVR_REMOTE),1) |
46 | else | 48 | else |
49 | ifeq ($(PVR_LWS_NODC),1) | ||
50 | else | ||
51 | endif | ||
47 | endif | 52 | endif |
48 | 53 | ||
54 | |||
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/xorg_test.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/xorg_test.mk index fe10742..ea112e7 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/xorg_test.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/xorg_test.mk | |||
@@ -38,14 +38,21 @@ | |||
38 | # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 38 | # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
39 | ### ########################################################################### | 39 | ### ########################################################################### |
40 | 40 | ||
41 | # FIXME: Will go away when SUPPORT_DRI_DRM is untangled from | 41 | ifeq ($(WINDOW_SYSTEM),) |
42 | # the old meaning of SUPPORT_XORG=1. | 42 | ifeq ($(filter xorg,$(EXCLUDED_APIS)),) |
43 | 43 | ifneq ($(wildcard ../common/apis/xorg.mk),) | |
44 | ifeq ($(filter xorg,$(EXCLUDED_APIS)),) | 44 | WINDOW_SYSTEM := xorg |
45 | ifneq ($(wildcard ../common/apis/xorg.mk),) | 45 | WINDOW_SYSTEM_SET_INTERNALLY := 1 |
46 | SUPPORT_BUILD_XORG := 1 | 46 | endif |
47 | ifeq ($(PDUMP),1) | 47 | endif |
48 | SUPPORT_PDUMP_MULTI_PROCESS := 1 | ||
49 | endif | ||
50 | endif | 48 | endif |
49 | |||
50 | ifeq ($(WINDOW_SYSTEM),xorg) | ||
51 | # Set for the benefit of those platform Makefiles that test for it, | ||
52 | # but no longer used by the build system. | ||
53 | SUPPORT_BUILD_XORG := 1 | ||
54 | |||
55 | ifeq ($(PDUMP),1) | ||
56 | SUPPORT_PDUMP_MULTI_PROCESS := 1 | ||
57 | endif | ||
51 | endif | 58 | endif |
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/config/core.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/config/core.mk index 1bfce01..5cd7a47 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/config/core.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/config/core.mk | |||
@@ -178,7 +178,11 @@ $(call directory-must-exist,$(TOP)/eurasiacon/build/linux2/$(PVR_BUILD_DIR)) | |||
178 | # final programs/libraries, and install/rc scripts. | 178 | # final programs/libraries, and install/rc scripts. |
179 | # | 179 | # |
180 | BUILD ?= release | 180 | BUILD ?= release |
181 | OUT ?= $(TOP)/eurasiacon/binary2_$(PVR_BUILD_DIR)_$(BUILD) | 181 | ifneq ($(WINDOW_SYSTEM),) |
182 | OUT ?= $(TOP)/eurasiacon/binary_$(PVR_BUILD_DIR)_$(WINDOW_SYSTEM)_$(BUILD) | ||
183 | else | ||
184 | OUT ?= $(TOP)/eurasiacon/binary2_$(PVR_BUILD_DIR)_$(BUILD) | ||
185 | endif | ||
182 | override OUT := $(if $(filter /%,$(OUT)),$(OUT),$(TOP)/$(OUT)) | 186 | override OUT := $(if $(filter /%,$(OUT)),$(OUT),$(TOP)/$(OUT)) |
183 | 187 | ||
184 | CONFIG_MK := $(OUT)/config.mk | 188 | CONFIG_MK := $(OUT)/config.mk |
@@ -269,7 +273,9 @@ ifeq ($(SUPPORT_LINUX_USING_WORKQUEUES),1) | |||
269 | override PVR_LINUX_USING_WORKQUEUES := 1 | 273 | override PVR_LINUX_USING_WORKQUEUES := 1 |
270 | override PVR_LINUX_MISR_USING_PRIVATE_WORKQUEUE := 1 | 274 | override PVR_LINUX_MISR_USING_PRIVATE_WORKQUEUE := 1 |
271 | override PVR_LINUX_TIMERS_USING_WORKQUEUES := 1 | 275 | override PVR_LINUX_TIMERS_USING_WORKQUEUES := 1 |
276 | ifneq ($(SUPPORT_ANDROID_FPGA),1) | ||
272 | override SYS_CUSTOM_POWERLOCK_WRAP := 1 | 277 | override SYS_CUSTOM_POWERLOCK_WRAP := 1 |
278 | endif | ||
273 | else ifeq ($(SUPPORT_LINUX_USING_SHARED_WORKQUEUES),1) | 279 | else ifeq ($(SUPPORT_LINUX_USING_SHARED_WORKQUEUES),1) |
274 | override PVR_LINUX_USING_WORKQUEUES := 1 | 280 | override PVR_LINUX_USING_WORKQUEUES := 1 |
275 | override PVR_LINUX_MISR_USING_WORKQUEUE := 1 | 281 | override PVR_LINUX_MISR_USING_WORKQUEUE := 1 |
@@ -360,7 +366,7 @@ $$(warning *** Setting $(1) via $$(origin $(1)) is deprecated) | |||
360 | $$(error If you are trying to disable a component, use e.g. EXCLUDED_APIS="opengles1 opengl") | 366 | $$(error If you are trying to disable a component, use e.g. EXCLUDED_APIS="opengles1 opengl") |
361 | endif | 367 | endif |
362 | endef | 368 | endef |
363 | $(foreach _o,SYS_CFLAGS SYS_CXXFLAGS SYS_INCLUDES SYS_EXE_LDFLAGS SYS_LIB_LDFLAGS SYS_EXE_LDFLAGS_CXX SYS_LIB_LDFLAGS_CXX SUPPORT_EWS SUPPORT_OPENGLES1 SUPPORT_OPENGLES2 SUPPORT_OPENCL SUPPORT_RSCOMPUTE SUPPORT_OPENGL SUPPORT_UNITTESTS SUPPORT_XORG,$(eval $(call sanity-check-support-option-origin,$(_o)))) | 369 | $(foreach _o,SYS_CFLAGS SYS_CXXFLAGS SYS_INCLUDES SYS_COMMON_LDFLAGS SYS_EXE_LDFLAGS SYS_LIB_LDFLAGS SYS_EXE_LDFLAGS_CXX SYS_LIB_LDFLAGS_CXX SUPPORT_EWS SUPPORT_OPENGLES1 SUPPORT_OPENGLES2 SUPPORT_OPENCL SUPPORT_RSCOMPUTE SUPPORT_OPENGL SUPPORT_UNITTESTS SUPPORT_XORG,$(eval $(call sanity-check-support-option-origin,$(_o)))) |
364 | 370 | ||
365 | # Check for words in EXCLUDED_APIS that aren't understood by the | 371 | # Check for words in EXCLUDED_APIS that aren't understood by the |
366 | # common/apis/*.mk files. This should be kept in sync with all the tests on | 372 | # common/apis/*.mk files. This should be kept in sync with all the tests on |
@@ -401,6 +407,31 @@ COMPONENTS += pvrvncsrv | |||
401 | COMPONENTS += pvrvncinput | 407 | COMPONENTS += pvrvncinput |
402 | endif | 408 | endif |
403 | 409 | ||
410 | ifeq ($(HAVE_WINDOW_SYSTEM_MAKEFILE),) | ||
411 | ifeq ($(WINDOW_SYSTEM_SET_INTERNALLY),) | ||
412 | ifneq ($(WINDOW_SYSTEM),) | ||
413 | $(error "The WINDOW_SYSTEM build variable is not supported on this platform") | ||
414 | endif | ||
415 | endif | ||
416 | ifneq ($(MESA_EGL),) | ||
417 | $(error "The MESA_EGL build variable is not supported on this platform") | ||
418 | endif | ||
419 | PVR_LWS_NODC := | ||
420 | PVR_LWS_NOBC := | ||
421 | endif | ||
422 | |||
423 | ifneq ($(WINDOW_SYSTEM),) | ||
424 | endif | ||
425 | ifeq ($(MESA_EGL),1) | ||
426 | SUPPORT_OPENGLES1_V1_ONLY := 1 | ||
427 | GLES1_EXTENSION_EGL_IMAGE_EXTERNAL := 1 | ||
428 | GLES2_EXTENSION_EGL_IMAGE_EXTERNAL := 1 | ||
429 | else | ||
430 | ifeq ($(SUPPORT_BUILD_LWS),1) | ||
431 | else | ||
432 | endif | ||
433 | endif | ||
434 | |||
404 | $(if $(filter config,$(D)),$(info Build configuration:)) | 435 | $(if $(filter config,$(D)),$(info Build configuration:)) |
405 | 436 | ||
406 | ################################# CONFIG #################################### | 437 | ################################# CONFIG #################################### |
@@ -426,7 +457,7 @@ $(eval $(call TunableBothConfigMake,KERNEL_CROSS_COMPILE,)) | |||
426 | endif | 457 | endif |
427 | 458 | ||
428 | # Check the KERNELDIR has a kernel built. | 459 | # Check the KERNELDIR has a kernel built. |
429 | VMLINUX := $(strip $(wildcard $(KERNELDIR)/vmlinux)) | 460 | VMLINUX := |
430 | LINUXCFG := $(strip $(wildcard $(KERNELDIR)/.config)) | 461 | LINUXCFG := $(strip $(wildcard $(KERNELDIR)/.config)) |
431 | 462 | ||
432 | ifneq ($(VMLINUX),) | 463 | ifneq ($(VMLINUX),) |
@@ -437,8 +468,10 @@ VMLINUX_IS_64BIT := $(shell file $(VMLINUX) | grep 64-bit >/dev/null || echo fal | |||
437 | VMLINUX_HAS_PAE36 := $(shell cat $(LINUXCFG) | grep CONFIG_X86_PAE=y >/dev/null || echo false) | 468 | VMLINUX_HAS_PAE36 := $(shell cat $(LINUXCFG) | grep CONFIG_X86_PAE=y >/dev/null || echo false) |
438 | VMLINUX_HAS_PAE40 := $(shell cat $(LINUXCFG) | grep CONFIG_ARM_LPAE=y >/dev/null || echo false) | 469 | VMLINUX_HAS_PAE40 := $(shell cat $(LINUXCFG) | grep CONFIG_ARM_LPAE=y >/dev/null || echo false) |
439 | VMLINUX_HAS_DMA32 := $(shell cat $(LINUXCFG) | grep CONFIG_ZONE_DMA32=y >/dev/null || echo false) | 470 | VMLINUX_HAS_DMA32 := $(shell cat $(LINUXCFG) | grep CONFIG_ZONE_DMA32=y >/dev/null || echo false) |
471 | VMLINUX_HAS_DMA := $(shell cat $(LINUXCFG) | grep CONFIG_ZONE_DMA=y >/dev/null || echo false) | ||
440 | 472 | ||
441 | # $(error 64BIT=$(VMLINUX_IS_64BIT) PAE36=$(VMLINUX_HAS_PAE36) PAE40=$(VMLINUX_HAS_PAE40) DMA32=$(VMLINUX_HAS_DMA32) MMU36=$(SGX_FEATURE_36BIT_MMU)) | 473 | |
474 | # $(error 64BIT=$(VMLINUX_IS_64BIT) PAE36=$(VMLINUX_HAS_PAE36) PAE40=$(VMLINUX_HAS_PAE40) DMA=$(VMLINUX_HAS_DMA) DMA32=$(VMLINUX_HAS_DMA32) MMU36=$(SGX_FEATURE_36BIT_MMU)) | ||
442 | 475 | ||
443 | ifneq ($(VMLINUX_IS_64BIT),false) | 476 | ifneq ($(VMLINUX_IS_64BIT),false) |
444 | $(warning $$(KERNELDIR)/vmlinux: Note: vmlinux is 64-bit, which is supported but currently experimental.) | 477 | $(warning $$(KERNELDIR)/vmlinux: Note: vmlinux is 64-bit, which is supported but currently experimental.) |
@@ -449,8 +482,8 @@ endif | |||
449 | endif | 482 | endif |
450 | 483 | ||
451 | ifneq ($(VMLINUX_HAS_PAE40),false) | 484 | ifneq ($(VMLINUX_HAS_PAE40),false) |
452 | ifeq ($(VMLINUX_HAS_DMA32),false) | 485 | ifeq ($(VMLINUX_HAS_DMA),false) |
453 | $(warning SGX MMUs are currently supported up to only 36 bits max. Your Kernel is built with 40-bit PAE but does not have CONFIG_ZONE_DMA32.) | 486 | $(warning SGX MMUs are currently supported up to only 36 bits max. Your Kernel is built with 40-bit PAE but does not have CONFIG_ZONE_DMA.) |
454 | $(warning This means you must ensure the runtime system has <= 4GB of RAM, or there will be BIG problems...) | 487 | $(warning This means you must ensure the runtime system has <= 4GB of RAM, or there will be BIG problems...) |
455 | endif | 488 | endif |
456 | endif | 489 | endif |
@@ -465,8 +498,8 @@ endif | |||
465 | else | 498 | else |
466 | # Kernel is 32-bit | 499 | # Kernel is 32-bit |
467 | ifneq ($(VMLINUX_HAS_PAE36),false) | 500 | ifneq ($(VMLINUX_HAS_PAE36),false) |
468 | ifeq ($(VMLINUX_HAS_DMA32),false) | 501 | ifeq ($(VMLINUX_HAS_DMA),false) |
469 | $(warning SGX is configured with 32-bit MMU. Your Kernel is 32-bit PAE, but does not have CONFIG_ZONE_DMA32. ) | 502 | $(warning SGX is configured with 32-bit MMU. Your Kernel is 32-bit PAE, but does not have CONFIG_ZONE_DMA. ) |
470 | $(warning This means you must ensure the runtime system has <= 4GB of RAM, or there will be BIG problems...) | 503 | $(warning This means you must ensure the runtime system has <= 4GB of RAM, or there will be BIG problems...) |
471 | endif | 504 | endif |
472 | endif | 505 | endif |
@@ -506,13 +539,16 @@ ifneq ($(DISPLAY_CONTROLLER),) | |||
506 | $(eval $(call BothConfigC,DISPLAY_CONTROLLER,$(DISPLAY_CONTROLLER))) | 539 | $(eval $(call BothConfigC,DISPLAY_CONTROLLER,$(DISPLAY_CONTROLLER))) |
507 | endif | 540 | endif |
508 | 541 | ||
542 | ifneq ($(DRM_DISPLAY_CONTROLLER),) | ||
543 | endif | ||
544 | |||
509 | ifneq ($(strip $(KERNELDIR)),) | 545 | ifneq ($(strip $(KERNELDIR)),) |
510 | PVR_LINUX_MEM_AREA_POOL_MAX_PAGES ?= 0 | 546 | PVR_LINUX_MEM_AREA_POOL_MAX_PAGES ?= 0 |
511 | ifneq ($(PVR_LINUX_MEM_AREA_POOL_MAX_PAGES),0) | 547 | ifneq ($(PVR_LINUX_MEM_AREA_POOL_MAX_PAGES),0) |
512 | PVR_LINUX_MEM_AREA_USE_VMAP ?= 1 | 548 | PVR_LINUX_MEM_AREA_USE_VMAP ?= 1 |
513 | include ../kernel_version.mk | 549 | include ../kernel_version.mk |
514 | ifeq ($(call kernel-version-at-least,3,0),true) | 550 | ifeq ($(call kernel-version-at-least,3,0),true) |
515 | PVR_LINUX_MEM_AREA_POOL_ALLOW_SHRINK ?= 0 | 551 | PVR_LINUX_MEM_AREA_POOL_ALLOW_SHRINK ?= 1 |
516 | endif | 552 | endif |
517 | endif | 553 | endif |
518 | $(eval $(call KernelConfigC,PVR_LINUX_MEM_AREA_POOL_MAX_PAGES,$(PVR_LINUX_MEM_AREA_POOL_MAX_PAGES))) | 554 | $(eval $(call KernelConfigC,PVR_LINUX_MEM_AREA_POOL_MAX_PAGES,$(PVR_LINUX_MEM_AREA_POOL_MAX_PAGES))) |
@@ -537,6 +573,7 @@ $(eval $(call KernelConfigC,DEBUG_BRIDGE_KM,)) | |||
537 | else ifeq ($(BUILD),release) | 573 | else ifeq ($(BUILD),release) |
538 | $(eval $(call BothConfigC,RELEASE,)) | 574 | $(eval $(call BothConfigC,RELEASE,)) |
539 | $(eval $(call TunableBothConfigMake,DEBUGLINK,1)) | 575 | $(eval $(call TunableBothConfigMake,DEBUGLINK,1)) |
576 | $(eval $(call TunableBothConfigC,PVR_DBGPRIV_LEVEL,)) | ||
540 | else ifeq ($(BUILD),timing) | 577 | else ifeq ($(BUILD),timing) |
541 | $(eval $(call BothConfigC,TIMING,)) | 578 | $(eval $(call BothConfigC,TIMING,)) |
542 | $(eval $(call TunableBothConfigMake,DEBUGLINK,1)) | 579 | $(eval $(call TunableBothConfigMake,DEBUGLINK,1)) |
@@ -566,6 +603,7 @@ $(eval $(call TunableBothConfigC,SGX_FEATURE_MP_PLUS,)) | |||
566 | $(eval $(call TunableBothConfigC,FPGA,)) | 603 | $(eval $(call TunableBothConfigC,FPGA,)) |
567 | $(eval $(call TunableBothConfigC,PDUMP,)) | 604 | $(eval $(call TunableBothConfigC,PDUMP,)) |
568 | $(eval $(call TunableBothConfigC,MEM_TRACK_INFO_DEBUG,)) | 605 | $(eval $(call TunableBothConfigC,MEM_TRACK_INFO_DEBUG,)) |
606 | $(eval $(call TunableBothConfigC,PVRSRV_DEVMEM_TIME_STATS,)) | ||
569 | $(eval $(call TunableBothConfigC,NO_HARDWARE,)) | 607 | $(eval $(call TunableBothConfigC,NO_HARDWARE,)) |
570 | $(eval $(call TunableBothConfigC,PDUMP_DEBUG_OUTFILES,)) | 608 | $(eval $(call TunableBothConfigC,PDUMP_DEBUG_OUTFILES,)) |
571 | $(eval $(call TunableBothConfigC,PVRSRV_USSE_EDM_STATUS_DEBUG,)) | 609 | $(eval $(call TunableBothConfigC,PVRSRV_USSE_EDM_STATUS_DEBUG,)) |
@@ -578,7 +616,7 @@ $(eval $(call TunableBothConfigC,PVRSRV_NEED_PVR_ASSERT,)) | |||
578 | $(eval $(call TunableBothConfigC,PVRSRV_NEED_PVR_TRACE,)) | 616 | $(eval $(call TunableBothConfigC,PVRSRV_NEED_PVR_TRACE,)) |
579 | $(eval $(call TunableBothConfigC,SUPPORT_SECURE_33657_FIX,)) | 617 | $(eval $(call TunableBothConfigC,SUPPORT_SECURE_33657_FIX,)) |
580 | $(eval $(call TunableBothConfigC,SUPPORT_ION,)) | 618 | $(eval $(call TunableBothConfigC,SUPPORT_ION,)) |
581 | $(eval $(call TunableBothConfigC,SUPPORT_DRM_GEM,)) | 619 | $(eval $(call TunableBothConfigC,SUPPORT_DMABUF,)) |
582 | $(eval $(call TunableBothConfigC,SUPPORT_HWRECOVERY_TRACE_LIMIT,)) | 620 | $(eval $(call TunableBothConfigC,SUPPORT_HWRECOVERY_TRACE_LIMIT,)) |
583 | $(eval $(call TunableBothConfigC,SUPPORT_PVRSRV_DEVICE_CLASS,)) | 621 | $(eval $(call TunableBothConfigC,SUPPORT_PVRSRV_DEVICE_CLASS,)) |
584 | $(eval $(call TunableBothConfigC,SUPPORT_PVRSRV_GET_DC_SYSTEM_BUFFER,1)) | 622 | $(eval $(call TunableBothConfigC,SUPPORT_PVRSRV_GET_DC_SYSTEM_BUFFER,1)) |
@@ -599,6 +637,7 @@ $(eval $(call TunableKernelConfigC,PVR_LINUX_MISR_USING_PRIVATE_WORKQUEUE,)) | |||
599 | $(eval $(call TunableKernelConfigC,PVR_LINUX_TIMERS_USING_WORKQUEUES,)) | 637 | $(eval $(call TunableKernelConfigC,PVR_LINUX_TIMERS_USING_WORKQUEUES,)) |
600 | $(eval $(call TunableKernelConfigC,PVR_LINUX_TIMERS_USING_SHARED_WORKQUEUE,)) | 638 | $(eval $(call TunableKernelConfigC,PVR_LINUX_TIMERS_USING_SHARED_WORKQUEUE,)) |
601 | $(eval $(call TunableKernelConfigC,LDM_PLATFORM,)) | 639 | $(eval $(call TunableKernelConfigC,LDM_PLATFORM,)) |
640 | $(eval $(call TunableKernelConfigC,PVR_LDM_DEVICE_TREE,)) | ||
602 | $(eval $(call TunableKernelConfigC,PVR_LDM_PLATFORM_PRE_REGISTERED,)) | 641 | $(eval $(call TunableKernelConfigC,PVR_LDM_PLATFORM_PRE_REGISTERED,)) |
603 | $(eval $(call TunableKernelConfigC,PVR_LDM_PLATFORM_PRE_REGISTERED_DEV,)) | 642 | $(eval $(call TunableKernelConfigC,PVR_LDM_PLATFORM_PRE_REGISTERED_DEV,)) |
604 | $(eval $(call TunableKernelConfigC,PVR_LDM_DRIVER_REGISTRATION_NAME,"\"$(PVRSRV_MODNAME)\"")) | 643 | $(eval $(call TunableKernelConfigC,PVR_LDM_DRIVER_REGISTRATION_NAME,"\"$(PVRSRV_MODNAME)\"")) |
@@ -620,7 +659,7 @@ $(eval $(call TunableKernelConfigC,SUPPORT_FORCE_SYNC_DUMP,)) | |||
620 | 659 | ||
621 | $(eval $(call TunableBothConfigMake,OPTIM,)) | 660 | $(eval $(call TunableBothConfigMake,OPTIM,)) |
622 | $(eval $(call TunableBothConfigMake,SUPPORT_ION,)) | 661 | $(eval $(call TunableBothConfigMake,SUPPORT_ION,)) |
623 | $(eval $(call TunableBothConfigMake,SUPPORT_DRM_GEM,)) | 662 | $(eval $(call TunableBothConfigMake,SUPPORT_DMABUF,)) |
624 | $(eval $(call TunableBothConfigMake,SUPPORT_PVRSRV_DEVICE_CLASS,)) | 663 | $(eval $(call TunableBothConfigMake,SUPPORT_PVRSRV_DEVICE_CLASS,)) |
625 | 664 | ||
626 | 665 | ||
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/defs.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/defs.mk index dee740f..311bbb0 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/defs.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/defs.mk | |||
@@ -146,3 +146,8 @@ endef | |||
146 | define module-info-line | 146 | define module-info-line |
147 | $(if $(filter modules,$(D)),$(info $(1)),) | 147 | $(if $(filter modules,$(D)),$(info $(1)),) |
148 | endef | 148 | endef |
149 | |||
150 | # $(call if-exists,A,B) => A if A is a file which exists, otherwise B | ||
151 | define if-exists | ||
152 | $(if $(wildcard $(1)),$(1),$(2)) | ||
153 | endef | ||
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/moduledefs.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/moduledefs.mk index ef4596c..155d3bb 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/moduledefs.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/moduledefs.mk | |||
@@ -61,12 +61,12 @@ endif | |||
61 | 61 | ||
62 | # Only allow cflags that do not affect code generation. This is to ensure | 62 | # Only allow cflags that do not affect code generation. This is to ensure |
63 | # proper binary compatibility when LTO (Link-Time Optimization) is enabled. | 63 | # proper binary compatibility when LTO (Link-Time Optimization) is enabled. |
64 | # We make exceptions for -fPIC, -fPIE and -m32 which will all fail linkage | 64 | # We make exceptions for the below flags which will all fail linkage in |
65 | # in non-LTO mode if incorrectly specified. | 65 | # non-LTO mode if incorrectly specified. |
66 | # | 66 | # |
67 | # NOTE: Only used by static_library and objects right now. Other module | 67 | # NOTE: Only used by static_library and objects right now. Other module |
68 | # types should not be affected by complex code generation flags w/ LTO. | 68 | # types should not be affected by complex code generation flags w/ LTO. |
69 | MODULE_ALLOWED_CFLAGS := -W% -D% -std=% -fPIC -fPIE -m32 | 69 | MODULE_ALLOWED_CFLAGS := -W% -D% -std=% -fPIC -fPIE -pie -m32 |
70 | 70 | ||
71 | # -L flags for library search dirs: these are relative to $(TOP), unless | 71 | # -L flags for library search dirs: these are relative to $(TOP), unless |
72 | # they're absolute paths | 72 | # they're absolute paths |
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/modules.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/modules.mk index 1576590..971f21a 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/modules.mk +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/modules.mk | |||
@@ -42,7 +42,6 @@ | |||
42 | # Bits for processing $(modules) after reading in each Linux.mk | 42 | # Bits for processing $(modules) after reading in each Linux.mk |
43 | 43 | ||
44 | #$(info ---- $(modules) ----) | 44 | #$(info ---- $(modules) ----) |
45 | $(call must-be-nonempty,modules) | ||
46 | 45 | ||
47 | $(foreach _m,$(modules),$(if $(filter $(_m),$(ALL_MODULES)),$(error In makefile $(THIS_MAKEFILE): Duplicate module $(_m) (first seen in $(INTERNAL_MAKEFILE_FOR_MODULE_$(_m))) listed in $$(modules)),$(eval $(call register-module,$(_m))))) | 46 | $(foreach _m,$(modules),$(if $(filter $(_m),$(ALL_MODULES)),$(error In makefile $(THIS_MAKEFILE): Duplicate module $(_m) (first seen in $(INTERNAL_MAKEFILE_FOR_MODULE_$(_m))) listed in $$(modules)),$(eval $(call register-module,$(_m))))) |
48 | 47 | ||
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 index 109e405..03efcdb 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_android/Makefile +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_android/Makefile | |||
@@ -63,7 +63,21 @@ SGXCORE := 544 | |||
63 | SGX_CORE_REV := 112 | 63 | SGX_CORE_REV := 112 |
64 | HAL_VARIANT := omap4 | 64 | HAL_VARIANT := omap4 |
65 | endif | 65 | endif |
66 | ifneq ($(filter jacinto6evm omap5sevm panda5,$(TARGET_DEVICE)),) | 66 | ifneq ($(filter omap5sevm panda5,$(TARGET_DEVICE)),) |
67 | SGXCORE := 544 | ||
68 | SGX_CORE_REV := 105 | ||
69 | SGX_FEATURE_MP := 1 | ||
70 | SGX_FEATURE_SYSTEM_CACHE := 1 | ||
71 | SGX_FEATURE_MP_CORE_COUNT := 2 | ||
72 | HAL_VARIANT := omap5 | ||
73 | |||
74 | # OMAP Product Version | ||
75 | VS_PRODUCT_VERSION := 5 | ||
76 | |||
77 | # FIXME: Re-enable this ASAP | ||
78 | SUPPORT_ACTIVE_POWER_MANAGEMENT := 0 | ||
79 | endif | ||
80 | ifneq ($(filter jacinto6evm,$(TARGET_DEVICE)),) | ||
67 | SGXCORE := 544 | 81 | SGXCORE := 544 |
68 | SGX_CORE_REV := 116 | 82 | SGX_CORE_REV := 116 |
69 | SGX_FEATURE_MP := 1 | 83 | SGX_FEATURE_MP := 1 |
@@ -72,10 +86,12 @@ SGX_FEATURE_MP_CORE_COUNT := 2 | |||
72 | HAL_VARIANT := jacinto6 | 86 | HAL_VARIANT := jacinto6 |
73 | 87 | ||
74 | # OMAP Product Version | 88 | # OMAP Product Version |
89 | # FIXME: Get rid of this | ||
75 | VS_PRODUCT_VERSION := 5 | 90 | VS_PRODUCT_VERSION := 5 |
76 | 91 | ||
77 | # FIXME: Re-enable this ASAP | 92 | # FIXME: Re-enable this ASAP |
78 | SUPPORT_ACTIVE_POWER_MANAGEMENT := 0 | 93 | SUPPORT_ACTIVE_POWER_MANAGEMENT := 0 |
94 | |||
79 | endif | 95 | endif |
80 | 96 | ||
81 | # Handle any TARGET_DEVICE remapping. Not all DDK TARGET_DEVICEs | 97 | # Handle any TARGET_DEVICE remapping. Not all DDK TARGET_DEVICEs |
@@ -92,15 +108,19 @@ SGX_DYNAMIC_TIMING_INFO := 1 | |||
92 | 108 | ||
93 | SUPPORT_LINUX_USING_WORKQUEUES := 1 | 109 | SUPPORT_LINUX_USING_WORKQUEUES := 1 |
94 | 110 | ||
95 | SUPPORT_PVRSRV_ANDROID_SYSTRACE := 0 | 111 | SUPPORT_PVRSRV_ANDROID_SYSTRACE := 1 |
96 | 112 | ||
97 | ifneq ($(SUPPORT_PVRSRV_DEVICE_CLASS),0) | 113 | SUPPORT_DMABUF := 1 |
114 | |||
115 | # TODO: Set SUPPORT_PVRSVR_DEVICE_CLASS to 0 | ||
116 | #DISPLAY_CONTROLLER should not be used for DRM based display controller | ||
117 | #ifneq ($(SUPPORT_PVRSRV_DEVICE_CLASS),0) | ||
98 | #DISPLAY_CONTROLLER := omaplfb | 118 | #DISPLAY_CONTROLLER := omaplfb |
99 | endif | 119 | #endif |
100 | 120 | ||
101 | PVR_SYSTEM := omap | 121 | PVR_SYSTEM := omap |
102 | 122 | ||
103 | KERNEL_CROSS_COMPILE ?= arm-none-linux-gnueabi- | 123 | KERNEL_CROSS_COMPILE ?= arm-eabi- |
104 | 124 | ||
105 | # We have more memory on OMAP platforms, so we can spare to make the | 125 | # 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. | 126 | # pool larger, and have higher resolutions which benefit from it. |
@@ -126,6 +146,9 @@ ifneq ($(strip $(KERNELDIR)),) | |||
126 | SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED := 1 | 146 | SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED := 1 |
127 | SYS_OMAP_HAS_DVFS_FRAMEWORK := 0 | 147 | SYS_OMAP_HAS_DVFS_FRAMEWORK := 0 |
128 | endif | 148 | endif |
149 | ifeq ($(call kernel-version-at-least,3,8,13),true) | ||
150 | PVR_LDM_DEVICE_TREE := 1 | ||
151 | endif | ||
129 | else | 152 | else |
130 | $(warning "KERNELDIR is not set, so can't feature check DVFS or dsscomp.") | 153 | $(warning "KERNELDIR is not set, so can't feature check DVFS or dsscomp.") |
131 | $(warning "Assuming we want DVFS and dsscomp support.") | 154 | $(warning "Assuming we want DVFS and dsscomp support.") |
@@ -143,6 +166,7 @@ DISPLAY_CONTROLLER_COMPONENT := linux_framebuffer | |||
143 | OMAP_NON_FLIP_DISPLAY := 1 | 166 | OMAP_NON_FLIP_DISPLAY := 1 |
144 | endif | 167 | endif |
145 | else # LDM_PLATFORM != 1 | 168 | else # LDM_PLATFORM != 1 |
169 | # TODO: we should set DEVICE_CLASS to zero | ||
146 | ifneq ($(SUPPORT_PVRSRV_DEVICE_CLASS),0) | 170 | ifneq ($(SUPPORT_PVRSRV_DEVICE_CLASS),0) |
147 | #DISPLAY_CONTROLLER_COMPONENT := dc_omapfb3_linux | 171 | #DISPLAY_CONTROLLER_COMPONENT := dc_omapfb3_linux |
148 | endif | 172 | endif |
@@ -176,7 +200,7 @@ SUPPORT_ANDROID_OMAP_NV12 := 1 | |||
176 | 200 | ||
177 | PVR_ANDROID_USE_WINDOW_TRANSFORM_HINT := 1 | 201 | PVR_ANDROID_USE_WINDOW_TRANSFORM_HINT := 1 |
178 | 202 | ||
179 | PVR_ANDROID_PLATFORM_HAS_LINUX_FBDEV := 0 | 203 | PVR_ANDROID_PLATFORM_HAS_LINUX_FBDEV := 1 |
180 | 204 | ||
181 | # Handle Google's OMAP-based products | 205 | # Handle Google's OMAP-based products |
182 | # | 206 | # |
@@ -200,6 +224,9 @@ endif | |||
200 | endif # SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED == 1 | 224 | endif # SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED == 1 |
201 | endif # NO_HARDWARE == 1 | 225 | endif # NO_HARDWARE == 1 |
202 | 226 | ||
227 | # we are not using PVR composerhal | ||
228 | #PVR_ANDROID_COMPOSERHAL ?= omap | ||
229 | |||
203 | include ../config/core.mk | 230 | include ../config/core.mk |
204 | include ../common/android/extra_config.mk | 231 | include ../common/android/extra_config.mk |
205 | include ../common/dridrm.mk | 232 | include ../common/dridrm.mk |
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile index 8a65e7d..6c9b932 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile | |||
@@ -39,56 +39,69 @@ | |||
39 | # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 39 | # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
40 | ### ########################################################################### | 40 | ### ########################################################################### |
41 | 41 | ||
42 | # If a product wasn't specified, we're an OMAP4430 blaze. | 42 | include ../kernel_version.mk |
43 | ifeq ($(call kernel-version-at-least,3,8,13),true) | ||
44 | SUPPORT_LWS_WITH_DC ?= 0 | ||
45 | endif | ||
46 | include ../config/window_system.mk | ||
47 | |||
48 | # If a product wasn't specified, we're a J6 EVM. | ||
43 | # | 49 | # |
44 | TARGET_PRODUCT ?= jacinto6evm | 50 | TARGET_PRODUCT ?= jacinto6evm |
45 | 51 | ||
52 | PVRSRV_NEED_PVR_DPF := 1 | ||
53 | PVRSRV_NEW_PVR_DPF := 1 | ||
54 | |||
46 | # Customize this build as per the TARGET_PRODUCT setting | 55 | # Customize this build as per the TARGET_PRODUCT setting |
47 | # | 56 | # |
48 | ifneq ($(filter blaze blaze_tablet panda,$(TARGET_PRODUCT)),) | 57 | ifneq ($(filter blaze blaze_tablet panda,$(TARGET_PRODUCT)),) |
49 | SGXCORE := 540 | 58 | SGXCORE := 540 |
50 | SGX_CORE_REV := 120 | 59 | SGX_CORE_REV := 120 |
51 | endif | 60 | endif |
52 | ifneq ($(filter blaze.4470 blaze_tablet.4470,$(TARGET_PRODUCT)),) | 61 | ifneq ($(filter blaze.4470 blaze_tablet.4470,$(TARGET_PRODUCT)),) |
53 | SGXCORE := 544 | 62 | SGXCORE := 544 |
54 | SGX_CORE_REV := 112 | 63 | SGX_CORE_REV := 112 |
55 | endif | 64 | endif |
56 | ifneq ($(filter omap5sevm panda5,$(TARGET_PRODUCT)),) | 65 | ifneq ($(filter omap5sevm panda5,$(TARGET_PRODUCT)),) |
57 | SGXCORE := 544 | 66 | SGXCORE := 544 |
58 | SGX_CORE_REV := 105 | 67 | SGX_CORE_REV := 105 |
59 | SGX_FEATURE_MP := 1 | 68 | SGX_FEATURE_MP := 1 |
60 | SGX_FEATURE_SYSTEM_CACHE := 1 | 69 | SGX_FEATURE_SYSTEM_CACHE := 1 |
61 | SGX_FEATURE_MP_CORE_COUNT := 2 | 70 | SGX_FEATURE_MP_CORE_COUNT := 2 |
62 | PVR_OMAPLFB_DRM_FB := 0 | 71 | PVR_OMAPLFB_DRM_FB := 0 |
63 | SYS_OMAP_HAS_DVFS_FRAMEWORK := 1 | 72 | SYS_OMAP_HAS_DVFS_FRAMEWORK := 1 |
64 | 73 | ||
65 | # OMAP Product Version | 74 | # OMAP Product Version |
66 | VS_PRODUCT_VERSION := 5 | 75 | VS_PRODUCT_VERSION := 5 |
67 | 76 | ||
68 | # FIXME: Re-enable this ASAP | 77 | # FIXME: Re-enable this ASAP |
69 | SUPPORT_ACTIVE_POWER_MANAGEMENT := 0 | 78 | SUPPORT_ACTIVE_POWER_MANAGEMENT := 0 |
70 | endif | 79 | endif |
71 | ifneq ($(filter jacinto6evm omap5uevm,$(TARGET_PRODUCT)),) | 80 | ifneq ($(filter jacinto6evm omap5uevm,$(TARGET_PRODUCT)),) |
72 | SGXCORE := 544 | 81 | SGXCORE := 544 |
73 | SGX_CORE_REV := 116 | 82 | SGX_CORE_REV := 116 |
74 | SGX_FEATURE_MP := 1 | 83 | SGX_FEATURE_MP := 1 |
75 | SGX_FEATURE_SYSTEM_CACHE := 1 | 84 | SGX_FEATURE_SYSTEM_CACHE := 1 |
76 | SGX_FEATURE_MP_CORE_COUNT := 2 | 85 | SGX_FEATURE_MP_CORE_COUNT := 2 |
86 | SYS_OMAP_HAS_DVFS_FRAMEWORK := 1 | ||
77 | 87 | ||
78 | SYS_OMAP5_UEVM := 1 | 88 | SYS_OMAP5_UEVM := 1 |
79 | 89 | ||
80 | # OMAP Product Version | 90 | # OMAP Product Version |
81 | VS_PRODUCT_VERSION := 5 | 91 | VS_PRODUCT_VERSION := 5 |
82 | endif | 92 | endif |
83 | 93 | ||
94 | PVR_NO_OMAP_TIMER := 1 | ||
95 | |||
84 | PVR_SYSTEM := omap | 96 | PVR_SYSTEM := omap |
85 | 97 | ||
86 | KERNEL_COMPONENTS := srvkm bufferclass_example | 98 | KERNEL_COMPONENTS := srvkm |
99 | ifeq ($(PVR_LWS_NOBC),) | ||
100 | KERNEL_COMPONENTS += bufferclass_example | ||
101 | endif | ||
87 | 102 | ||
88 | SUPPORT_OLD_ION_API := 1 | 103 | SUPPORT_OLD_ION_API := 1 |
89 | 104 | ||
90 | include ../kernel_version.mk | ||
91 | |||
92 | # Only enable active power management if passive power management is | 105 | # Only enable active power management if passive power management is |
93 | # enabled, as indicated by LDM_PLATFORM being set to 1. On OMAP, | 106 | # enabled, as indicated by LDM_PLATFORM being set to 1. On OMAP, |
94 | # the system can suspend in the case where active power management is | 107 | # the system can suspend in the case where active power management is |
@@ -99,8 +112,9 @@ LDM_PLATFORM ?= 1 | |||
99 | 112 | ||
100 | ifeq ($(LDM_PLATFORM),1) | 113 | ifeq ($(LDM_PLATFORM),1) |
101 | SUPPORT_LINUX_USING_WORKQUEUES := 1 | 114 | SUPPORT_LINUX_USING_WORKQUEUES := 1 |
102 | DISPLAY_CONTROLLER_COMPONENT += dc_omapfb3_linux | 115 | #With DRM EGL and display, omaplfb is not needed |
103 | DISPLAY_CONTROLLER := omaplfb | 116 | #DISPLAY_CONTROLLER_COMPONENT += dc_omapfb3_linux |
117 | #DISPLAY_CONTROLLER := omaplfb | ||
104 | else | 118 | else |
105 | SUPPORT_LINUX_USING_SHARED_WORKQUEUES := 1 | 119 | SUPPORT_LINUX_USING_SHARED_WORKQUEUES := 1 |
106 | OMAP_NON_FLIP_DISPLAY := 1 | 120 | OMAP_NON_FLIP_DISPLAY := 1 |
@@ -142,16 +156,25 @@ SYS_CUSTOM_POWERLOCK_WRAP := 1 | |||
142 | 156 | ||
143 | ifeq ($(OMAP_NON_FLIP_DISPLAY),1) | 157 | ifeq ($(OMAP_NON_FLIP_DISPLAY),1) |
144 | OPK_DEFAULT := libpvrPVR2D_BLITWSEGL.so | 158 | OPK_DEFAULT := libpvrPVR2D_BLITWSEGL.so |
145 | else | ||
146 | OPK_DEFAULT := libpvrPVR2D_FLIPWSEGL.so | ||
147 | endif | 159 | endif |
148 | 160 | ||
149 | ifeq ($(SYS_OMAP5_UEVM),1) | 161 | ifeq ($(SYS_OMAP5_UEVM),1) |
162 | XORG_EXPLICIT_PVR_SERVICES_LOAD := 1 | ||
163 | ifeq ($(call kernel-version-at-least,3,8,13),true) | ||
164 | LDM_PLATFORM := 1 | ||
165 | PVR_LDM_DEVICE_TREE := 1 | ||
166 | else | ||
150 | PVR_LDM_PLATFORM_PRE_REGISTERED := 1 | 167 | PVR_LDM_PLATFORM_PRE_REGISTERED := 1 |
151 | PVR_LDM_PLATFORM_PRE_REGISTERED_DEV := "\"omapdrm_pvr\"" | 168 | PVR_LDM_PLATFORM_PRE_REGISTERED_DEV := "\"omapdrm_pvr\"" |
152 | XORG_EXPLICIT_PVR_SERVICES_LOAD := 1 | 169 | endif |
170 | ifeq ($(PVR_LWS_NODC),1) | ||
171 | # No display class driver. | ||
172 | DISPLAY_CONTROLLER_COMPONENT := | ||
173 | DISPLAY_CONTROLLER := | ||
174 | else | ||
153 | PVR_OMAPLFB_DRM_FB := 0 | 175 | PVR_OMAPLFB_DRM_FB := 0 |
154 | PVR_OMAPLFB_DONT_USE_FB_PAN_DISPLAY := 1 | 176 | PVR_OMAPLFB_DONT_USE_FB_PAN_DISPLAY := 1 |
177 | endif | ||
155 | else | 178 | else |
156 | ifeq ($(call kernel-version-at-least,2,6,35),true) | 179 | ifeq ($(call kernel-version-at-least,2,6,35),true) |
157 | # Work around flipping problems seen with the Taal LCDs on Blaze. | 180 | # Work around flipping problems seen with the Taal LCDs on Blaze. |
@@ -182,16 +205,17 @@ endif | |||
182 | endif | 205 | endif |
183 | endif | 206 | endif |
184 | 207 | ||
185 | include ../common/xorg_test.mk | ||
186 | ifeq ($(SUPPORT_BUILD_XORG),1) | ||
187 | SUPPORT_DRI_DRM := 1 | ||
188 | endif | ||
189 | |||
190 | ifeq ($(SUPPORT_DRI_DRM),1) | 208 | ifeq ($(SUPPORT_DRI_DRM),1) |
191 | ifeq ($(SYS_OMAP5_UEVM),1) | 209 | ifeq ($(SYS_OMAP5_UEVM),1) |
192 | PVR_DRI_DRM_PLATFORM_DEV := 1 | 210 | PVR_DRI_DRM_PLATFORM_DEV := 1 |
211 | ifneq ($(call kernel-version-at-least,3,8,13),true) | ||
193 | PVR_DRI_DRM_STATIC_BUS_ID := 1 | 212 | PVR_DRI_DRM_STATIC_BUS_ID := 1 |
194 | PVR_DRI_DRM_DEV_BUS_ID := "\"platform:omapdrm_pvr:00"\" | 213 | PVR_DRI_DRM_DEV_BUS_ID := "\"platform:omapdrm_pvr:00"\" |
214 | endif | ||
215 | ifeq ($(PVR_LWS_NODC),1) | ||
216 | PVR_DRM_MODESET_DRIVER_NAME := omapdrm | ||
217 | PVR_DRM_MODESET_MODULE_NAME := dumb | ||
218 | endif | ||
195 | else | 219 | else |
196 | ifeq ($(call kernel-version-at-least,2,6,35),true) | 220 | ifeq ($(call kernel-version-at-least,2,6,35),true) |
197 | PVR_DRI_DRM_PLATFORM_DEV := 1 | 221 | PVR_DRI_DRM_PLATFORM_DEV := 1 |
@@ -212,6 +236,9 @@ endif # kernel-version-at-least,2,6,35 | |||
212 | endif # ($(SYS_OMAP5_UEVM),1) | 236 | endif # ($(SYS_OMAP5_UEVM),1) |
213 | endif # SUPPORT_DRI_DRM | 237 | endif # SUPPORT_DRI_DRM |
214 | 238 | ||
239 | include ../common/xorg_test.mk | ||
240 | |||
241 | ifeq ($(PVR_LWS_NODC),) | ||
215 | ifeq ($(SUPPORT_BUILD_XORG),1) | 242 | ifeq ($(SUPPORT_BUILD_XORG),1) |
216 | ifeq ($(call kernel-version-at-least,2,6,35,7),true) | 243 | ifeq ($(call kernel-version-at-least,2,6,35,7),true) |
217 | # A client DRI authorisation failure, whilst switched away from the X Server | 244 | # A client DRI authorisation failure, whilst switched away from the X Server |
@@ -222,16 +249,9 @@ PVR_XORG_DONT_DROP_MASTER_IN_LEAVE_VT := 1 | |||
222 | endif | 249 | endif |
223 | XORG_PVR_VIDEO ?= omap4 | 250 | XORG_PVR_VIDEO ?= omap4 |
224 | 251 | ||
225 | OPK_FALLBACK := libpvrPVR2D_DRIWSEGL.so | ||
226 | |||
227 | ifneq ($(OMAP_NON_FLIP_DISPLAY),1) | 252 | ifneq ($(OMAP_NON_FLIP_DISPLAY),1) |
228 | PVR_DISPLAY_CONTROLLER_DRM_IOCTL := 1 | 253 | PVR_DISPLAY_CONTROLLER_DRM_IOCTL := 1 |
229 | endif | 254 | endif |
230 | |||
231 | else # xorg isn't excluded | ||
232 | |||
233 | OPK_FALLBACK := libpvrPVR2D_BLITWSEGL.so | ||
234 | |||
235 | endif # xorg isn't excluded | 255 | endif # xorg isn't excluded |
236 | 256 | ||
237 | ifeq ($(SUPPORT_DRI_DRM),1) | 257 | ifeq ($(SUPPORT_DRI_DRM),1) |
@@ -243,6 +263,7 @@ EXTRA_PVRSRVKM_COMPONENTS += $(DISPLAY_CONTROLLER_COMPONENT) | |||
243 | else | 263 | else |
244 | KERNEL_COMPONENTS += $(DISPLAY_CONTROLLER_COMPONENT) | 264 | KERNEL_COMPONENTS += $(DISPLAY_CONTROLLER_COMPONENT) |
245 | endif | 265 | endif |
266 | endif | ||
246 | 267 | ||
247 | include ../config/core.mk | 268 | include ../config/core.mk |
248 | include ../common/xorg.mk | 269 | include ../common/xorg.mk |
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/sunxi_android/Makefile b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/sunxi_android/Makefile index 4473d62..9313a1b 100644 --- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/sunxi_android/Makefile +++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/sunxi_android/Makefile | |||
@@ -76,7 +76,7 @@ PVRSRV_DUMP_MK_TRACE ?= 1 | |||
76 | 76 | ||
77 | SUPPORT_ANDROID_SUNXI ?= 1 | 77 | SUPPORT_ANDROID_SUNXI ?= 1 |
78 | 78 | ||
79 | ION_DEFAULT_HEAP_MASK := ION_HEAP_CARVEOUT_MASK | 79 | ION_DEFAULT_HEAP_ID_MASK := ION_HEAP_CARVEOUT_MASK |
80 | 80 | ||
81 | # We have more memory on the sun6i platform, so we can spare to make | 81 | # We have more memory on the sun6i platform, so we can spare to make |
82 | # the pool larger, and have higher resolutions which benefit from it. | 82 | # the pool larger, and have higher resolutions which benefit from it. |
@@ -108,6 +108,8 @@ KERNEL_COMPONENTS += dc_nohw | |||
108 | endif | 108 | endif |
109 | endif | 109 | endif |
110 | 110 | ||
111 | PVR_ANDROID_COMPOSERHAL ?= sunxi | ||
112 | |||
111 | include ../config/core.mk | 113 | include ../config/core.mk |
112 | include ../common/android/extra_config.mk | 114 | include ../common/android/extra_config.mk |
113 | include ../common/opencl.mk | 115 | include ../common/opencl.mk |