blob: 23a5a820150497f914e149bc8b2ae3c3cb13c7a0 [file] [log] [blame]
John Stultze5c5bb32018-03-20 18:16:49 -07001#
Vishal Bhoj78e90492015-12-07 01:36:32 +05302# Copyright (C) 2010 ARM Limited. All rights reserved.
John Stultze5c5bb32018-03-20 18:16:49 -07003#
Vishal Bhoj78e90492015-12-07 01:36:32 +05304# Copyright (C) 2008 The Android Open Source Project
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17
John Stultze5c5bb32018-03-20 18:16:49 -070018
Vishal Bhoj78e90492015-12-07 01:36:32 +053019LOCAL_PATH := $(call my-dir)
20
21# HAL module implemenation, not prelinked and stored in
22# hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so
23include $(CLEAR_VARS)
John Stultze5c5bb32018-03-20 18:16:49 -070024LOCAL_PRELINK_MODULE := false
Vishal Bhoj78e90492015-12-07 01:36:32 +053025
John Stultzcb824d42018-04-27 17:10:45 -070026LOCAL_MODULE_RELATIVE_PATH := hw
27LOCAL_VENDOR_MODULE := true
John Stultze5c5bb32018-03-20 18:16:49 -070028
29MALI_DDK_TEST_PATH := hardware/arm/
30
John Stultz21ad5be2018-03-20 20:35:07 -070031LOCAL_MODULE := gralloc.hikey
John Stultzf3d868d2017-12-05 16:15:11 -080032LOCAL_MODULE_RELATIVE_PATH := hw
John Stultze5c5bb32018-03-20 18:16:49 -070033#LOCAL_MODULE_TAGS := optional
34
John Stultze5c5bb32018-03-20 18:16:49 -070035# Mali-200/300/400MP DDK
36MALI_DDK_PATH := hardware/arm/mali
37#SHARED_MEM_LIBS := libUMP
Vishal Bhoj78e90492015-12-07 01:36:32 +053038SHARED_MEM_LIBS := libion libhardware
John Stultze5c5bb32018-03-20 18:16:49 -070039LOCAL_SHARED_LIBRARIES := liblog libsync libGLESv1_CM $(SHARED_MEM_LIBS)
40
41LOCAL_C_INCLUDES := system/core/include/ $(MALI_DDK_PATH)/include
42# Include the UMP header files
43LOCAL_C_INCLUDES += $(MALI_DDK_PATH)/src/ump/include
44
Vishal Bhoj78e90492015-12-07 01:36:32 +053045LOCAL_CFLAGS := -DLOG_TAG=\"gralloc\" -DGRALLOC_32_BITS -DSTANDARD_LINUX_SCREEN -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
46
47LOCAL_SRC_FILES := \
48 gralloc_module.cpp \
49 alloc_device.cpp \
50 framebuffer_device.cpp
51
John Stultze5c5bb32018-03-20 18:16:49 -070052#LOCAL_CFLAGS+= -DMALI_VSYNC_EVENT_REPORT_ENABLE
John Stultzf3d868d2017-12-05 16:15:11 -080053
54
55ifeq ($(HIKEY_USE_DRM_HWCOMPOSER), true)
56LOCAL_CFLAGS += -DDISABLE_FRAMEBUFFER_HAL
57endif
58
Vishal Bhoj78e90492015-12-07 01:36:32 +053059include $(BUILD_SHARED_LIBRARY)