blob: a4354d442b52326e79ddd70ae697d1e62cc5e04b [file] [log] [blame]
codeworkx62f02ba2012-05-20 12:00:36 +02001#
2# Copyright (C) 2010 ARM Limited. All rights reserved.
3#
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
18
19LOCAL_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)
24LOCAL_PRELINK_MODULE := false
25LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
26LOCAL_SHARED_LIBRARIES := liblog libcutils libGLESv1_CM libGLES_mali libion
27LOCAL_MODULE_TAGS := eng optional
28
29# Include the UMP header files
30LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include
31
32LOCAL_SRC_FILES := \
33 gralloc_module.cpp \
34 alloc_device.cpp \
35 framebuffer_device.cpp
36
37# For now we override arch and ABI values to allow us to work with a
38# libmali that has been forced to armv7, eventually we can let android
39# pick for us
40
41ifeq ($(TARGET_PRODUCT), armboard_v7a)
42# Support for ARM platforms
Daniel Hillenbrand353fecb2012-07-22 16:14:08 +020043LOCAL_CFLAGS:= -DLOG_TAG=\"gralloc\" -DGRALLOC_16_BITS -DSTANDARD_LINUX_SCREEN \
codeworkx62f02ba2012-05-20 12:00:36 +020044 -march=armv7-a \
45 -mfloat-abi=softfp
46LOCAL_MODULE := gralloc.default
47
48else
49#Default to goldfish
Daniel Hillenbrand353fecb2012-07-22 16:14:08 +020050LOCAL_CFLAGS:= -DLOG_TAG=\"gralloc\" -DSTANDARD_LINUX_SCREEN \
codeworkx62f02ba2012-05-20 12:00:36 +020051 -march=armv7-a \
52 -mfloat-abi=softfp \
53 -DVITHAR_HACK
54
55LOCAL_MODULE := gralloc.smdk5250
56endif
57
58
59include $(BUILD_SHARED_LIBRARY)