John Stultz | e5c5bb3 | 2018-03-20 18:16:49 -0700 | [diff] [blame] | 1 | # |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 2 | # Copyright (C) 2010 ARM Limited. All rights reserved. |
John Stultz | e5c5bb3 | 2018-03-20 18:16:49 -0700 | [diff] [blame] | 3 | # |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 4 | # 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 Stultz | e5c5bb3 | 2018-03-20 18:16:49 -0700 | [diff] [blame] | 18 | |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 19 | LOCAL_PATH := $(call my-dir) |
| 20 | |
| 21 | # HAL module implemenation, not prelinked and stored in |
| 22 | # hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so |
| 23 | include $(CLEAR_VARS) |
John Stultz | e5c5bb3 | 2018-03-20 18:16:49 -0700 | [diff] [blame] | 24 | LOCAL_PRELINK_MODULE := false |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 25 | |
John Stultz | cb824d4 | 2018-04-27 17:10:45 -0700 | [diff] [blame] | 26 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 27 | LOCAL_VENDOR_MODULE := true |
John Stultz | e5c5bb3 | 2018-03-20 18:16:49 -0700 | [diff] [blame] | 28 | |
| 29 | MALI_DDK_TEST_PATH := hardware/arm/ |
| 30 | |
John Stultz | 21ad5be | 2018-03-20 20:35:07 -0700 | [diff] [blame] | 31 | LOCAL_MODULE := gralloc.hikey |
John Stultz | e5c5bb3 | 2018-03-20 18:16:49 -0700 | [diff] [blame] | 32 | #LOCAL_MODULE_TAGS := optional |
| 33 | |
John Stultz | e5c5bb3 | 2018-03-20 18:16:49 -0700 | [diff] [blame] | 34 | # Mali-200/300/400MP DDK |
| 35 | MALI_DDK_PATH := hardware/arm/mali |
| 36 | #SHARED_MEM_LIBS := libUMP |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 37 | SHARED_MEM_LIBS := libion libhardware |
John Stultz | e5c5bb3 | 2018-03-20 18:16:49 -0700 | [diff] [blame] | 38 | LOCAL_SHARED_LIBRARIES := liblog libsync libGLESv1_CM $(SHARED_MEM_LIBS) |
| 39 | |
| 40 | LOCAL_C_INCLUDES := system/core/include/ $(MALI_DDK_PATH)/include |
| 41 | # Include the UMP header files |
| 42 | LOCAL_C_INCLUDES += $(MALI_DDK_PATH)/src/ump/include |
| 43 | |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 44 | LOCAL_CFLAGS := -DLOG_TAG=\"gralloc\" -DGRALLOC_32_BITS -DSTANDARD_LINUX_SCREEN -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) |
| 45 | |
| 46 | LOCAL_SRC_FILES := \ |
| 47 | gralloc_module.cpp \ |
| 48 | alloc_device.cpp \ |
| 49 | framebuffer_device.cpp |
| 50 | |
John Stultz | e5c5bb3 | 2018-03-20 18:16:49 -0700 | [diff] [blame] | 51 | #LOCAL_CFLAGS+= -DMALI_VSYNC_EVENT_REPORT_ENABLE |
Vishal Bhoj | 78e9049 | 2015-12-07 01:36:32 +0530 | [diff] [blame] | 52 | include $(BUILD_SHARED_LIBRARY) |