• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2010 ARM Limited. All rights reserved.
2# Copyright (C) 2008 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16ifeq ($(TARGET_PRODUCT),hikey)
17LOCAL_PATH := $(call my-dir)
18
19# HAL module implemenation, not prelinked and stored in
20# hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so
21include $(CLEAR_VARS)
22
23SHARED_MEM_LIBS := libion libhardware
24LOCAL_SHARED_LIBRARIES := liblog libcutils libGLESv1_CM $(SHARED_MEM_LIBS)
25LOCAL_C_INCLUDES := system/core/include/
26LOCAL_CFLAGS := -DLOG_TAG=\"gralloc\" -DGRALLOC_32_BITS -DSTANDARD_LINUX_SCREEN -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
27
28LOCAL_SRC_FILES := \
29	gralloc_module.cpp \
30	alloc_device.cpp \
31	framebuffer_device.cpp
32
33LOCAL_MODULE := gralloc.hikey
34LOCAL_MODULE_RELATIVE_PATH := hw
35
36include $(BUILD_SHARED_LIBRARY)
37endif
38